-
Notifications
You must be signed in to change notification settings - Fork 67
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 #4119 from GeorgianaElena/binderhub-ui-demo
[New Hub prototype] Binderhub UI demo
- Loading branch information
Showing
7 changed files
with
283 additions
and
1 deletion.
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,114 @@ | ||
jupyterhub: | ||
ingress: | ||
hosts: | ||
- hub.binderhub-ui-demo.2i2c.cloud | ||
tls: | ||
- secretName: https-auto-tls | ||
hosts: | ||
- hub.binderhub-ui-demo.2i2c.cloud | ||
custom: | ||
2i2c: | ||
add_staff_user_ids_to_admin_users: true | ||
add_staff_user_ids_of_type: "google" | ||
jupyterhubConfigurator: | ||
enabled: false | ||
binderhubUI: | ||
enabled: true | ||
homepage: | ||
templateVars: | ||
org: | ||
name: Demo binderhub UI with binderhub-service | ||
url: https://2i2c.org | ||
logo_url: https://2i2c.org/media/logo.png | ||
designed_by: | ||
name: 2i2c | ||
url: https://2i2c.org | ||
operated_by: | ||
name: 2i2c | ||
url: https://2i2c.org | ||
funded_by: | ||
name: "" | ||
url: "" | ||
singleuserAdmin: | ||
extraVolumeMounts: [] | ||
singleuser: | ||
storage: | ||
type: none | ||
extraVolumeMounts: [] | ||
initContainers: [] | ||
hub: | ||
redirectToServer: false | ||
services: | ||
binder: | ||
oauth_no_confirm: true | ||
oauth_redirect_uri: https://binderhub-ui-demo.2i2c.cloud/oauth_callback | ||
loadRoles: | ||
binder: | ||
services: | ||
- binder | ||
scopes: | ||
- servers | ||
- read:users # admin:users is required if authentication isn't enabled | ||
user: | ||
scopes: | ||
- self | ||
# Admin users will by default have access:services, so this is only | ||
# observed to be required for non-admin users. | ||
- access:services!service=binder | ||
config: | ||
BinderSpawnerMixin: | ||
auth_enabled: true | ||
JupyterHub: | ||
authenticator_class: cilogon | ||
CILogonOAuthenticator: | ||
oauth_callback_url: "https://hub.binderhub-ui-demo.2i2c.cloud/hub/oauth_callback" | ||
allowed_idps: | ||
http://google.com/accounts/o8/id: | ||
username_derivation: | ||
username_claim: "email" | ||
binderhub-service: | ||
enabled: true | ||
ingress: | ||
enabled: true | ||
hosts: | ||
- binderhub-ui-demo.2i2c.cloud | ||
tls: | ||
- secretName: binder-https-auto-tls | ||
hosts: | ||
- binderhub-ui-demo.2i2c.cloud | ||
config: | ||
BinderHub: | ||
base_url: / | ||
hub_url: https://hub.binderhub-ui-demo.2i2c.cloud | ||
badge_base_url: https://binderhub-ui-demo.2i2c.cloud | ||
auth_enabled: true | ||
enable_api_only_mode: false | ||
image_prefix: us-central1-docker.pkg.dev/two-eye-two-see/binderhub-ui-demo-registry/binderhub-service- | ||
extraConfig: | ||
# FIXME: set KubernetesBuildExecutor.push_secret again | ||
# without this for some reason the build pods | ||
# search after the wrong secret name (i.e. the default name) | ||
# set by binderhub in KubernetesBuildExecutor.push_secret | ||
01-binderhub-service-set-push-secret: | | ||
import os | ||
c.KubernetesBuildExecutor.push_secret = os.environ["PUSH_SECRET_NAME"] | ||
extraEnv: | ||
- name: JUPYTERHUB_API_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
name: '{{ include "jupyterhub.hub.fullname" . }}' | ||
key: hub.services.binder.apiToken | ||
- name: JUPYTERHUB_CLIENT_ID | ||
value: "service-binder" | ||
- name: JUPYTERHUB_API_URL | ||
value: "https://hub.binderhub-ui-demo.2i2c.cloud/hub/api" | ||
# Without this, the redirect URL to /hub/api/... gets | ||
# appended to binderhub's URL instead of the hub's | ||
- name: JUPYTERHUB_BASE_URL | ||
value: "https://hub.binderhub-ui-demo.2i2c.cloud/" | ||
- name: JUPYTERHUB_OAUTH_CALLBACK_URL | ||
value: "https://binderhub-ui-demo.2i2c.cloud/oauth_callback" | ||
# The password to the registry is stored encrypted in the hub's encrypted config file | ||
buildPodsRegistryCredentials: | ||
server: "https://us-central1-docker.pkg.dev" | ||
username: "_json_key" |
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
23 changes: 23 additions & 0 deletions
23
config/clusters/2i2c/enc-binderhub-ui-demo.secret.values.yaml
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,23 @@ | ||
binderhub-service: | ||
buildPodsRegistryCredentials: | ||
password: ENC[AES256_GCM,data:oIqMepLt8hmsRTLhbZvDigfozMw9mIW4sYn+JWamN2k/HrQWq9OkAJr17UznADanwh4ClXwHMhjUTAf77HlpdHfnFReerIzvD+DscPnp3oFMIXU50Z2iZAUdz8PwOUm5UYk2/Tj8W/gi3bs/XJsPL4udI7GMn6T38d9NdExZKA98wb2Ka24rV5SnDAhLvMgCYCDvLgGZu7fqcv9UluavhN5T1bybDJcaOHQZePnbhB+QV1j/HHWy8AnwHjFoGd2ZiErzh9NF4nNhINVpgsWAo2VMZWbFrfqgrKylzDQpPEdkuEmFZI0WhFJHMXhKW4Ab0Pp+O7Agb9ol6LYpV4O8Ji+8FmtQp+09Ch8TsK9JjPAAVKRrx1upLhcCMzqvhJXagFSUPi625AOnxxtZ33VIFqTzIzNvhCab8BU5KDQ3RdJkaHHfs5N2I/+6F/YRQWkq3naz10pDVmeZ+wPNPlCYLCCYmwiKhuHvnNB9K+tloV1PPncZxcTLJMp9QghmiMLt+nZ1M7ofnXnR5CBqYKaHxqtJ5uVU3qxeR2lUm1PunfN7CY/BmpdsBiJblflseSTJy5XCE1qACwY68H0X6+VKt9FcNrVZZrmsoeXmyuzqiWG+PgUEV6W/RSzSCjt8dQqKeKUNdh2An9fONGqipNqfLnHKFppcwi+cCg7kQzwhTFS2mgmTLuJgzu3MGaCsBbWFOSOeNy8P//Htdk3UzUPlJV9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99tQ3Wkmv7Fv2uJ0SihpcaEjjJPzZEkbD47khYpCgwfjKOId2ENNUj0PuUl1cl1x9cZgF+0cz2ySIYlFvRms9nufTQ8eczg2cV7lWZPNn53ZpNpFqrQ5/FcYmXGUSCXrsaHY+NP4KkCJmDRt0SLNBZPAa09I5WQUgx/qi07W20ApEu9jzyyG2WpMvId8OCbRJ7CYAEKjWbj4052sA6VsZMfWkBBzYK5PtdTmor9cPkt1Km4YwRMZkPFeciJxfFKIamtAY3/UCmpLOASc7H4QIl0bizLUpYxpORAUPdLGSATPiQqXzvvj,iv:O57KfiTHSPiNYyrN+rJG5weJdfsrZOUO0fyMHUuIKKk=,tag:GCvuufg1uyZw6DIg17rEdw==,type:str] | ||
jupyterhub: | ||
hub: | ||
config: | ||
CILogonOAuthenticator: | ||
client_id: ENC[AES256_GCM,data:tEZMVs9TkdzJaAqsbF+uNX2uwhTCnsuJnxcwJD3rSB0FXt481yze4Rs8t/5Ef/npccE=,iv:bJzGDmlZArcO3yfUO9mCQDDZI7jMDjeC66U7zvBWSKI=,tag:Xt8OKd/iFHik6a6QesR7wg==,type:str] | ||
client_secret: ENC[AES256_GCM,data:AwgZagRLArMGhZji3jon4YVjfblBmp3wyTmqvOFg7mZs5LMiFNrlnAtTQ8oqv5O4QQfyeMGZhustlnmmWMW9Vqtxkax3zljiPfAA0zfy/Ie4t0085Nw=,iv:vwPzC67oR7vzOHEyDMs2PDc19mRRPMkIjSDScT6M0Cc=,tag:imEiXTjo7KGB9Wl2G8eyMQ==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: | ||
- resource_id: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs | ||
created_at: "2023-09-18T19:00:41Z" | ||
enc: CiUA4OM7eFioG9yDgVwKtc0cYrU65GNcqMSDuUgnuXuq3KW9dRI6EkkAq2nhVV2TFrZOq5jktjMd4TQF1lwH/08tAyGd3vMfBmdd3Xdy3bAUUHhrPXcK6QabMRYdXPzQzgB+oBGaqOsJO7D7jT9NpeCn | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: [] | ||
lastmodified: "2024-05-28T11:32:40Z" | ||
mac: ENC[AES256_GCM,data:DHS9gRya0PThBNrc+2ImEnzLLGIKGVpCkZIn70AjxgY5XTM8oPCChsF72n7b08BEDE6muncb/52Baqbi01nkmDJZLn/TAgIhMmJHmsFYyLxwAQ4IefKOWUtm+zYjRj8ybZxwV3ZItVnoyC9bS+PIC76+HFe8hmK2dzCPt44Sjbc=,iv:AGZy4gL5eb8C15JN+6xBlg7Dctt7DJGrwVytnrtgVMw=,tag:mlbhJCJljDunsXy5FM4B8Q==,type:str] | ||
pgp: [] | ||
unencrypted_suffix: _unencrypted | ||
version: 3.8.1 |
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 |
---|---|---|
|
@@ -77,4 +77,5 @@ hub_cloud_permissions = { | |
|
||
container_repos = [ | ||
"binder-staging", | ||
"binderhub-ui-demo" | ||
] |