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.
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?IntermediateYour team wants to use SOPS with Argo CD. What do you set up?Advanced