Skip to content

Support gnupg 2.4.7#274

Merged
smlx merged 7 commits intomainfrom
gpg-247
Apr 28, 2025
Merged

Support gnupg 2.4.7#274
smlx merged 7 commits intomainfrom
gpg-247

Conversation

@smlx
Copy link
Copy Markdown
Owner

@smlx smlx commented Apr 28, 2025

This PR adds support for gnupg 2.4.7, which has recently reached Debian testing.

Unfortunately gnupg has again changed the behaviour of their agent protocol in such a way that it breaks earlier versions of piv-agent. 😐

This version now works with gnupg 2.4.7 with the caveat that if you have RSA GPG keys as a fallback mechanism the pinentry dialog box will pop up every time you need to decrypt. You can click cancel and it will fall back to the Yubikey key, but it is super annoying.

Unfortunately even if we do not return the fallback keyfile keygrip in the list requested by gpg, it will still unconditionally request the non-existent key. Seems like a bug upstream.

The workaround for now is to move your keys out of the default path for piv-agent:

mv ~/.gnupg/piv-agent.secring{,bak}

And then if you need to use them, move them back. Yes, it is a PITA.


Longer term, this issue has forced me to consider piv-agent's future. Here are my thoughts: #273

@smlx smlx merged commit e953778 into main Apr 28, 2025
12 checks passed
@smlx smlx deleted the gpg-247 branch April 28, 2025 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant