Interview Prep/Helm/Schema, Helmfile, Argo CD & Secrets

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
All Helm questions Roadmap: Helm

More on Schema, Helmfile, Argo CD & Secrets