feat: fetch GPG passphrases from Bitwarden vault#182
Merged
Conversation
Add optional Bitwarden integration so the sign node can pull each PGP key passphrase from a vault at startup instead of prompting interactively or using dev_pgp_key_password. - New sign_node/utils/bitwarden.py: fetch_passphrases() maps each keyid to a vault item by name and returns the passphrases; fails fast when a keyid is missing. Imports BWCLIWrapper from bsbw.wrapper (the package root does not re-export it). - SignNodeConfig gains bitwarden_enabled and bitwarden_username / password / password_file / collection_id (defaults + schema). - PGPPasswordDB accepts preloaded_passwords; ask_for_passwords() uses them with precedence over the development password and interactive prompts, and still verifies each passphrase unlocks the key. - almalinux_sign_node.py fetches from Bitwarden in main() when enabled. - Install bitwarden-wrapper from the AlmaLinux git repo (not on PyPI). - Tests for the fetcher and the preloaded-password path; document the new config keys in README and node-config/sign_node.yml.
Kwaizer
approved these changes
Jul 7, 2026
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.
Add optional Bitwarden integration so the sign node can pull each PGP key passphrase from a vault at startup instead of prompting interactively or using dev_pgp_key_password.
Resolves: AlmaLinux/build-system#280