Skip to content

Commit

Permalink
Merge pull request #23 from LeSuisse/issue-mode-explicit-identity-age…
Browse files Browse the repository at this point in the history
…nt-path

Explicitly set the IdentityAgent path when using the `issue` mode
  • Loading branch information
isometry committed Aug 25, 2023
2 parents aad7222 + e98397c commit 70a215a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func processCommand() int {
// override default ssh-agent socket
os.Setenv("SSH_AUTH_SOCK", agent.SocketFile())
log.Debugf("set SSH_AUTH_SOCK to %q\n", agent.SocketFile())
sshClient.PrependArgs([]string{"-o", "IdentityAgent=SSH_AUTH_SOCK"})

case "sign":
signedKey, err := vaultClient.SignKey(sshClient.User)
Expand Down

0 comments on commit 70a215a

Please sign in to comment.