Open jmgilman opened 1 year ago
The code is confusing. But it looks like it's really only a warning: https://github.com/gpg/gnupg/blob/master/g10/call-agent.c#L2277
I found this NixOS discussion. This could either be a NixOS issue or a (breaking?) change in recent GPG releases.
I'm seeing the same message, but I cannot use GPG at all:
$ echo "test" | gpg --clear-sign
gpg: problem with fast path key listing: Forbidden - ignored
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
test
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clear-sign failed: Inappropriate ioctl for device
The result is the same, with GPG_TTY
set or not. Please help me get GnuPG to work; I currently need to bind-mount the ${HOME}/.gnupg
directory from my host into my container :(
This conversation in the GnuPG mailing list
https://lists.gnupg.org/pipermail/gnupg-users/2024-April/067043.html
mentions:
If you use the extra-socket certain operations are forbidden so that a rogue gpg version on the remote site won't be able to change passwords, export secret keys, or get a listing of all available secret keys. This is why you see this diagnostic.
Summary
When running any gopass commands that require decryption, I receive the following warning:
Steps To Reproduce
gopass show my/secret
)Expected behavior
I am expecting no warnings to be produced from GPG.
Environment
nixpkgs
Additional context
It's worth noting that I do not see this warning when performing other decryption actions using
gpg
from the CLI. I'm assuming thatgopass
must be doing something unique that's triggering this warning. Unfortunately, searching for the exact warning basically produces nothing.It's also worth noting that I use
gopass
with a lot of other tools, namelyaws-vault
, and so when calling commands that rely on decryption I'm constantly seeing this warning appear. It would be nice to figure out how to make it stop.