On clean restart I cannot use 1Password git GPG SSH without manually logging into 1Password

jb77423d
jb77423d
Community Member

On a clean restart, I cannot use 1Password git GPG SSH functionality (for signing git commits) without manually logging into 1Password through the desktop application. Is 1Password supposed to automatically prompt me to log in when I execute a git command?

Here's my .gitconfig:

[user]
  signingkey = ssh-ed25519 [redacted]
    email = [redacted]
    name = [redacted]

[gpg]
  format = ssh

[gpg "ssh"]
  program = "/opt/1Password/op-ssh-sign"

[commit]
  gpgsign = true
❯❯ git commit -m "Test"
error: Could not connect to socket. Is the agent running?

fatal: failed to write commit object

After logging into 1Password manually, I can use git signing and authentication without any issue.


1Password Version: 8.10
Extension Version: Not Provided
OS Version: Kubuntu 23.04
Browser:_ Chrome

Comments

  • mrgrain
    mrgrain
    Community Member

    Same on macOS. Also happens with VSCode.

    As a user,
    I'd expect 1Password to be started when then the socket isn't running,
    So that it prompts me for the password.

  • On macOS there is a setting to automatically start 1Password in the background when logging in:

    On Linux, that setting doesn't exist yet, so would currently require a manual additional as startup application/login item, e.g. using Startup Applications on Ubuntu, or systemd, depending on the Linux flavor.

    We're looking into ways to improve this or at least better document it.

This discussion has been closed.