Skip to content

Commit

Permalink
oauthenticator 16: add allow_existing_users where allowed_users was c…
Browse files Browse the repository at this point in the history
…onfigured
  • Loading branch information
consideRatio committed Sep 10, 2023
1 parent 65e892b commit 66056b9
Show file tree
Hide file tree
Showing 15 changed files with 42 additions and 72 deletions.
6 changes: 2 additions & 4 deletions config/clusters/2i2c/aup.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,9 @@ jupyterhub:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &aup_users
- swalker
- shaolintl
Expand Down
14 changes: 6 additions & 8 deletions config/clusters/2i2c/neurohackademy.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,18 @@ jupyterhub:
config:
JupyterHub:
authenticator_class: cilogon
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &neurohackademy_users
- arokem
admin_users: *neurohackademy_users
CILogonOAuthenticator:
oauth_callback_url: https://neurohackademy.2i2c.cloud/hub/oauth_callback
allowed_idps:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
OAuthenticator:
allow_existing_users: True
Authenticator:
allowed_users: &neurohackademy_users
- arokem
admin_users: *neurohackademy_users
extraFiles:
configurator-schema-default:
data:
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/carbonplan/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -192,11 +192,9 @@ basehub:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to
# be configured explicitly.
#
allowed_users: &users
- maxrjones
admin_users: *users
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/howard.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &howard_users
- [email protected]
- [email protected]
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/lacc.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &lacc_users
- [email protected]
- [email protected]
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/palomar.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &palomar_users
- [email protected]
- [email protected]
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/sbcc-dev.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &sbcc_users
- [email protected]
- [email protected]
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/sbcc.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &sbcc_users
- [email protected]
- [email protected]
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/staging.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &staging_users
- [email protected]
admin_users: *staging_users
6 changes: 2 additions & 4 deletions config/clusters/cloudbank/tuskegee.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ jupyterhub:
urn:mace:incommon:berkeley.edu:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &tuskegee_users
- [email protected]
- [email protected]
Expand Down
10 changes: 4 additions & 6 deletions config/clusters/gridsst/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,16 @@ basehub:
url: https://science.nasa.gov/earth-science/focus-areas/climate-variability-and-change/ocean-physics
hub:
config:
JupyterHub:
authenticator_class: github
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to
# be configured explicitly.
#
allowed_users: &gridsst_users
- alisonrgray
- nikki-t
- dgumustel
admin_users: *gridsst_users
JupyterHub:
authenticator_class: github
singleuser:
profileList:
# The mem-guarantees are here so k8s doesn't schedule other pods
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/jupyter-meets-the-earth/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,9 @@ basehub:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &users
# This is just listing a few of the users/admins, a lot of
# users has been added manually, see:
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/meom-ige/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ basehub:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
OAuthenticator:
allow_existing_users: True
Authenticator:
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: &users
- roxyboy
- lesommer
Expand Down
6 changes: 2 additions & 4 deletions config/clusters/openscapes/common.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,14 @@ basehub:
http://github.com/login/oauth/authorize:
username_derivation:
username_claim: "preferred_username"
OAuthenticator:
allow_existing_users: True
Authenticator:
admin_users: &users
- amfriesz
- jules32
- erinmr
- betolink
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: *users
dask-gateway:
gateway:
Expand Down
18 changes: 8 additions & 10 deletions config/clusters/pangeo-hubs/coessing.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,6 @@ basehub:
node.kubernetes.io/instance-type: n1-standard-2
hub:
config:
Authenticator:
admin_users: &admin_users
- [email protected]
# FIXME: In z2jh 3.0.0-beta.1, a truthy allowed_users implies
# allow_existing_users=True, while in z3jh 3.0.0 this needs to be
# configured explicitly.
#
allowed_users: *admin_users
# Delete any prior existing users in the db that don't pass username_pattern
delete_invalid_users: true
JupyterHub:
authenticator_class: cilogon
CILogonOAuthenticator:
Expand All @@ -52,3 +42,11 @@ basehub:
http://google.com/accounts/o8/id:
username_derivation:
username_claim: "email"
OAuthenticator:
allow_existing_users: True
Authenticator:
admin_users: &admin_users
- [email protected]
allowed_users: *admin_users
# Delete any prior existing users in the db that don't pass username_pattern
delete_invalid_users: true

0 comments on commit 66056b9

Please sign in to comment.