Advertisement
Intermediate ArgoCD, RBAC

What is the exec resource in RBAC and why is it sensitive?

Short answer

The exec resource controls whether a user can open a shell into a running pod via ArgoCD's terminal feature. It's powerful (equivalent to kubectl exec) and can bypass other controls, so it's disabled by default and granted narrowly.

Save ArgoCD mock interview
Advertisement
AModel answer
The exec resource controls whether a user can open a shell into a running pod via ArgoCD's terminal feature. It's powerful (equivalent to kubectl exec) and can bypass other controls, so it's disabled by default and granted narrowly. Enabling it requires both the feature flag and an explicit RBAC allow.
Example

p, role:admin, exec, create, '*/*', allow

Real-world example
Only senior SREs get exec permission for emergency debugging, and it's off by default for everyone else.
Likely follow-ups
  • Why is exec disabled by default? | What does exec permission allow?
Related topics