Git commit signing in VSCode DevContainer

robertodr
robertodr
Community Member

I am using 1Password as SSH agent and I have Git commit signing working correctly on my machine. However, I cannot make commit signing work inside VSCode DevContainers. I get the following error message:

error: Load key "/tmp/.git_signing_key_tmp24s6i4": error in libcrypto?

fatal: failed to write commit object

The container is Ubuntu-based (22.04 LTS)


1Password Version: 8.10.8
Extension Version: 2.13.0
OS Version: NixOS 23.11.20230722.12303c6
Browser: Brave

Comments

  • robertodr
    robertodr
    Community Member

    The above happens when not setting the ssh.program to op-ssh-sign. If I do that, then the error changes to:

    error: cannot run op-ssh-sign: No such file or directory
    error: 
    fatal: failed to write commit object
    

    which is understandable, since there is no op-ssh-sign within the devcontainer.

This discussion has been closed.