Skip to content

GPG agent forwarding fails with gpg 2.1.x #3048

Closed

Description

@jtokoph
  • VSCode Version: 1.46.0-insider
  • Local OS Version: OSX latest
  • Remote OS Version: Ubuntu 16.04
  • Remote Extension/Connection Type: Docker

Steps to Reproduce:

  1. Build an image with gpg 2.1.x. Example Dockerfile:
FROM ubuntu:16.04

RUN apt-get update
RUN apt-get install -y gnupg2
  1. Try to open a project in the remote container based on that image

You'll see in the container bootstrap logs that it tries to list directories and files with gpgconf, but version 2.1.x doesn't let you specify a specific directory or file and always outputs the list of all special paths.

username@hostname:~/app# gpgconf --version
gpgconf (GnuPG) 2.1.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

username@hostname:~/app# gpgconf --list-dir homedir
sysconfdir:/etc/gnupg2
bindir:/usr/bin
libexecdir:/usr/lib/gnupg2
libdir:/usr/lib/x86_64-linux-gnu/gnupg2
datadir:/usr/share/gnupg2
localedir:/usr/share/locale
dirmngr-socket:/home/username/.gnupg/S.dirmngr
dirmngr-sys-socket:/var/run/gnupg2/S.dirmngr
agent-socket:/home/username/.gnupg/S.gpg-agent
homedir:/home/username/.gnupg
username@hostname:~/app#

Does this issue occur when you try this locally?: N/A
Does this issue occur when you try this locally and all extensions are disabled?: N/A

Re: #72

Activity

  1. added
    bug
    containers
    on May 27, 2020
  2. locked and limited conversation to collaborators on Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugcontainersverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions