Interview Prep/DevSecOps/Identity, Least Privilege & OIDC for CI

How do you manage Kubernetes access on EKS for humans and CI in a current setup?

IntermediateProductionIdentity, Least Privilege & OIDC for CI
Answer

Use EKS access entries (cluster authentication mode API) instead of editing the aws-auth ConfigMap. Access entries are managed through the EKS API, show up in CloudTrail and cannot be broken by a bad YAML edit that locks everyone out.

aws eks create-access-entry --cluster-name prod \
  --principal-arn arn:aws:iam::111122223333:role/AWSReservedSSO_Developer_abc123
aws eks associate-access-policy --cluster-name prod \
  --principal-arn arn:aws:iam::111122223333:role/AWSReservedSSO_Developer_abc123 \
  --policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSViewPolicy \
  --access-scope type=namespace,namespaces=payments

For finer control, map the entry to a Kubernetes group and bind that group with namespaced RoleBindings. Disable bootstrapClusterCreatorAdminPermissions in Terraform so the creator role does not keep hidden admin.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Identity, Least Privilege & OIDC for CI