Forum Discussion

heaths's avatar
heaths
New Contributor
1 month ago

Prompted every time I need to sign a git commit or tag

I have 1Password set up to sign git commits and tags in both Windows and WSL (I use the latter most for development). Starting a few months ago but getting increasingly frustrating (especially when I rebase a lot of commits), I'm prompted every time I need to sign.

My ~/.gitconfig is set up like so (relevant settings shown):

[user]
	signingkey = ssh-ed25519 PUBKEY

[core]
	sshCommand = ssh.exe

[gpg]
	format = ssh

[gpg "ssh"]
	program = "/mnt/c/Users/USERNAME/AppData/Local/Microsoft/WindowsApps/op-ssh-sign-wsl.exe"

[commit]
	gpgsign = true

[tag]
	gpgsign = true

`ssh-add -L` (both the ELF executable in WSL as well as running the PE/COFF `ssh-add.exe`) shows my ssh auth and signing keys.

1Password - the desktop app - is also configured to only prompt when 1Password is locked or after 4 minutes. I get this same prompt-on-every-use behavior whether 1Password is open and unlocked or not. Works as expected for my browser extension, though.

I found a post from about a year ago that someone resolved a similar behavior by re-installing 1Password. I may try that, but would rather hear from a dev to troubleshoot the issue in its current state so a proper fix could be made so this doesn't keep happening after winrot or whatever is causing this happens again to anyone.

2 Replies

  • Hey!

    Just wanted to confirm I have the same issue. I use 1Password on macOS as well where this setup works as expected and I'm only prompted once until 1Password is locked.

    For WSL under Windows 11 I get prompted every time I sign a commit, however not when actually using ssh, e.g. when pushing a commit to GitHub.

    Setup is similar as op, except I use alias/symlinks for `op-ssh-sign` (pointing to `op-ssh-sign-wsl.exe`), `ssh` and `ssh-add` - all pointing to the `.exe` varaint. `ssh-add.exe -l` shows my signing (and auth) key. I,ve configured the developer settings to remember my key approval "until 1Password locks".

    1Password 8.12.12 (81212044)
    Windows 11 25H2
    WSL 2.6.3.0

  • emilysmith's avatar
    emilysmith
    Icon for 1Password Team rank1Password Team

    Hey Heaths! That sounds really frustrating. Apologies for the delayed response here. Let me ask around internally and get you an answer :)