Interview Prep/GitOps & Argo CD/Tenancy, Security & Secrets

Your team wants to use SOPS with Argo CD. What do you set up?

AdvancedScenarioTenancy, Security & Secrets
Answer

Situation read → Argo CD cannot decrypt SOPS natively.

What I'd do →

  1. .sops.yaml with creation rules: encrypted_regex: ^(data|stringData)$, AWS KMS key per environment.
  2. Add KSOPS to the repo-server (init container copying the binary, or a CMP sidecar), set kustomize.buildOptions: --enable-alpha-plugins --enable-exec.
  3. Give the repo-server (or sidecar) KMS decrypt permission via IRSA, scoped to the right keys.
  4. Developers encrypt with sops --encrypt --in-place; CI checks no unencrypted Secret is committed.

Why → Decryption happens at render time inside the repo-server, so it needs the plugin and key access.

Interview tip → Note the security trade-off: the repo-server can decrypt every secret it renders, so limit who can create apps pointing at those paths.

All GitOps & Argo CD questions Roadmap: Argo CD (GitOps)

More on Tenancy, Security & Secrets