k8wiz
Flux CD
Medium
Security

How does Flux decrypt Secrets that are stored encrypted with SOPS in Git?

Select your answer:

Show answer and explanation

Answer: The Kustomization sets spec.decryption to sops with a Secret holding the key

Explanation

kustomize-controller decrypts SOPS files at build time with keys from the Secret in spec.decryption.secretRef, such as an entry ending in .agekey for age, or with cloud KMS credentials. The files stay encrypted in Git and in the source artifact.