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

Developers need to view logs in Argo CD but must not exec into prod pods. How do you configure RBAC?

BeginnerScenarioTenancy, Security & Secrets
Answer

Situation read → Separate permissions for logs and exec.

What I'd do →

p, role:dev, applications, get, */*, allow
p, role:dev, logs, get, */*, allow
p, role:oncall, exec, create, */*-prod, allow
g, my-org:developers, role:dev
g, my-org:sre-oncall, role:oncall

Keep exec.enabled: "true" only if on-call really needs the web terminal.

Why → Logs and exec are separate RBAC resources, so they can be granted independently.

Interview tip → Mention that exec actions are audited as Kubernetes events and server logs.

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

More on Tenancy, Security & Secrets