-
Notifications
You must be signed in to change notification settings - Fork 28
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
SSH repositories fail to configure with coder #31
Comments
We don't support cloning over SSH in envbuilder currently, but it's not something I'm opposed to adding. Does cloning over HTTP(s) not work for your scenario? |
Would it be sufficient to drop an coder agent binary into the envbuilder image and set |
I think that might work, but it'd need the agent env vars as well. |
This would be useful! |
Those are in the user profile right? |
Is there plan to look at implementing this? Support for cloning over SSH in envbuilder will be very useful. Some developers has preference using SSH over HTTP/S for interacting with git. To them, it is not expected that a devcontainer workspace fail to build due to this, given that they have already configure a SSH key within Coder and that they are force to fallback to use HTTP/S for cloning. In addition, to support cloning private repos, we specifically need to add additional terraform logic or uses coder_external_auth to configure GIT environment variables in the workspace template. |
Adding support for this, would also provide a simple and secure workaround for #60 |
+1 for adding support for this. This is the top reason our company isn't using coder yet |
There are two main cases to consider here:
In the second case, there is a circular dependency where we need the agent to get the git credentials to clone the repo and build the container, but we need to build the container to start the agent. To work around this, we can possibly have envbuilder perform step of getting the git SSH key from Coder using the agent token directly. |
Plan:
|
Agreed with @johnstcn to resolve it. |
Closing this issue out. A follow-up issue will provide the capability for the Coder terraform provider to inject the user's SSH private key into workspace resources. However, there should be no further changes required in envbuilder to support this. |
If I try to use a private git repository over SSH I see the following error:
I didn't see a way to configure that to use the built in SSH key provided by coder. Is there a missing setting?
The text was updated successfully, but these errors were encountered: