Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable pulling private GitHub repos for Neurohackademy #2852

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions config/clusters/2i2c/enc-neurohackademy.secret.values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ jupyterhub:
hub:
config:
CILogonOAuthenticator:
client_id: ENC[AES256_GCM,data:6XHOmSCMGhfqmlUiPrZ3XOOCxvcxcY9kGvL4tOq3r938OcFYL2c4djMY1HaiiWqxuSy7,iv:baQy9nkbEjAFjrfAh2jck90ovu40yo8kyxDeIJ90oio=,tag:fcjU9fNH2qL9cRjCuBJNSA==,type:str]
client_secret: ENC[AES256_GCM,data:cMmsQtb46YaqSu1agyrXXASIKLkpVTjwfVEtp+LbO6un6e0o+G3TqUxSIBxl2Frkv4vgi+b7kIPGW0vMsi5A3uYJ5afSDhujKukJhtT6KAjkvkLDFHo=,iv:rYat5xx4XTp4WRLM4w0w5YL6WksxpCIT1qOpSAk9o/c=,tag:/pkEPkgggSQvNbQPY2b8qA==,type:str]
staticWebsite:
githubAuth:
githubApp:
id: ENC[AES256_GCM,data:ycsNCrTO,iv:ikASM8Mhh8BrZ0dEnDl+jBhzduCR1mj1+24XyADEkrM=,tag:EjgrgfQfVfK8u9o0BReMtQ==,type:int]
privateKey: ENC[AES256_GCM,data:q8UMKibJMvsIzRdJtoLCiGcF730N/f0DYdi+L0YRw8vKlvDJuxXoqLV4xYiAlSh2ULp91s3A7rw4WpBoaqeJIvGyjBWDSPCGFiVpjqsXGgTli1LMsCUgY29Kpoz3bOKbjE35Rmqiru1sYBM1FVSRrWcMymNLCNlvsk8SB92jVwQ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ENC[AES256_GCM,data:/V5zuwdVRd5ylEW1eB/kxskMkShJHCx7AefXpropYmD4fi8wvLux+VO+kpP6WnsQw+w5,iv:5j08+QLAFMf4Vt8r3i9lgGrX0syPv2Wr8yRbaEaakAM=,tag:1RH78JX6PkORH/aY8xu2/A==,type:str]
client_secret: ENC[AES256_GCM,data:QhunpQzs0wdrzHRAV66sF/yj+uvLBsNgS+xrZ+t31tXthqJyl/NK3w20h9xbMTVWZjwHpEJPDRvdXD52nHi/beNlEGSKVno3pLYgBmg0+mGlhQoVmlY=,iv:2xrJb182QTRSCldR9KxSvZADgfWA79WvdMDmKw75GsU=,tag:S7wKAdcLTqPmtIiTH+xY/g==,type:str]
singleuser:
extraFiles:
github-app-private-key.pem:
mountPath: ENC[AES256_GCM,data:Ov0lkLLSgJtZvjA2lnMrWmYbNemh13Pu0qSdkQOnahNkV0zsSvc=,iv:hvSLVxXAxXB44qP3kh6dX8hyUnlO5iDvjv5OOyay1u0=,tag:/QBW7Yq+jeSvqOAX4+OuPQ==,type:str]
stringData: ENC[AES256_GCM,data:c5/5NDR+I5tuIq69NSXQqJ0OyIA4sNM+ystkIQDYjwKUcqQ95GyVRryALpLkmR+WXRFDDzBQEEtFsIw2GtcbOd6+gdKIamMpdulqFonc3Ii9Wm86hqRUfDv4iNgZqnvWLBQ4VfOHLoIYF3eQ9AYmr3Ie25iCdNM9E3Iz8lrs8Uo+VSogcyheHtohsg8kdcaAs2u1crbLQqdtpeHZqvYgwxpI7L/E/pp1tEGPWq/H0I3X/gB4oBOSwYzWHvWFxn2Pd+lokklbZyCHsxxLiiieNhe4dsXaQh28sdwLD+dcVG/RCjLqf2n79c738rtmsbJRlySMxgcQut/RWy0REPDYo7QYHrjkxaiyMsVzw/araNsp5M2KddVdWIPz3jlLGh/3/WtxXW8zauYz7/0FAsGGYsyEjnJJyObdncd0MIFuKRt+hCwJP75+A3cghutw96jfRhIe5S8x+pZc5I48VKrRb0IpwKu3TN9pHCBWOoP9a5zj3uCKwY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zhccYcxETdIoEB4rSmZsvwWFZsX5IhpqlBBZz5BqKbpFudIF4BXczm+POz0pbx08AqJozVYkXReFbZomOIbHR7kuUH2MZPUKOVpaBm19I3tLqu4aILkUwGRkmIBbzHoVxl7yTPHI2XuSqfCx8ES3lVqmE/9xBulUsm7ND9rC0PIRpB04cyIxiFaLQTpftAEV6TmXwWOQ08V05qZ7fxMheiUX4litsjOTuC2YeKGuzyfDU5lDkY4dCO+dyTMRRRQ4mIXtAYH+Jh9XZb1Px0mVsINxmAuocXEm1bk136kf/msH+EUi0AP00OZ/vE0C51YRinPnxtuJyorfQMYs+l8P7vVu+pd9pEkOjgk+YeO5Eq5wtGS2qZEJb7hn3wbTJi0f3VxpycNa/stEPwNBvEEwp0z/MeLnzREd+E9+StBNHT2rn/P7MyVb2rYetjOpx/Gw/sBhIO3ikav36MisTUgPtyCHZLubaz9yTvxgs0StvsR1c4oHm7WqKuWVL+EY39RJg3f4DadtjpEZA+eiLHhoNAJHEhH9+Tb8gDb5QL3kZ3sWG9Jq7/YuIDuUQBPpEg1MlvtzrAdlN/kZ+y8+55jJnnjz/AGdunBKxd1oOWt3ST8HsY3QplRF96B1l50V9aNRdku480ychV0XlUuUINqxcIQ==,iv:sc4DVogQTcMdwXZZIZZMsBB9uvAWhd+Q+DvwzIk6p4M=,tag:lkCRCcsYHO7yln81w43EJA==,type:str]
sops:
kms: []
gcp_kms:
- resource_id: projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/similar-hubs
created_at: "2023-07-05T15:17:39Z"
enc: CiUA4OM7eEmJaSPDCoUu7vlQ5IDjRhlMuVmo2uFBXuBxo1EntXxzEkkAyiwFHBZy64jJAmZWIRWh60+61EYVBPoqEzJP/2Yz8O+tlyKSk4r5n3J25XgXFxhAMJEodpfXd3qohNQgYcScTFukCzza3P3y
created_at: "2023-07-21T17:00:19Z"
enc: CiUA4OM7ePhQoduO2OVXLQZHWj5P2rxIIdvc+PDheYWgpiNqKbGXEkkAyiwFHHdw83axVZbD2yP0xoQX9PhnIJx0n9uyp6gmGLvBv1v6SMaXe9h/W998wg7WdAL60ht+x0+zJBMRHhbW/6ZrOan29G6D
azure_kv: []
hc_vault: []
age: []
lastmodified: "2023-07-05T15:17:40Z"
mac: ENC[AES256_GCM,data:t6tJO3Al3e0RBxMgOBMJVfnlbZPJbjNqPisUqCcrrUdYA3P7LpzX1bCJQAct59DHKZ5hPJvbPIFflRi2ZHKZ1JzLaZAg8n3r0dLBmsRPnGd0AXs0O3v1zki6NaXnq+XWsx+mge9zBZzgzpzk+io202xrgCUFV+emWcRUBbxugNI=,iv:oydLLO+cyRmfPelDsOFhms1MeJ9eKsEN0+r0WNHGQJc=,tag:8QvRxIYy/7x7QKykRdQ6kA==,type:str]
lastmodified: "2023-07-21T17:00:19Z"
mac: ENC[AES256_GCM,data:BPdzh5EbcRD+yObsVXm0JwPqgJrEEIY3ZJCLy0KBGtY2WRMNdX9d6+vQ3YIlXDgBBMHi9x9eSMsH0cof0nsoOwrEnjV1jK/4I8eHQqIu+2aV3y8VrXTP0A2vZylN6bZKbfmjl7IzrtyikED4DXnakVKf2hR42XowPd+cnb56zBA=,iv:bqFW+rPT1ZxJ/x4wEfbte4nKp7yiRWSI6CXuiHkGYug=,tag:tJWPIeWVbN0SCpjwAPaNIA==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.7.3
44 changes: 8 additions & 36 deletions config/clusters/2i2c/neurohackademy.values.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
### Presently the below config does not work. We suspect that network policies
### are blocking the authentication/OIDC discovery step. We have given
### ourselves a one week timebox to figure this out, otherwise this config should
### be removed and an alternative found.
### https://github.com/2i2c-org/infrastructure/issues/2681#issuecomment-1629374195
# dex:
# enabled: true
# hubHostName: neurohackademy.2i2c.cloud

# staticWebsite:
# enabled: true
# source:
# git:
# repo: https://github.com/NeuroHackademy-2023/zoom/
# branch: main
# ingress:
# host: neurohackademy.2i2c.cloud
# path: /zoom
# githubAuth:
# enabled: true

jupyterhub:
ingress:
hosts:
Expand Down Expand Up @@ -47,10 +26,17 @@ jupyterhub:
name: The National Institutes of Health grant 2R25MH112480-06
url: https://reporter.nih.gov/search/ydTvTwXxk0yd6eGdRznbLQ/project-details/10409452
singleuser:
extraFiles:
gitconfig:
mountPath: /srv/conda/envs/notebook/etc/gitconfig
stringData: |
[credential "https://github.com"]
helper = !git-credential-github-app --app-key-file /etc/github/github-app-private-key.pem --app-id 356717
useHttpPath = true
# User image: https://quay.io/repository/arokem/nh2023?tab=tags
image:
name: quay.io/arokem/nh2023
tag: "9aecdbb2881f"
tag: "894883dfb3bd"
nodeSelector:
2i2c.org/community: neurohackademy
extraTolerations:
Expand Down Expand Up @@ -108,17 +94,3 @@ jupyterhub:
- value: "/git-pull?repo=https%3A%2F%2Fgithub.com%2FNeuroHackademy-2023%2Fcurriculum&urlpath=lab&branch=main"
title: Pull curriculum repo and redirect to /lab
description: Use ngbitpuller to pull https://github.com/NeuroHackademy-2023/curriculum and redirect to /lab afterwards
### Presently the below config does not work. We suspect that network policies
### are blocking the authentication/OIDC discovery step. We have given
### ourselves a one week timebox to figure this out, otherwise this config should
### be removed and an alternative found.
### https://github.com/2i2c-org/infrastructure/issues/2681#issuecomment-1629374195
# services:
# dex:
# url: http://dex:5556
# oauth_redirect_uri: https://neurohackademy.2i2c.cloud/services/dex/callback
# oauth_no_confirm: true
# display: false
# oauth2-proxy:
# url: http://dex:9000
# display: false