Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoSSH Commit Signing
I've stated signing my git commits using SSH.
However this only seems to work with setting the SSH_AUTH_SOCK env variable. For some reasons I cannot set that variable everywhere and have to rely...
mvgijssel
3 years agoNew Contributor
I'm currently using a https://code.visualstudio.com/docs/remote/containers on macOS and I'm trying to get the git commit signing to work. SSH is already working by explicitly exporting the 1Password specific SSH_AUTH_SOCK
in the terminal I use before opening VSCode
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
code .
This enables using the SSH keys from 1Password from within the devcontainer, because VSCode does some magic with the socket in the background.
For git commit signing I'm now running into this error
```
error: Error: AppError { error: could not connect to agent
Caused by:
std::io::error::Error, location: Location { file: "ssh/op-ssh-sign/src/utils.rs", line: 27, col: 14 } }
fatal: failed to write commit object
```
I've installed 1Password within the devcontainer using https://support.1password.com/install-linux/#other-distributions-or-arm-targz and updated my .gitconfig
like
...
[gpg]
format = ssh
[gpg "ssh"]
program = /opt/1Password/op-ssh-sign
[commit]
gpgsign = true
[tag]
gpgsign = true
...
But I'm unable to get it work. My suspicion is that op-ssh-sign
is looking in the wrong place for the socket, but I can't validate this because it's closed source.
Would folks from 1Password be able to help out? 😏