-
Notifications
You must be signed in to change notification settings - Fork 199
Open
Description
Fragment in question:
sops-nix/modules/sops/default.nix
Lines 322 to 330 in 6e5a38e
| age = { | |
| keyFile = lib.mkOption { | |
| type = lib.types.nullOr pathNotInStore; | |
| default = null; | |
| example = "/var/lib/sops-nix/key.txt"; | |
| description = '' | |
| Path to age key file used for sops decryption. | |
| ''; | |
| }; |
I understand the reason for pathNotInStore is to prevent people from accidentally leaking a private key key into the (world-readable) Nix store.
However with some age plugins like age-plugin-tpm for example, the contained blob is mostly useless to attacker today, as the data is sealed with a target host TPM key.
Would it make sense to add an extra option, e.g. "allowKeyInPublicReadableNixStore" which would lift the requirement for age.keyFile to be "pathNotInStore"?
emsknock and josh
Metadata
Metadata
Assignees
Labels
No labels