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

Your security team wants to prevent anyone from deploying privileged pods via Argo CD. Where do you enforce it?

IntermediateScenarioTenancy, Security & Secrets
Answer

Situation read → Argo CD projects restrict kinds, not pod spec content.

What I'd do →

  1. Enforce at admission: Pod Security Admission restricted labels on namespaces (via managedNamespaceMetadata) and Kyverno/Gatekeeper policies.
  2. Shift left: run the same policies in CI on the config repo (kyverno CLI, conftest).
  3. Argo CD then surfaces admission denials as sync failures with the policy message.

Why → Admission control is the only layer that sees every create, whatever the source.

Interview tip → Say "Argo CD is not a policy engine; pair it with one".

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

More on Tenancy, Security & Secrets