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

added palomar cc to config/cloudbank.cluster.yaml #395

Merged
merged 1 commit into from
May 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions config/hubs/cloudbank.cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -350,3 +350,38 @@ hubs:
- [email protected]
- [email protected]
username_pattern: '^(.+@mills\.edu|yuvipanda@gmail\.com|choldgraf@gmail\.com|georgiana\.dolocan@gmail\.com|aculich@berkeley\.edu|jpercy@berkeley\.edu|deployment-service-check)$'
- name: palomar
domain:
- palomar.cloudbank.2i2c.cloud
template: basehub
auth0:
connection: google-oauth2
config:
jupyterhub:
homepage:
templateVars:
org:
name: Palomar Community College
logo_url: https://www2.palomar.edu/pages/guidelines/files/2016/03/webGuide_screened_2-color_light.jpg
url: https://www2.palomar.edu/
designed_by:
name: 2i2c
url: https://2i2c.org
operated_by:
name: CloudBank
url: http://cloudbank.org/
funded_by:
name: CloudBank
url: http://cloudbank.org/
hub:
config:
Authenticator:
admin_users: &palomar_admins
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
username_pattern: '^(.+@palomar\.edu|yuvipanda@gmail\.com|choldgraf@gmail\.com|georgiana\.dolocan@gmail\.com|aculich@berkeley\.edu|sean.smorris@berkeley\.edu|deployment-service-check)$'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuvipanda could you explain what username_pattern means here? This line looks correct comparing it to the previous lines, but it's a bit hard to understand what it is and I don't see it documented

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think @GeorgianaElena added it in #208, that PR has some context. Any ideas if we can improve this, or where we can document it, @GeorgianaElena?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at it some more, I think it's a regular expression that permits everyone from @palomar.edu, but also these explicitly listed addresses otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When an admin should not be allowed? I mean... I was expecting the admins to be excluded from the username_pattern...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was expecting the admins to be excluded from the username_pattern

Me too 👀

This is coming from jupyterhub. All users need to comply with username_pattern, including admins. Some code references:

Other thing that I noticed and I think it's related, is about allowed_users. All the admins, apart from being listed in the admin_users list, need to be in this allowed list too otherwise they will be denied access.
In my mind, if the user it's an admin, then they should be allowed by default.

(These over-complicates a bit #311 too)

I'm thinking about opening a PR on jupyterhub's side about this, but I would like to know your opinion first, in case my intuition is not right and I'm trying to create an anti-pattern.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jumping in a bit late here.

I did look around at entries for the other hubs in the cloudbank.cluster.yaml file. The username_pattern element was in the mills definition but not in the others. I probably should have checked out whether or not to use what appeared to be the general pattern:

as opposed to the pattern mills is using:

           admin_users: &mills_admins
            - [email protected]
            - [email protected]
            - [email protected]
            - [email protected]
            - [email protected]
            - [email protected]
            - [email protected]
          username_pattern:'^(.+@mills\.edu|yuvipanda@gmail\.com|choldgraf@gmail\.com|georgiana\.dolocan@gmail\.com|aculich@berkeley\.edu|jpercy@berkeley\.edu|deployment-service-check)$'

Are we ok here? Or should this change?