Skip to content

Commit

Permalink
Merge pull request #3113 from consideRatio/pr/revoke-access
Browse files Browse the repository at this point in the history
Restrict access to staging hubs and imagebuilding-demo hub
  • Loading branch information
consideRatio authored Sep 9, 2023
2 parents 3b0fd49 + 07ca6e4 commit 45fe23b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
12 changes: 7 additions & 5 deletions config/clusters/2i2c-uk/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,12 @@ jupyterhub:
JupyterHub:
authenticator_class: cilogon
CILogonOAuthenticator:
scope:
- "profile"
username_claim: "preferred_username"
oauth_callback_url: "https://staging.uk.2i2c.cloud/hub/oauth_callback"
# Only show the option to login with GitHub
shown_idps:
- http://github.com/login/oauth/authorize
- http://google.com/accounts/o8/id
allowed_idps:
http://google.com/accounts/o8/id:
username_derivation:
username_claim: "email"
allowed_domains:
- "2i2c.org"
5 changes: 0 additions & 5 deletions config/clusters/2i2c/dask-staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,11 @@ basehub:
- "email"
- "profile"
oauth_callback_url: "https://dask-staging.2i2c.cloud/hub/oauth_callback"
# Only show the option to login with Google
shown_idps:
- http://accounts.google.com/o/oauth2/auth
- http://github.com/login/oauth/authorize
allowed_idps:
http://google.com/accounts/o8/id:
username_derivation:
username_claim: "email"
allowed_domains:
- "2i2c.org"
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
9 changes: 7 additions & 2 deletions config/clusters/2i2c/imagebuilding-demo.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ jupyterhub:
authenticator_class: cilogon
CILogonOAuthenticator:
oauth_callback_url: "https://imagebuilding-demo.2i2c.cloud/hub/oauth_callback"
username_claim: "email"
# Only show the option to login with Google
shown_idps:
- http://google.com/accounts/o8/id
allowed_idps:
http://google.com/accounts/o8/id:
username_derivation:
username_claim: "email"
allowed_domains:
- "2i2c.org"

extraConfig:
enable-prototype-UI: |
from kubespawner_dynamic_building_ui import TEMPLATE_PATHS, STATIC_HANDLER_TUPLE
Expand Down
8 changes: 6 additions & 2 deletions config/clusters/2i2c/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ jupyterhub:
authenticator_class: cilogon
CILogonOAuthenticator:
oauth_callback_url: "https://staging.2i2c.cloud/hub/oauth_callback"
username_claim: "email"
# Only show the option to login with Google
shown_idps:
- http://google.com/accounts/o8/id
allowed_idps:
http://google.com/accounts/o8/id:
username_derivation:
username_claim: "email"
allowed_domains:
- "2i2c.org"

0 comments on commit 45fe23b

Please sign in to comment.