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 →
.sops.yamlwith creation rules:encrypted_regex: ^(data|stringData)$, AWS KMS key per environment.- Add KSOPS to the repo-server (init container copying the binary, or a CMP sidecar), set
kustomize.buildOptions: --enable-alpha-plugins --enable-exec. - Give the repo-server (or sidecar) KMS decrypt permission via IRSA, scoped to the right keys.
- 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.
More on Tenancy, Security & Secrets
Ten teams share one Argo CD. How do you isolate them?IntermediateA developer could create an Application in their project that deploys a ClusterRoleBinding granting cluster-admin. How do you prevent privilege escalation?AdvancedCI needs to trigger a sync of one app after a deploy commit. How do you give it access?BeginnerAn auditor says the Sealed Secrets private key is a single point of failure and a single point of compromise. How do you respond?AdvancedYou need the same database password in 12 clusters. Which secrets approach do you choose and why?IntermediateA plaintext Secret was committed to the config repo and pushed. What do you do?Beginner