-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The official instructions for Google Auth leave a TLJH installation vulnerable #884
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
I have figured out that I had to manually run this command:
To explicitly restrict access to only these accounts. The manual should be explicit about this - otherwise the security implication is overlooked. |
@Bougakov, recently I've been going through the TLJH Google auth docs trying to figure out something similar: how to set up auth for just a few users like you need, and also how to set up Google Group-based auth. I'll be putting in a PR to add some instructions to the Authenticate using Google section of the TLJH docs. I will share here when I'm done. |
@Bougakov see #898. The TLJH Google auth docs are now explicit about this and include extra information. It also looks like this default setup may change in the future. |
In oauthenticator 16 and later, part of tljh 1.0.0 and later, the default is to not allow anyone unless configuration on who to allow is explicitly made. From https://oauthenticator.readthedocs.io/en/latest/reference/changelog.html:
|
Bug description
I have installed TLJH using the provided manual and enabled Google Auth. Recently, I've discovered that this auth method allows ANYONE with a Google account to access my installation. I found someone with an address
[email protected]
has managed to access it and install a cryptocurrency miner by running these commands in the terminal:Expected behaviour
The manual should be written in a way that the user by default ends up with only allowing a specific set of Google Accounts ([email protected], [email protected]) or Google Apps Domains (@example.com) whitelisted. There must be an explicit action taken by the user to extend the auth permissions to anyone with a Google Account.
Your personal set up
I am using the-littlest-jupyterhub.
I am using Ubuntu on a Digital Ocean droplet.
I am looking for advice on how to restrict access to only Google Workspace accounts from a list of particular domains. Thank you.
The text was updated successfully, but these errors were encountered: