Configuration¶
1 Recipient resolution¶
nimvault resolves the GPG recipient through a 3-tier chain. The first non-empty value wins:
CLI flag:
--recipient KEY(or-r KEY)Environment variable:
NIMVAULT_GPG_RECIPIENTConfig file:
.vault/configin the git repository root
If none are set, nimvault exits with an error.
2 Config file format¶
.vault/config uses a simple key-value format:
# Lines starting with # are comments
recipient = 9CCCE36402CB49A6
Only the recipient key is currently recognized. Whitespace around the = is
ignored.
3 GPG key ID¶
The recipient value is any string GPG accepts as a recipient identifier:
Long key ID:
9CCCE36402CB49A6Fingerprint:
ABCD1234...Email:
user@example.com
Long key IDs are recommended for unambiguous matching.
3.1 Finding your key ID¶
gpg --list-keys --keyid-format long
# pub rsa4096/9CCCE36402CB49A6 2024-01-01 [SC]
# ^^^^^^^^^^^^^^^^ this is the key ID