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.
Adds a README too with some more info on how this specific cluster of hubs is configured. Ref 2i2c-org#1961
- Loading branch information
Showing
13 changed files
with
150 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# University of Toronto README | ||
|
||
This file documents some of the choices made in the UToronto cluster, | ||
which serves multiple hubs. | ||
|
||
## Staging Hubs | ||
|
||
Each hub gets its own staging hub. They match all configuration, except: | ||
|
||
1. Home directory storage is different, for security isolation | ||
2. Different Login credentials | ||
3. (Possibly) different hub DB sizes, as we still store logs in the hub db dir | ||
(a bad practice we should stop soon). | ||
|
||
## Usernames | ||
|
||
The default hub (at jupyter.utoronto.ca) and its staging hub use an opaque | ||
id (oid) in the form of a [uuid](https://en.wikipedia.org/wiki/Universally_unique_identifier) | ||
as usernames. This caused a bunch of confusion with respect to support, and | ||
hence other hubs use user emails as usernames instead. | ||
|
||
## Config Structure | ||
|
||
For each hub, we want the following files: | ||
|
||
1. `<hub-name>-common.values.yaml` - common values for prod & staging hubs | ||
2. `<hub-name>-staging.values.yaml` - staging config overrides | ||
3. `<hub-name>-prod.values.yaml` - prod config overrides | ||
4. `enc-<hub-name>-staging.secret.values.yaml` - `sops` encrypted config for staging | ||
5. `enc-<hub-name>-prod.secret.values.yaml` - `sops` encrypted config for prod | ||
|
||
There is also a `common.values.yaml` that is common to *all* the hubs. |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
jupyterhub: | ||
singleuser: | ||
image: | ||
name: quay.io/2i2c/utoronto-image | ||
tag: "445cbd1f113b" | ||
hub: | ||
config: | ||
Authenticator: | ||
admin_users: | ||
- 7c76d04b-2a80-4db1-b985-a2d2fa2f708c | ||
- 09056164-42f5-4113-9fd7-dd852e63ff1d | ||
- adb7ebad-9fb8-481a-bc2c-6c0a8b6de670 | ||
|
||
AzureAdOAuthenticator: | ||
# Everyone else uses email | ||
username_claim: oid |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
jupyterhub: | ||
singleuser: | ||
extraFiles: | ||
github-app-private-key.pem: | ||
stringData: ENC[AES256_GCM,data:WBoI5eVPCqIgPJYUrEeNLd6QYE07KDgVtJv33WJ63M9g6jX6ZjBBwjcN2OQYR8XGGVK0XH/GMb/CkkPYajlhEB4H0m7kFzv/1rEAIZly03H7CIk1Q+umjtX+JoPciVAlTZNXlZ2Zvcj1u7s+6K7tSivp7WhO9JDQFIpyDlfR7nUXDBUKTNwKaoQqJ8Z8tIDXp2y01xtQkfpCJHDI75gGcdulvuKwLIIFEzIxSrXV18xBncylQYxrJM/wpD5PDWD4Ke8JQMcis8pWTXo1Gpce02p3/Mbjpq2O9QD5PdcsfdGocDcZOMAbJHgSY+BT/aUwY9RY1cYEfx4A6VObHnPk/KJj6FdSP3R0ftdTi9evpKPbP7QK2fFxqKZLqskNup4z6oggqZiaZgYiGz9cl3bMRahJXZK8g9WkSYff5ZYQIq0D1y/S+lkPDaDTavFWxdCwff9060cG3dsV5B7KYLyn+j5D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SeoKrEfkXtSVtUeJzkglR9XMtt89fYXRFhlDLvLzBxx14x8VAkGTFV62b9UAnNxrF6LHPgv2B7OTPvqjrbKTY1Ss2ofgrrbgSR7MLFPGnbgVZ5CrjissqNd1/RABKhts/bQomoK3EpS6H41NrrQh4sWwFlV5mh23UmpUcMQZFPLugM69/ofryE3Cn7NxQ3g+FLxsG3+r4ZdL178a4lsAsdOwNouDlxoPT37i0FSBA5WYT7r397eWHVxP/fXDV9C7ds+slaPcCClSGoUCuHjSusKMr02gEQkvKDirPXsbsxOO74Kf6ddyOtbQUUD0uZ+aRy4/G4cxXQ6EERRsQxAbSb4wnmWJ/FtqNc91J4NHcJv6+ubq2jaG7Cwd7It3iwHyXXFFZgKqiOIP2hvEp/WSCYzR0ejFG7kLLRskl58QhByUruosIwnJxA93XAUTKXW72UIN31R+ZffEo22jLgjKlOOP5yjCVA/emZ1i1pEoWxSCDYjCnGyOBaZf8g92Aau1NSaBX05zGvlwJp2O2YYETWDcssriuf6CNfOAI3vBR+Oj6QQa46YfY8pH4dmL/4kIkZIPUEhmUxEA7rHYzYgwcwaoAIWfYaESa7YqV6Q8UIxvOeN/FhMLB2MYtbUAKirncnL/hKK3aO8OQpr7mpnXlIYzmklumwuoGBsJZ0zMk0DhHi5xjd5L5SY=,iv:sml8ZE7+tO+7MId9/5XQpYA6sMXD9MhQAznzGsQOHV8=,tag:ITulLSSMTWTStGeOrAPP6g==,type:str] | ||
hub: | ||
config: | ||
AzureAdOAuthenticator: | ||
client_id: ENC[AES256_GCM,data:NRIJj6slolCvidb+x0f4xI+mbsis8Bl4BACcca0OhyVrycmG,iv:CA8HR207ItxRul1UaEwNBEbbxvOSagpgkq4VseVlj9s=,tag:q0z0HcLBgcljE6OB0suKmw==,type:str] | ||
client_secret: ENC[AES256_GCM,data:hkfjIVkw3f1t/1TRORLKf16BfCVZ3pr7w5HeIY73hOIj5HNwr5oYzw==,iv:DyC09nr+LnKNQKuA9gghU6MXZnIDjbSag/XGnUwAZm4=,tag:0E3E9K+vhHgg3j6jebZg4w==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: | ||
- resource_id: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs | ||
created_at: "2022-02-24T18:09:31Z" | ||
enc: CiQA4OM7eOdvNAZ+zUSwT0PqdTYnrcEdl/SXGm7kpyMR1ZOtWnYSSQDm5XgWDUzIYL2PKXD9wHbao/Aqsv6kweTN3XDslnZDyOIFGtYEm1s+8cM9HCWfnSA0UOVQTZoly/a2oc59PnqTdnkLV0iu7dY= | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: [] | ||
lastmodified: "2022-08-31T20:17:48Z" | ||
mac: ENC[AES256_GCM,data:ZHtBcFWZRkZeRv+UB7m7IGtVlo++NeKfu1B777Pfc7eXjnyZcLi99ojVxANB+kA1c7lICmgmNEMPWKxK922ejOBGJN8pAnJjpHxVswWZ1enAzSzkvnsFZoMEZdMkar9zNMK8AjMUeO7139cqnM/yVj72voiCfTS/C5JdJ1hg82w=,iv:2TV5yr9CkDBWJVoi2OPPqXirRs5up4XdpQ4O0qTRDHw=,tag:EDuhGi1hRT73lbs2nsqLDA==,type:str] | ||
pgp: [] | ||
unencrypted_suffix: _unencrypted | ||
version: 3.7.3 |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
jupyterhub: | ||
singleuser: | ||
extraFiles: | ||
github-app-private-key.pem: | ||
stringData: ENC[AES256_GCM,data:EsWpZIVpvybE/J9sBhb05Tkxw2tAHaEX/UXZmKAS7POvTdGSb3fbrDdZXCgVfU99BXoHvb+s/bHN7bFL8dJjvWO/K/Ai6YWWwciFjh1YyqFcTsYCyITxiCIh08rvrzy3NkIvcne0ISI2P2kfRumKK8Ny6pdrN95Qv4MIKx7Ci+fgaC9zM1/ZsUDwPnHfWc7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type:str] | ||
hub: | ||
config: | ||
AzureAdOAuthenticator: | ||
client_id: ENC[AES256_GCM,data:082nKaBVlegQiGmtVti7PPBz+T7GLTCyB6910E6EgXnedDJZ,iv:mqE0/hkXIp2leSohgkdgdEB7cy6rgy7nH+2NkJCcZ6o=,tag:Ii23/LAfbXi0F66GPmpmRQ==,type:str] | ||
client_secret: ENC[AES256_GCM,data:DEYYnc/bxBcJtAJ/TBY/IggBbqdp8tVUM1GgdsayEUGelEtvhmbarQ==,iv:5hWqi8Cag0wRYnfA82I8FI58mQUi4Rm0TRaCr764sb0=,tag:uj91hvmqqc2FwJkYeo1Ebw==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: | ||
- resource_id: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs | ||
created_at: "2022-02-24T18:08:21Z" | ||
enc: CiQA4OM7eBanK+HbBPB2vHvIZKJONEYQrsehrIP5d0u8r0+7R/gSSADm5XgWfJP/jYs7/3IkZmdvNF+pWLMrS5rbDoUJjrqcKlUcDL6u5jrbSXFF/lE4nSuyFrKSxNkMm28dvYAMsqHrZIFwVBLXOg== | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: [] | ||
lastmodified: "2022-09-08T07:48:01Z" | ||
mac: ENC[AES256_GCM,data:rr/BWRngZh08Su8zP+eJ4OqLuT7IbG7/voAh1iPuwHPPLIeeNTnIopelD/6OLjhCbkiZhtij2y6lASwa5xzwmLuvvxiAdQrX6f+ZqOgBZ1KxuJzELQxSY4X2L6cgCeGFnhHhQY1EoYqsGEwjSk6zrPPtR93sBL80ZmL+swHtz3E=,iv:jFbf45ItjJV/ALnyk0xNyy7dnvtcGuIj3+pQNTqWcaM=,tag:mYHTUwzMJSERSvya1OMNGQ==,type:str] | ||
pgp: [] | ||
unencrypted_suffix: _unencrypted | ||
version: 3.7.3 |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jupyterhub: | ||
singleuser: | ||
storage: | ||
# From https://jupyterhub-image.guide/rocker.html#step-7-setup-zero-to-jupyterhub-configuration-for-home-directory | ||
homeMountPath: /home/rstudio | ||
defaultUrl: /rstudio | ||
image: | ||
name: quay.io/2i2c/utoronto-r-image | ||
tag: "bd1a9c4eea2e" |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
jupyterhub: | ||
hub: | ||
db: | ||
pvc: | ||
# prod stores logs, so let's make it big | ||
storage: 60Gi | ||
config: | ||
AzureAdOAuthenticator: | ||
oauth_callback_url: https://r.utoronto.2i2c.cloud/hub/oauth_callback | ||
logout_redirect_url: https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=https://r.utoronto.2i2c.cloud |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
jupyterhub: | ||
hub: | ||
config: | ||
AzureAdOAuthenticator: | ||
oauth_callback_url: https://r-staging.utoronto.2i2c.cloud/hub/oauth_callback | ||
logout_redirect_url: https://login.microsoftonline.com/common/oauth2/logout?post_logout_redirect_uri=https://r-staging.utoronto.2i2c.cloud |