Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Feature/ssh keys new #102

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

ericb-summit
Copy link
Contributor

This commit enables ssh authentication for ssh-based submodules by

  1. firing up ssh-agent on /tmp/ssh-agent.sock
  2. adding the keys (passphrases not supported)
  3. setting SSH_AUTH_SOCK to /tmp/ssh-agent.sock
  4. setting git core.sshCommand such that host keys are ignored

@ericb-summit
Copy link
Contributor Author

Okay this is the last delta I have over master HEAD.

@samcontesse
Copy link
Owner

samcontesse commented Oct 14, 2022

This is adding a dependency on openssh/ssh-agent which is not nice. As this does not impact the rest of the feature, let's merge it and improve it later. I guess this would be needed only when submodules are not on the same server and relative submodules cannot be used.

@ericb-summit
Copy link
Contributor Author

Correct.

For the future, we could: https://pkg.go.dev/golang.org/x/crypto/ssh/agent

@samcontesse samcontesse merged commit 1ea4c0b into samcontesse:master Oct 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants