How do helm-secrets and SOPS work together?
IntermediateConceptSchema, Helmfile, Argo CD & Secrets
Answer
SOPS encrypts the values of a YAML file (keys stay readable) using age, PGP, AWS KMS, GCP KMS or Azure Key Vault. helm-secrets is a Helm plugin that decrypts SOPS files on the fly during install/upgrade/template and removes the plaintext afterwards.
# .sops.yaml
creation_rules:
- path_regex: secrets/.*prod.*\.yaml$
kms: arn:aws:kms:ap-south-1:123456789012:key/1111-2222
- path_regex: secrets/.*\.yaml$
age: age1qy8...devkey
helm plugin install https://github.com/jkroepke/helm-secrets
sops --encrypt --in-place secrets/shop-prod.yaml
helm upgrade --install shop ./shop -f values-prod.yaml -f secrets://secrets/shop-prod.yaml
More on Schema, Helmfile, Argo CD & Secrets
When is `values.schema.json` validated, and can it be skipped?IntermediateHow do you express "password is required only when the internal database is enabled" in a schema?AdvancedWhat is Helmfile?BeginnerShow a realistic `helmfile.yaml`.IntermediateWhat is the difference between `helmfile sync` and `helmfile apply`?IntermediateHow does Argo CD deploy a Helm chart?Advanced