Interview Prep/Kubernetes/EKS in Production

How do you secure access to the EKS API for humans and CI?

IntermediateProductionEKS in Production
Answer

Humans: SSO via IAM Identity Center permission sets mapped through access entries to namespace-scoped policies; no static IAM users. CI: GitHub OIDC to assume an IAM role, mapped via access entry to a limited Kubernetes group. Restrict public endpoint CIDRs or go private with VPN, and audit via CloudTrail and audit logs.

aws eks create-access-entry --cluster-name prod --principal-arn arn:aws:iam::123456789012:role/ci-deploy
aws eks associate-access-policy --cluster-name prod --principal-arn arn:aws:iam::123456789012:role/ci-deploy --policy-arn arn:aws:eks::aws:cluster-access-policy/AmazonEKSEditPolicy --access-scope type=namespace,namespaces=shop
All Kubernetes questions

More on EKS in Production