mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-11-23 14:02:45 +00:00
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.
12 lines
609 B
YAML
12 lines
609 B
YAML
creation_rules:
|
|
- path_regex: .*values.yaml$
|
|
encrypted_regex: ^(password|value|ssh-key|api-key|user|username|privateKey|clientSecret|clientId|apiKey|extraArgs.*|.*Secret.*|extraEnvVars|.*SECRET.*|.*secret.*|key|.*Password|.*PASS|.*SOCIALACCOUNT_PROVIDERS|.*\.ya?ml|token)$
|
|
mac_only_encrypted: true
|
|
pgp: DC6910268E657FF70BA7EC289974494E76938DDC
|
|
- path_regex: .*.yaml
|
|
encrypted_regex: ^(data|stringData|.*key|.*crt|.*[Ss]ecret.*|.*[Tt]oken.*)$
|
|
pgp: DC6910268E657FF70BA7EC289974494E76938DDC
|
|
- path_regex: .*.env$
|
|
input_type: dotenv
|
|
pgp: DC6910268E657FF70BA7EC289974494E76938DDC
|