Interview Prep/Kubernetes/Security Hardening & Compliance

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.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Security Hardening & Compliance