Skip to content
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

Set admin users for demo hub #426

Merged
merged 1 commit into from
May 20, 2021
Merged

Conversation

yuvipanda
Copy link
Member

Since we want everyone to be able to sign up, we don't set
allowed_users.

Fixes #421

Since we want everyone to be able to sign up, we don't set
allowed_users.

Fixes 2i2c-org#421
@consideRatio
Copy link
Member

consideRatio commented May 20, 2021

Hmmm the changes suggested only adds an admins section, not anything about removing allowed_users. How then could it fix #421?

This is an example for the spelman hub that would cause the observed issue.

@yuvipanda
Copy link
Member Author

@consideRatio ah, because when I filed #421 I was setting both allowed_users and admin_users. For spelman and other hubs, we want the admins to explicitly add other users who should be allowed to login (see docs). So by config we'll only allow admin users to log in - everyone else is manually entered in the hub admin interface. The demo hub is different.

@consideRatio consideRatio merged commit cb48c1c into 2i2c-org:master May 20, 2021
@consideRatio
Copy link
Member

consideRatio commented May 20, 2021

Btw, shouldn't admin users always have access? I wonder if something like this could work?

              # explicitly set to an empty list to disallow access to anyone but the admin users
              allowed_users: []
              admin_users:
                - user1
                - user2

Hmmm probably not, the traitlet is a Set, so I assume it defaults to a blank set and blank set is what we would get by explicitly setting the allowed_users to []. See https://github.com/jupyterhub/jupyterhub/blob/6be3160d7487bb362df7095f24454ef2814951fc/jupyterhub/auth.py#L109-L122

@damianavila
Copy link
Contributor

Btw, shouldn't admin users always have access?

I was saying the same in a previous conversation with @GeorgianaElena: #395 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow setting admin users for hubs with username / password auth
3 participants