How does SOPS work, and how do you use it with Argo CD?
IntermediateConceptSecrets in GitOps
Answer
SOPS encrypts values (not keys) inside YAML/JSON files with a data key that is itself encrypted for one or more recipients: age, PGP, AWS KMS, GCP KMS, Azure Key Vault or Vault Transit. Rules live in .sops.yaml (path_regex, encrypted_regex: ^(data|stringData)$). Argo CD cannot decrypt natively, so you add a plugin: KSOPS (a Kustomize generator, needs --enable-alpha-plugins --enable-exec), helm-secrets, or a CMP sidecar with access to the key (for example via IRSA for KMS).
More on Secrets in GitOps
Why are plain Kubernetes Secrets a problem in GitOps?BeginnerHow does Sealed Secrets work?BeginnerWhat are Sealed Secrets scopes?IntermediateHow does Sealed Secrets key rotation work, and what must you back up?AdvancedHow does External Secrets Operator fit into GitOps?BeginnerShow an ExternalSecret for AWS Secrets Manager.Intermediate