mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-11-23 14:02:45 +00:00
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:
1 parent
c09eb098a4
commit
b9c1f718f5
2 files changed
+32
-32
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user