Closed rwinstanley1 closed 2 years ago
After some research, it looks like this might not be as straight forward as our proposals above.
If we want to store the connection information and users in a single place, LDAP seems to be the best (only?) choice. In this case, we could also use Keycloak for Guacamole authentication through OpenIDConnect which might have some benefits (MFA). However, we would also need to link Guacamole directly to the LDAP server to fetch the connections data.
Here's another option
HttpAuth
method (where it sends the name of the authenticated user) and let Guacamole deal with the user <-> connection mappings using a local databaseThis has the advantage that the only internet-facing piece of infrastructure is Authelia, which is explicitly designed with security in mind.
I'm still quite nervous about us being responsible for the correct configuration, defence and up to date patching of the identity and access management (IAM) service in a VM or container. I recognise we are doing that at the moment with the Domain Controller and NPS VMs and there is an argument that the bundled desired state configuration for the DCs is much more opaque than we would like. However, my instinct here would be to rely on the IAM service provided by each underlying cloud platform but interface with it using a common set of standard protocols (e.g. OAuth 2, LDAP, RADIUS). I know that, at least for Azure AAD, this means more manual configuration than we would like, and I'd like also us to be able to avoid this if possible, or at least mitigate it with e.g. ongoing configuration validation. Thoughts?
I like the idea that we would support a standard protocol for authentication/user management (LDAP seems like the best way to have a single authority which can be integrated with an RDP portal, webapps, VMs). This way it can be up to the admins which LDAP implementation they choose to use (including the option to use an existing LDAP).
Including scripts to deploy an OpenLDAP instance feels like a good way to reduce the number of decisions and manual steps anyone deploying a safe haven will have to make.
@martintoreilly What is it about the IAM aspect that makes your nervous about taking over responsibility?
Another point that we should be thinking about is: "how easy is this to port to AWS?". We're getting a lot of requests from organisations who want to take this Safe Haven and deploy it using another provider (usually AWS). Using something that is not tied to Azure would make this easier.
We should also note that the current way that we use Azure Active Directory is extremely confusing for first time deployers. People are not used to using a standalone AAD for authentication that is different from the AAD that is used for deploying infrastructure. Also, deleting an AAD is still quite painful, which makes it difficult to securely delete users personal data (eg. phone number) at the end of a project.
Another thought: if we use OpenLDAP then the LDAP server doesn't need to have any internet access at all, whereas currently our domain controller has several roles (NTP server, DNS server, domain join server, Azure AD connect server) which means that it does need internet access. It's possible that OpenLDAP might actually be more secure!
@martintoreilly / @JimMadge : What do you think about using Authelia as the primary internet-facing entry point for this system? It can interface to an LDAP server (which could be OpenLDAP or Azure AD) for username/password authentication and has inbuilt MFA. It's also specifically designed to be a secure, web-based authentication provider which is not true for eg. Remote Desktop or Guacamole.
It looks like we could do the following:
I think simplifying the structure and making the safe haven more modular (users choice of LDAP implementation, stopping one service holding multiple roles) are all big positives. That said, I think the larger task of porting to AWS would be translating all of the scripts to Terraform/Ansible then translating Azure Terraform to AWS Terraform.
I'll have a closer look at Authelia because I feel like Guacamole is a better solution for remote desktop, but as we have talked about before Guacamole/LDAP doesn't solve the problem of how to create users without either sending credentials to them.
Regarding not exposing LDAP to the internet, I think I agree this should be more secure. It sounds like Martin thinks there might be other problems with taking on the responsibility to manage it 'ourselves' but my intuition is that we should be most concerned about anything which can be reached publicly.
Possible architecture using,
Note:
Authelia's authentication flow involving the reverse proxy is explained in the documentation.
@JimMadge Is this issue still needed? Or have we moved the discussion past this now?
@JimMadge Is this issue still needed? Or have we moved the discussion past this now?
I think this is worth keeping open for when we come to implementing (or not) a new authentication system.
Closing as stale. Could revisit in a discussion for v4.
:scroll: Description
This issue is to discuss the current design for the authentication solution and potential changes that could be made to streamline the process.
Current Design:
Potential Future Design:
:page_facing_up: Tasks
Include specific tasks (if any) in the order in which they need to be done.