Fix GPG encryption subkey warm-up#208
Merged
Merged
Conversation
329e68d to
3a4e051
Compare
Keychain 3 now gives encryption/decryption subkeys an explicit warm-up path instead of routing gpge: through a signing-style GPG probe. The new path creates a tiny temporary ciphertext for the requested key and decrypts it through gpg-agent, which exercises the secret encryption subkey used by pass and other decrypt-oriented workflows. Also update gpga: to warm both signing and encryption/decryption capability, document the GPG subkey prefixes in the embedded manual, and add a Linux-only e2e test with an isolated GNUPGHOME and fake pinentry. Fixes #62. Fixes #204.
3a4e051 to
51565ed
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Keychain 3 now gives encryption/decryption GPG subkeys an explicit warm-up path instead of routing
gpge:through a signing-style GPG probe.The new
gpge:path creates a tiny temporary ciphertext for the requested key and decrypts it throughgpg-agent, which exercises the secret encryption subkey used bypassand other decrypt-oriented workflows.gpga:now warms both signing and encryption/decryption capability.This also documents the GPG subkey prefix behavior in the embedded manual and adds an authoritative Linux-only e2e test using an isolated
GNUPGHOMEand fake pinentry.Fixes #62.
Fixes #204.
Validation
PYTHONPATH=src python -m pytest tests/test_gpg_e2e.py tests/test_help.py tests/test_cli_help.py tests/test_build_doc_texts.py -qPYTHONPATH=src python -m pytest tests -qpython -m ruff check src testspython -m mypypython -m bandit -q -c pyproject.toml -r srcgit diff --check