infra/kube: sops-encrypt Talos cluster and token secrets

The generic *.yaml creation rule only encrypted ^(data|stringData|.*key|.*crt)$,
so cluster.secret, secrets.bootstraptoken, secrets.secretboxencryptionsecret and
trustdinfo.token sat in plaintext in talsecret.sops.yaml on the remote.

Extend the rule with .*[Ss]ecret.*|.*[Tt]oken.* and re-encrypt the file;
values are unchanged (round-trip verified). Secrets themselves need rotating
separately, since the old ones were public until now.
This commit is contained in:
vhaudiquet authored and Valentin Haudiquet committed 2026-11-23 00:45:52 +01:00
1 parent c09eb098a4
commit b9c1f718f5
2 files changed
+32 -32

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ creation_rules:
mac_only_encrypted: true
pgp: DC6910268E657FF70BA7EC289974494E76938DDC
- path_regex: .*.yaml
encrypted_regex: ^(data|stringData|.*key|.*crt)$
encrypted_regex: ^(data|stringData|.*key|.*crt|.*[Ss]ecret.*|.*[Tt]oken.*)$
pgp: DC6910268E657FF70BA7EC289974494E76938DDC
- path_regex: .*.env$
input_type: dotenv