lib.ec.secret_store.Sops: Don't encrypt annotations #168
Loading…
Reference in a new issue
No description provided.
Delete branch "jan/feature/20261107-lib-ec-secret-store-sops-don-t-encrypt-annotations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
lib.ec.secret_store.Sops: Don't encrypt annotations
SERVICE_SECRET[n] keys of an entry are used as rotation metadata by downstream software, and their values don't need to be kept secret: they name the macro and the account that owns it. Encrypting them buys nothing, and it forces every annotation tool to decrypt and re-encrypt the whole entry for a one-line read or edit.Run sops encrypt with
--unencrypted-regexSERVICE_SECRET, so the annotation keys stay plain text in the repository file and the store stays greppable without the age key, and with--mac-only-encrypted, so the MAC covers the encrypted values only and the annotation lines can be edited as plain text without invalidating the file.