- Notifications
You must be signed in to change notification settings - Fork927
feat(provisioner): pass owner git ssh key#13366
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -202,6 +202,8 @@ func provisionEnv( | ||
"CODER_WORKSPACE_OWNER_NAME="+metadata.GetWorkspaceOwnerName(), | ||
"CODER_WORKSPACE_OWNER_OIDC_ACCESS_TOKEN="+metadata.GetWorkspaceOwnerOidcAccessToken(), | ||
"CODER_WORKSPACE_OWNER_GROUPS="+string(ownerGroups), | ||
"CODER_WORKSPACE_OWNER_SSH_PUBLIC_KEY="+metadata.GetWorkspaceOwnerSshPublicKey(), | ||
"CODER_WORKSPACE_OWNER_SSH_PRIVATE_KEY="+metadata.GetWorkspaceOwnerSshPrivateKey(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Is this safe to do? I suppose if the provisioner is compromised all bets are off, but just curious if there is anything we should be sensitive to here in relation to passing the privkey around. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. The safety of these values is predicated on So if someone can either access the environment variables of the Apart from that, this is a sensitive variable just like the OIDC access token or Coder session token that get passed in the same way. | ||
"CODER_WORKSPACE_ID="+metadata.GetWorkspaceId(), | ||
"CODER_WORKSPACE_OWNER_ID="+metadata.GetWorkspaceOwnerId(), | ||
"CODER_WORKSPACE_OWNER_SESSION_TOKEN="+metadata.GetWorkspaceOwnerSessionToken(), | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.