Skip to content

Commit

Permalink
Add missing config for auth on a BinderHub
Browse files Browse the repository at this point in the history
  • Loading branch information
sgibson91 committed Aug 1, 2022
1 parent 6926c74 commit 8110897
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
12 changes: 11 additions & 1 deletion config/clusters/2i2c/binder-staging.values.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
binderhub:
config:
BinderHub:
auth_enabled: true
template_path: /etc/binderhub/custom/templates
extra_static_path: /etc/binderhub/custom/static
extra_static_url_prefix: /extra_static/
about_message: |
<p>binder.pangeo.io is public infrastructure operated by the <a href="https://2i2c.org">2i2c team</a>.<br /><br />
jupyterhub:
hub:
redirectToServer: false
config:
BinderSpawner:
auth_enabled: false
services:
binder:
oauth_no_confirm: true
oauth_redirect_uri: "https://binder-staging.2i2c.cloud/hub/oauth_callback"
JupyterHub:
authenticator_class: cilogon
CILogonOAuthenticator:
Expand All @@ -18,7 +26,9 @@ binderhub:
- http://google.com/accounts/o8/id:
username_derivation:
username_claim: "email"
username_pattern: '^(.+@2i2c\.org|deployment-service-check)$'
username_pattern: "^(.+@2i2c\.org|deployment-service-check)$"
singleuser:
cmd: jupyterhub-singleuser
initContainers:
- name: git-clone-templates
image: alpine/git
Expand Down
19 changes: 11 additions & 8 deletions config/clusters/2i2c/enc-binder-staging.secret.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,25 @@ binderhub:
hub:
config:
CILogonOAuthenticator:
client_id: ENC[AES256_GCM,data:RuqtZnjQa3x18fOFj8aOzcV2G5nNXOv0+HNDPQv6v5fl8kCtmaYvVKioSA/+jrVGHYA=,iv:GQwIR02EvvZ9afRePmfMveP4JrTTFb4gGxcbC2Y69kQ=,tag:rFal+Q2tiG+J0wWq4/LE1g==,type:str]
client_secret: ENC[AES256_GCM,data:komugh5Iy2b9+0fzRdB8IfKVDj9lYBsWVN4Eq80OmzFW3ykQJVf1b1Hq76px/UvsQ8ZyomJo/Gs9ES0xoM8OmHYi3S+bTRuAMLJ6je6IAMB93FEw+8M=,iv:k+mptWH6NP4p92UxfsF5CFxbRyY8uBCdE/2v3A6JTKw=,tag:aBa5+SlpI+2HiDLLDJo0nQ==,type:str]
client_id: ENC[AES256_GCM,data:0geI4CrkoLofGQiINJdHaf/t5h6CLh+vBX319Oq7g1s/KWUW/1EsXx/VKNx1U3tt/F4=,iv:m07AeKeBbhrnc8G+xQZ1Y3g75kAzdIfGZg7iBfv9UCI=,tag:orVcBLft0DkuZOy/H8jsAg==,type:str]
client_secret: ENC[AES256_GCM,data:Yh6xjgQ9SqeEGeGz9gmEl29a93/XvvbQNoSVyHvZIgXB5QOXUTuwdPWXQCkBO9rt5UD0TjWad+PYRtB3ek2vyzr5sgoBIA6934P2quCvpJxya7MpsLk=,iv:ppL9hmPba7TjXTt0ND0J44oVFkz89Nl1jhCWbvECz0w=,tag:kBtB5nOzw4gMFSeoqWEuDg==,type:str]
services:
binder:
oauth_client_id: ENC[AES256_GCM,data:Tdc9bQmU0F/0jMf/S14XqXJqeybBqtycc0cbhdUYpTpaWaOJM6x8SOfOw7B8HWE3rDM=,iv:b/lA734rHp6n56bTRrqs6CPzYtyqTesDnH+juCSRlx0=,tag:1WGNxA4/ZdDZdoIQ3wlOHA==,type:str]
registry:
username: ENC[AES256_GCM,data:k4U0HNK3ViUF,iv:f87l847a0ZOGuYdOlqfoojHVdveurl7Hxwp7KNBZk7E=,tag:46eWy5HosU7yYTbilQ9MJA==,type:str]
password: ENC[AES256_GCM,data:HnOAdXI1Q7DtI+oUA+crjGd+glQOx8Td48G0Y5mMU5GZdbKPgdAV92BEY/MrKWb5ULdsnAKR8GYqmNr9Gr4K3f7debwpLCO6reKsGI37CUh0+RFrmGDvVkjaOE9fNMlqtEG3H+dePeFqCQXaBw7XPKEZcd+pcKID18mS5ZZD/R/x915uiIT7YupBAe3HUbxYbNGVo6o9MPbUoVxQQUseyWzU23i05BO8Abn0HGfeyuEo6XmH4TLkCbdJhqe0tWt6+rAfT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3e9MI/8j85Xrn4EDE6H8twK/PmJ17IQ9KYDLG0uYHOP6kLAQuKSvszuooEvwYNSvh04ySASdOYHOCDbFSUkZGaS9PLFt8hRyqdRnfhA+PThQfoyedCOhS3DxvBbEa9Y5rur1njvza+6G/E5LKP0o6Zr68YWrJaU2a4nzIgJc0vDgqA89zySYmsoydIunoehx9F5JptjOFNyJdY0qD/iP3NxPvvMoGcDv4av0WC33Ku/wKuEH1Zcpq+LevDYy89ldeSWHJBZkSAxoynCVJzmPTSYiypAT4Wzr+yOLL0fcoPaH/b95acIIO7QZYOJ9AjLTuWOOo6OCRQumxDYt5ffratK3k3rQJp/pzI5sYBvDdRrD9N10ZKl5F2i2qUqaVHqM9CV1gTpCKGcOpwIS832CpbSd5VsjbIi97HuQym1ZFMEL4i1XEF4wfWUUqupAaVoMZYTspiJ4zqc2KBlFSftdSz6yUFa7HDEKJflZ1tonF3AGubRGuy1oQfLkWoK8LZlbQBL2HdI/U32PydYcD2aDijRiKVVs9M+CZ5qYn1nnkuBtLtK2mJV3qUSK3VuclztoWscOthk1kkkufxk1TdmrFuYIjXck7tt5sXc5AQIqRN6Wm3ZiuBZoV5TLT/joz/UmzPkZ6bFSfK3iBxVyAy1mMvYpENjsaaq+J07NoIwJpUFciEosYJUGysJ3ITGvVVuBKc/O0P+Ibi98GsLCdrvr2NbYpUSgewfWqKar+MY2pol0bo/wItJvLYQyi7gECU8T5CUOGxDimGwYv0a62ZNY+p5xDy6p7UiHOh6KI8bIapvF7SQLg5oIE+NTSrID3zGoZWrDxQQqVk6XeCm4t0WPv1gKyCcutZcjDLkC0lhaLKXqnJFalreAtsICK+QTyW5PWRkorrvIJrJ4PA==,iv:4C0Qrd30FUuEiGuJzkr62KE6ZnF75Dfcp44jGaCYvAU=,tag:8efkAp6LbHqDavzGbQh3NQ==,type:str]
sops:
kms: []
gcp_kms:
- resource_id: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs
created_at: "2022-08-01T13:18:37Z"
enc: CiQA4OM7eCPRk629NK6+DDn7Gy/Peufg+kOWtHsew00rqKvuez8SSQBq6cPrK17q00TFVRWLU3xtIoK2nzpE36J19S+2a1vE+kX6c4Dr9njvMwN5FD/4i2+UeI9H031N5X4XfWbLAKcrpyWwhhFKaYc=
created_at: "2022-08-01T14:05:40Z"
enc: CiQA4OM7eBvlCz4HJOd6KfhEFgdrF/ttkqfBrPr+vllYTmeA/BYSSQBq6cPrnSK06vOUOKi/N/LsHQFknwhQiP4cH3LVJDy0p2GWL1z2/XtnIVljuyZCkSUomhKzNIp+ClTzsQ9EZ1+5nNslH4+yFN8=
azure_kv: []
hc_vault: []
age: []
lastmodified: "2022-08-01T13:18:37Z"
mac: ENC[AES256_GCM,data:OumJGzPVOAKcMiD/4/8Q6LFwW5yxG0E8I7DY+LvfEEDsLbrzUHuubL358ct3DL6NYTxeYBZiab5iqAmNAR81LpbTvnmEqUppQgvc1/kWnkBwLl/hJFPI9m1ltGvXwx5dtPMqUNP72N678jZvqLWNFoSjM43A5DPXURDSIf2svX8=,iv:lpUAiAEHZ/k0ZKYEacSR8cGNbuhaBJM2QUOJ+6+1dLk=,tag:NOqpDnmvt4Ah2aj6OERbrQ==,type:str]
lastmodified: "2022-08-01T14:05:40Z"
mac: ENC[AES256_GCM,data:I1y4m6A09pKG5d2evlf2iTJ16ZkoKqWdjN9pVq2x3YscZ0V/bglf+qFEjtYxDYOvDcuJOMZ7PxydqbiHi2rwCSixvvZScUhsuPO6C4fbeS0LqIhbV07NAgSvTPPkNYrjYaRLtscrwGVoDPGcFdenfYKzJeVraaRxUudXAtwY1tY=,iv:IX+Qklvc7q/UkAVBRIqR4U3HaK9ry+DLd2B+yNPQ9uk=,tag:Iwy1HYw2s1Xtu9o1+WXQug==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3

0 comments on commit 8110897

Please sign in to comment.