Interview Prep/DevSecOps/Kubernetes Security Posture

How do you design Kubernetes RBAC for many teams?

IntermediateProductionKubernetes Security Posture
Answer
  • Namespaces per team and environment; RoleBindings to IdP groups, never to individual users.
  • A small set of standard ClusterRoles reused through namespaced RoleBindings: team-viewer, team-developer (no secrets read, no pods/exec in prod), team-admin.
  • Use aggregated ClusterRoles (aggregationRule) so CRD permissions get added automatically.
  • Cluster-scoped rights (CRDs, webhooks, nodes) only for the platform team.
  • Service accounts per workload with the minimum Role; automountServiceAccountToken: false where unused.
  • Everything delivered via GitOps from the namespace onboarding template.
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security Posture