envbuilder icon indicating copy to clipboard operation
envbuilder copied to clipboard

envbuilder - pass ssh key

Open reiser opened this issue 1 year ago • 1 comments

Is it possible to pass the coder pubkey to envbuilder?

#1: 📦 Cloning [email protected]:lorem/ipsum.git to /workspaces/lorem-ipsum...
#1: 🔑 Using SSH authentication!
#1: 🔑 No SSH key found, falling back to agent!

reiser avatar Jul 23 '24 23:07 reiser

@reiser Have you tried setting ENVBUILDER_GIT_SSH_KEY_PATH to the path of a private key mounted inside the container?

johnstcn avatar Aug 03 '24 19:08 johnstcn

in coder you can try "ENVBUILDER_GIT_SSH_PRIVATE_KEY_BASE64": base64encode(data.coder_workspace_owner.me.ssh_private_key)

mwiede avatar Mar 14 '25 10:03 mwiede

This has been implemented. https://github.com/coder/envbuilder/issues/333

phorcys420 avatar Apr 13 '25 23:04 phorcys420