How do you apply least privilege to ServiceAccounts and CI/CD deploys?
IntermediateProductionSecurity Hardening & Compliance
Answer
One ServiceAccount per workload, automountServiceAccountToken: false when unused, Roles limited to specific resources and namespaces, and cloud permissions through IRSA/Pod Identity with narrow IAM policies. For CI, use OIDC federation to assume a role with an EKS access entry limited to a namespace, not a long-lived admin kubeconfig.
More on Security Hardening & Compliance
What is the baseline security checklist for a production cluster?BeginnerWhy should containers run as non-root?BeginnerHow should human access to the cluster be managed?BeginnerWhat is the purpose of image scanning in CI and in the cluster?BeginnerWhy not store secrets in Git or in ConfigMaps?BeginnerWhat is a default-deny NetworkPolicy baseline?Beginner