How do you handle multi-cluster RBAC and audit at scale?
AdvancedScenarioSecurity, RBAC and policy
Answer
Situation read → Twelve clusters, each with hand-made bindings.
What I'd do →
- Manage RBAC as code through GitOps and a shared base
- Bind IdP groups instead of users
- Ship audit logs to a central store
- Use policy to forbid ad hoc ClusterRoleBindings
- Review access quarterly with automated reports
Why → Consistency across clusters removes drift and makes audits cheap.
Interview tip → Say you treat RBAC as code reviewed in PRs.
More on Security, RBAC and policy
A developer needs read-only access to one namespace. How do you grant it?BeginnerExplain the difference between Role, ClusterRole, RoleBinding and ClusterRoleBinding.IntermediateA CI pipeline needs to deploy to one namespace. What identity do you give it?IntermediateWhat does a ServiceAccount do and why should you disable the token automount?BeginnerHow do you let pods on EKS access S3 without static keys?IntermediateA pod has access to the node's IAM role through IMDS. How do you prevent credential theft?Advanced