Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Add a private ssh key to pull private GitHub repos
Browse files Browse the repository at this point in the history
GitHub supports 'deploy keys' that have readonly access
to private repos. We provision a private key for the repo,
and give instructors the public key so they can grant that
key access to their private repo. This lets git,
and hence nbgitpuller, pull from those private repos.

Fixes #44
  • Loading branch information
yuvipanda committed Dec 17, 2020
1 parent 1003839 commit f4b0b8b
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 6 deletions.
1 change: 1 addition & 0 deletions deployments/utoronto/config/github-deploy-key.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDC7pwIfNb+CI9antTqxrh38MwVk9hDF1MlrcwSRHKw7jpLIZNv+3iuQcaSWMax1XMMzi4rKggTbq34D36Q4wBSiAMrFi3CKc8fW1yip2kjB8hKC7PG0yB/2h48m7b0hNKH+R6q1jtHTR9ywFEYrqnr7M7ErVWgIawuTTcoug/GxhChioW67r14hiDrvBTwnfd7HIU9nDKhfTo2c4f0wqsP8CvCujGgQimUI5YAQHAt8Kskzvud9oiMxq/RgNsh2KitKxDnVdYoYHZrFoHeDKxrRfn8Gmj4jatI60Y+LNe6b83YDobFjdqcxvdFx9LE6QecjGoCKjxmerf54aUlmcLd41TFQ0n7v8MseG9DVc7cq9xj8NHUfnAypBOGdkIP6qn8O7q+dds1dUBiHqJSE6fAE+Hgougw4dzKVvqNFFA68Z+mFTZDNiJuIpSf4DPNVNxRWorlmkAIGZfxCvES4FHmk5ntaa06IwdHByKvZBZjfzhx5ES7hei5RcmJ9BYdWs0= [email protected]
20 changes: 20 additions & 0 deletions deployments/utoronto/secrets/github-deploy-key
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"data": "ENC[AES256_GCM,data:2O9uKOQ8iHjOK1bFXZV2fkOhp7JcaTHFV5Tg5Bd5iWkphvzQHgvw2yGo9TV6idokgHo3g2leyp5XvJTvtzd2gz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0vB0r1aQ3RvfWTB0GNQVfTTffcaxINVrK/p8UiqV7lMXXW/Rs1u3wpupGfBUXVZi8kX6sg5qzRao1aM8MtEMfarc4VDn5Lw0yWp60XQdgE0FF+P36sFHlEEjVqxQF1YtgU0GAVLXsm8lkmrd6+UnvNwhUNv+P0BKdK,iv:VX/Xh0073ODGZMGQ2vJfDy9Nv53MN07OmAAEoW5w7sc=,tag:+bgSC6yOCBp+elB/sd6AKg==,type:str]",
"sops": {
"kms": null,
"gcp_kms": [
{
"resource_id": "projects/two-eye-two-see/locations/global/keyRings/sops-keys/cryptoKeys/jupyterhub-deploy",
"created_at": "2020-12-17T10:00:55Z",
"enc": "CiQAFDQ5yhH1ySP7+vbq21sIVrCejYfTJHZzR5WK8BNoVGMEx8YSSABtF0FuCVb8tLy89UkRiOxN+1r32wV/u9tRCUYiPq5Qq8KLDh2uh2DiRl7HXJ+H6ZgfAgQ/Roy7u8pKmptjOEFm9Ajek8BbIQ=="
}
],
"azure_kv": null,
"hc_vault": null,
"lastmodified": "2020-12-17T10:00:56Z",
"mac": "ENC[AES256_GCM,data:qeLg0mJAja8TszXzEURIfY+RuTLiodLOj+q0EtLGPGmq7VLLT6b0aciOY7hF8pUrbYXt5BaygA4opG9MyyTFkSX3+wjMhXERfNc3EHu8wMVMPeZ6082p+sOUjHaaBz+OUcVHi/9tcmuXtCFoAqxFNfNBPdsZALwaCmsxw8tyhy0=,iv:XhsWcVwosjMA8am8JT1rK/nK8qJix1mTp0vUkTH/Q58=,tag:axFmrX0WAZC9F7zbuNz2qw==,type:str]",
"pgp": null,
"unencrypted_suffix": "_unencrypted",
"version": "3.6.1"
}
}
8 changes: 5 additions & 3 deletions deployments/utoronto/secrets/prod.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
etcSSHConfig:
01-github-ssh-deploy-key: ENC[AES256_GCM,data:pvha4e3hYLPG5vbUXMJecmPm+VGJG6O/GkhucriOHQWrImEoLMOfFuhTuDVy/aFBfPZejxD1lXL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+r7BAe6XdbfMu2hQdFB5qsFxGWoIzfZ3EC0oafg7YJYsnyUNLhqIfNyjFS96zpl6Iy4C1A/8+JDbgTzRDqW+wEAxfB8LCU4eMGT8Iluy2FIo7vVVdKP1GnyVqV1Oz/DlVh5j5bY0y/Bk+fLVVAcv1BHMO5GWJfcXd8H,iv:vmexrl1vePl49qwSlhRyNVAe87c87laicBfcXmTqnEs=,tag:uok9anNzjjYmDM+VFTDjeQ==,type:str]
jupyterhub:
hub:
imagePullSecret:
Expand Down Expand Up @@ -31,8 +33,8 @@ sops:
enc: CiQAFDQ5ytipTU+81DbslBEtqcsIp3o2cCnkMiIaspkoc7WblykSSQBtF0FugrhokuuFAUCLEsyfdsEwLiOriocMhBUsEbPFqTTApZwA/deiO0PRifmxDNLmeCjs42nHenhHzAa/+1QXKmzQCAcUfmI=
azure_kv: []
hc_vault: []
lastmodified: '2020-09-22T06:30:51Z'
mac: ENC[AES256_GCM,data:jKrp3IdmNd1Aavu8K16szHL9P+7UNgmQ/dzq91R4KA7Nb/oXrpd6IRqn8ZCVMcMhTyoYbdsJtb2WuI1I0+Miu/Gku3IVxL1TN77NpUU0sODb1g2ZRxj2HMuMLxwJ7yZhGgAlEJhzcdAJosQeRK8j8G2llH3b2rjVVIvkRgBIsjs=,iv:Z09Kt4CO1syBa0bLNT8IdgytD+aGxW9sNWIt7L2CQg8=,tag:w7x599CLoI9ePdj3/k8RpA==,type:str]
lastmodified: '2020-12-17T09:59:38Z'
mac: ENC[AES256_GCM,data:KEn//JC4X6KfqohluXCeHFO2wqQ+qLmiZGWsXu9ItcxsvZLGTu7JPQsdF64dFE4mGn4acLIcug3spG+d/alYc1aMh5wy/IDy7CgXXY+crmMQdKiIashR/oYys+owrTxSLGmNegu24/fhpS5UHEdZ9AZRUCXqpEnoUMlgeHnyVyE=,iv:s276vbflVDUY4tx51r0GIOt/x2BivA5pIXKBRQEL2J4=,tag:T6A9n0vfXsLuqu06xaNwNg==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.6.0
version: 3.6.1
8 changes: 5 additions & 3 deletions deployments/utoronto/secrets/staging.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
etcSSHConfig:
01-github-ssh-deploy-key: ENC[AES256_GCM,data:yQfzNiTCDatA0P1XIjyY3PlbJjzCB0I5Q7yZJX44sV60ZgCsa8KEKJgKUggu9snl7ecqC21E7D8DAMMEzjoFrVnYzpvIY/whcO9twM6E2MiNw1nj3OtNy9SzLivKi+vIO4ucplv5qlLraTIndkGxvDqM2jC00SMT+INhdjbiUnwx1M9s0IvvouLMZAaa1s6sIgqQ2faMHGNTByGJpSEcVDUKpBvCj4ZQYuNcBv5aMeaPupNdm0w/Q4LP6uQxda77ZJ2ohcMUaqSX7DFQRoU3Dr7c0GXKWRd1p7q+EnSt4Rp5lD42cG/5uds9GlTXA97XzRoj5Nayys5ZHOP2Z6gU3K6z6AebvwWUjT/qp3HNKNqPkEjqw59O8UGxX7b8O+TM1R5Udl5MyvD7+HAm+6DqQ5M+mqwjLaBRVISqMjTV5OAFLW3mwhxUqwIyAAFZKn6NMWdlDTm05f/CJXHIIs4bgXMqijShumQvgh/f5qLcH6d+qcuUJG31ZewcxBJXtlgM9myJxivufhGWJXH1SFwlyDl5yiSFl4HpOqycqtDkdjEErjLlHUn5ngN7Aqy2FJDFlujCi8MJ+ZwFSAd9Xy2suRrDePRW1g38z6PUzUgiEGj8xzZwejigoL84rzpYSdrlePoOfESyRAJuDAsNas/sqDDDz2vTkouY4C2IY1V+d32HvGpB0zzHzDy7mRRMHEyXlMbwtZ5qv5U9rAYCa/Ezv5IlI6Vfu/Cwea3Q3cb81p509xnuVeH5YBOofMwjzW/e0IBI+rYU7HDQymv12BrHBFZWzxbd+jh755meAmmeAxY/2p4QzoPkLlgL8YHRtcaNE124JabfBaYzslWXk6Xr+qdqNJ1l/dlHb2bQHUaweTya0zGuwC3z0jbUwPfIzaa+JdFEZ+5qVfWS1R/D5ZJYxGAu9h8zIV/kjupQ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GgwMKC/Buv3ClyKJ5sCr2tIQJCwOrgcuPmPbJqsYN7YKP8Zest00zt6OJQF4NdFEZAOYyPTZtFHH3bY7+zBRjOrX9Tu8/KmcOVFUSt0y2JE1KMYmFNKsQZuSySDCy7dxgJWNGSaMB9aFPtGX6/aoFhgO7yJ18pwsoBwYA5BAavzhyvBoxgjMB2Gr/rRbT20BBqUu1Ww3fWZvhzIVzoj2lV0xKukXIUY52gOVSPXzoW79r4Y5ntt9aTkBGafxzHHdpUs6g9j+5Xzr+/f11K0J1P/tcITnpfblwvJgxaZUgJxsgbfSKpIASurhKQA463HHzVZl53uLG22ECyH8cmuBI6cqELCn9lialg3p/TbFkN+qhsYaGLE90M3REoyvq,iv:YwySVJcyeHlASde+Nzer+dI2VT9rLtE9KEzJiItF5cU=,tag:mNZ0WzRciYs3uxm12A0IfQ==,type:str]
jupyterhub:
hub:
imagePullSecret:
Expand Down Expand Up @@ -31,8 +33,8 @@ sops:
enc: CiQAFDQ5yiSdCQCjCd38Lxwuuc0iAS3qKcCZoay6G1KbOFvZmIgSSQBtF0FuuRP9WoLRcIMZ0JVUBLlBZ/6TfV7E62clUjcFJGKID9OCXt5esMp1kbzUtVaW+U9UVyp6OlBxT08lioDbsKapq8oXZhs=
azure_kv: []
hc_vault: []
lastmodified: '2020-09-16T07:27:36Z'
mac: ENC[AES256_GCM,data:/0ECZ4FS41BcO6LeY+IGAFELZaqDRfZExFVEONleIxgRqCq3ufRO1jr3Q5tioTTVywXx1Ncjr9rR8LsvPFp6LicTPDMnapOc7M86we9Xpig/DO+ChoXoyrUuYSjhz8TGTkpJGW/V+wgDmVgrx64VsGQfMLjRBhVn2uEDUTyjt44=,iv:YORM/cwKzOg3bNCzYNI//gPXRh+fW2wlFGNy2hqUwh8=,tag:GwTKNCzNY86myiHsMDB0DA==,type:str]
lastmodified: '2020-12-17T09:35:59Z'
mac: ENC[AES256_GCM,data:FBvudNfw+AUDBzatbCnlY6DzKNU7RwpiVJ5nBzyqcWU0QnI6zmkZqvewB+bfCz6tL423bzFKtA/fnHh9Mv/RuQzbcfvOrl7U0T3FtLYhlCBGMdY66BjfDiBuT6YkmzpwvkCjTlRUvZNo2VcUbpGekZ1X8ZwQTF3ztFBB+Yhal+o=,iv:WNKZbCis3pWWk+MotgTuxJy1nRNZu/2ktfJxDUaW3ZU=,tag:s9DDq/L4IIO/uKOC3uPugw==,type:str]
pgp: []
unencrypted_suffix: _unencrypted
version: 3.6.0
version: 3.6.1
18 changes: 18 additions & 0 deletions hub/templates/ssh-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
kind: ConfigMap
apiVersion: v1
metadata:
name: user-etc-ssh-config-d
labels:
app: jupyterhub
component: etc-ssh
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
{{- range $name, $content := .Values.etcSSHConfig }}
{{- if eq (typeOf $content) "string" }}
{{ $name }}: |
{{- $content | nindent 4 }}
{{- else }}
{{ $name }}: {{ $content | toJson | quote }}
{{- end }}
{{- end }}
12 changes: 12 additions & 0 deletions hub/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ etcJupyter:
# 1h, same as culler.
shutdown_no_activity_timeout: 3600

etcSSHConfig:
01-github-ssh-deploy.conf: |
Host github.com
IdentityFile /etc/ssh/ssh_config.d/01-github-ssh-deploy-key
nfsPVC:
enabled: true
# If you want a PVC with NFS that can be used to mount home directories
Expand Down Expand Up @@ -67,9 +72,16 @@ jupyterhub:
- name: etc-jupyter
configMap:
name: user-etc-jupyter
- name: etc-ssh-config-d
configMap:
name: user-etc-ssh-config-d
extraVolumeMounts:
- name: etc-jupyter
mountPath: /etc/jupyter
readOnly: true
- name: etc-ssh-config-d
mountPath: /etc/ssh/ssh_config.d
readOnly: true

auth:
state:
Expand Down

0 comments on commit f4b0b8b

Please sign in to comment.