forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 2i2c-org#3233 from consideRatio/pr/tighten-auth-co…
…nfig-for-2i2c-members Grant access for 2i2c members only via admin_users
- Loading branch information
Showing
38 changed files
with
41 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,17 +76,14 @@ binderhub: | |
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "2i2c.org" | ||
Authenticator: | ||
admin_users: | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
singleuser: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,5 +41,4 @@ jupyterhub: | |
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "2i2c.org" | ||
- "rmbl.org" | ||
- rmbl.org |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,18 +36,16 @@ jupyterhub: | |
CILogonOAuthenticator: | ||
oauth_callback_url: "https://mtu.2i2c.cloud/hub/oauth_callback" | ||
allowed_idps: | ||
# Allow 2i2c staff to login with Google | ||
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "2i2c.org" | ||
# Allow MTU to login via Shibboleth | ||
https://sso.mtu.edu/idp/shibboleth: | ||
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "mtu.edu" | ||
# Allow 2i2c staff to login with Google accounts | ||
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: "email" | ||
Authenticator: | ||
admin_users: | ||
- "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,8 +57,6 @@ jupyterhub: | |
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "2i2c.org" | ||
Authenticator: | ||
admin_users: | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,8 +31,6 @@ jupyterhub: | |
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "2i2c.org" | ||
Authenticator: | ||
admin_users: | ||
- [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,10 +34,9 @@ jupyterhub: | |
username_derivation: | ||
username_claim: "email" | ||
allowed_domains: | ||
- "2i2c.org" | ||
- "unc.edu.ar" | ||
- "mi.unc.edu.ar" | ||
- "famaf.unc.edu.ar" | ||
- unc.edu.ar | ||
- mi.unc.edu.ar | ||
- famaf.unc.edu.ar | ||
Authenticator: | ||
admin_users: | ||
- [email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,27 +60,30 @@ To get the value of the key that must go in the `allowed_idp` dict for a specifi | |
|
||
```yaml | ||
jupyterhub: | ||
custom: | ||
2i2c: | ||
add_staff_user_ids_to_admin_users: true | ||
add_staff_user_ids_of_type: google | ||
hub: | ||
config: | ||
JupyterHub: | ||
authenticator_class: cilogon | ||
CILogonOAuthenticator: | ||
oauth_callback_url: https://{{ HUB_DOMAIN }}/hub/oauth_callback | ||
# Google and ANU's are configured as the hubs identity providers (idps) | ||
allowed_idps: | ||
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
# Use the email as the hub username | ||
username_claim: "email" | ||
# Authorize any user with a @2i2c.org email in this idp | ||
allowed_domains: | ||
- "2i2c.org" | ||
# Community specific idp - enables community members to authenticate. | ||
# In this example, all authenticated users are authorized via the idp | ||
# specific allow_all config. | ||
https://idp2.anu.edu.au/idp/shibboleth: | ||
username_derivation: | ||
# Use the email as the hub username | ||
username_claim: "email" | ||
# Authorize all users in this idp | ||
allow_all: true | ||
username_claim: email | ||
allow_all: true # authorize all users authenticated by the idp | ||
# Google (or GitHub) idp - enables 2i2c admin users to authenticate. | ||
# The basehub chart config "custom.2i2c.add_staff_user_ids..." expands | ||
# admin_users to authorize specific 2i2c staff members. | ||
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: email | ||
Authenticator: | ||
admin_users: | ||
- [email protected] | ||
|
Oops, something went wrong.