Skip to content
Discussion options

You must be logged in to vote

No—not cryptographically with current SOPS. The component verifying the MAC must be able to recover the file's data key, which also gives it the capability to decrypt the secrets.

sops.mac is not a public-key signature. The verification path is:

  1. unwrap the per-file data key;
  2. decrypt the protected values and recompute the hash of the cleartext tree;
  3. decrypt the stored sops.mac with that data key;
  4. compare the two values.

Because mac_only_encrypted is false in your intended setup, the cleartext hostname/certificate values are included in that hash too. That is why the raw vim edit becomes a MAC mismatch—but detecting that mismatch requires the key.

sops filestatus does not help here: it on…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@klaernie
Comment options

Answer selected by klaernie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants