lib.ec.secret_store.Sops: Don't encrypt annotations #168

Merged
Jan Lindemann merged 1 commit from jan/feature/20261107-lib-ec-secret-store-sops-don-t-encrypt-annotations into master 2026-11-07 14:25:47 +01:00 AGit
Owner

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-regex SERVICE_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.

#### 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-regex` `SERVICE_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.
lib.ec.secret_store.Sops: Don't encrypt annotations
All checks were successful
CI / Packaging - Kali Linux (pull_request) Successful in 5m28s
CI / Packaging - OpenSUSE Tumbleweed (pull_request) Successful in 5m7s
CI / Packaging test (pull_request) Successful in 0s
3f29084790
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-regex SERVICE_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.

Signed-off-by: Jan Lindemann <jan@janware.com>
Assisted-by: unsloth/Qwen3.8-27B-GGUF:Q4_K_M with pi.dev v1.5.0
Jan Lindemann scheduled this pull request to auto merge when all checks succeed 2026-11-07 14:13:29 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
janware/jw-pkg!168
No description provided.