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

No gpg-agent running (or killed?) when connecting to a devcontainter through a tunnel #10759

Open
daantimmer opened this issue Mar 7, 2025 · 1 comment
Assignees
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster

Comments

@daantimmer
Copy link

daantimmer commented Mar 7, 2025

Steps to Reproduce:

  1. start vscode on remote machine, enabling tunnel service
  2. start devcontainer on remote machine
  3. test for gpg --list-secret-keys
  • observe that a key exists
  1. start devcontainer through tunnel from a client machine
  2. test for gpg --list-secret-keys on the vscode server machine
  • observe that there are no more keys. Command fails with: gpg: can't connect to the gpg-agent: End of file
  1. test for gpg --list-secret-keys on the vscode client machine
  • osserve that there are no more keys. Command fails with: gpg: can't connect to the gpg-agent: End of file

Does this issue occur when you try this locally?: No, if I don't use a tunnel, then everything works fine.
Does this issue occur when you try this locally and all extensions are disabled?: Works locally already, no need to disable extensions

Screenshot of gpg --list-secret-keys

Image

@vs-code-engineering vs-code-engineering bot added the containers Issue in vscode-remote containers label Mar 7, 2025
@chrmarti
Copy link
Contributor

The log shows that Dev Containers attempts to forward GPG to the remote host:

gpg-agent: Socket in container (/root/.gnupg/S.gpg-agent) forwarded to remote host (C:\Users\[redacted]\AppData\Local\gnupg\S.gpg-agent.extra).

It also runs the following to work around an issue on Mac:

Start: Run: gpg-connect-agent updatestartuptty /bye

@chrmarti chrmarti added the info-needed Issue requires more information from poster label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
containers Issue in vscode-remote containers info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

2 participants