Skip to content

Commit

Permalink
Merge pull request #36 from Arbel-arad/main
Browse files Browse the repository at this point in the history
added ".hmac" to the good suffix list
  • Loading branch information
oddlama authored Jul 30, 2024
2 parents 3f1c787 + c03c142 commit 4107b53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/agenix-rekey.nix
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ in {
]));

warnings = let
hasGoodSuffix = x: (hasPrefix builtins.storeDir x) -> (hasSuffix ".age" x || hasSuffix ".pub" x);
hasGoodSuffix = x: (hasPrefix builtins.storeDir x) -> (hasSuffix ".age" x || hasSuffix ".pub" x || hasSuffix ".hmac" x);
in
optional (!all hasGoodSuffix masterIdentityPaths) ''
At least one of your rekey.masterIdentities references an unencrypted age identity in your nix store!
Expand All @@ -200,7 +200,7 @@ in {
Please make sure they don't contain any secret information or delete them now.
To silence this warning, you may:
- Use a split-identity ending in `.pub`, where the private part is not contained (a yubikey identity)
- Use a split-identity ending in `.pub` or `.hmac`, where the private part is not contained (a yubikey identity)
- Use an absolute path to your key outside of the nix store ("/home/myuser/age-master-key")
- Or encrypt your age identity and use the extension `.age`. You can encrypt an age identity
using `rage -p -o privkey.age privkey` which protects it in your store.
Expand Down

0 comments on commit 4107b53

Please sign in to comment.