Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git SSH signing configuration not propagated when using DevPod with 1Password SSH agent #1718

Open
BigGold1310 opened this issue Mar 5, 2025 · 0 comments
Labels

Comments

@BigGold1310
Copy link

What happened?
When attempting to use DevPod with 1Password's SSH agent, I receive the error: "error failure in setting up git ssh signature helper". This results in a .gitconfig missing any of the signing settings.
Signing on local git repositories works as expected.

What did you expect to happen instead?
DevPod should forward the SSH agent and configure the .gitconfig properly

How can we reproduce the bug? (as minimally and precisely as possible)

My devcontainer.json:

{
    "name": "ansible-dev-container-docker",
    "image": "ghcr.io/ansible/community-ansible-dev-tools:v25.2.1",
    "containerUser": "root",
    "runArgs": [
      "--privileged",
      "--device",
      "/dev/fuse",
      "--hostname=ansible-dev-container"
    ],
    "updateRemoteUserUID": true,
    "customizations": {
      "vscode": {
        "extensions": ["redhat.ansible"]
      }
    }
  }

SSH Agent forwarding seems to work:

bash-5.2# ssh-add -l
256 SHA256:dB<truncated>sU SSH Key - Company (ED25519)
256 SHA256:vr<truncated>KA SSH Key - Private (ED25519)
bash-5.2# 

My .gitconfig:

[user]
	name = name
	email = [email protected]
	signingkey = ssh-ed25519 AA<truncated>as
[core]
	autocrlf = input
[gpg]
	format = ssh
[gpg "ssh"]
	program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
[commit]
	gpgsign = true
[credential]
	credentialStore = keychain
	helper = 
	helper = /usr/local/share/gcm-core/git-credential-manager


[includeIf "gitdir:~/work"]
path = ~/.gitconfig.work
[safe]
	directory = *
[credential "https://dev.azure.com"]
	useHttpPath = true

My .gitconfig.work:

[user]
	name = name
	email = [email protected]
	signingkey = ssh-ed25519 AA<truncated>g6

.gitconfig created by devpod:

[user]
	name = name
	email = [email protected]

Local Environment:

  • DevPod Version: v0.6.14
  • Operating System: mac
  • ARCH of the OS: ARM64

DevPod Provider:

  • Local/remote provider: docker

Anything else we need to know?
I've verified that SSH authentication works correctly outside of DevPod using the my Git config. Git commands like git clone, git push and signing commits work properly without DevPod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant