Interview Prep/DevSecOps/Kubernetes Security Posture

What is your security baseline for a new production EKS cluster?

IntermediateProductionKubernetes Security Posture
Answer
  • Private API endpoint (or public restricted to known CIDRs), access entries for auth, control plane logging (api, audit, authenticator) on.
  • Envelope encryption of Secrets with a customer-managed KMS key.
  • Managed node groups or Karpenter on Bottlerocket / AL2023, IMDSv2 hop limit 1, nodes in private subnets.
  • Pod Identity or IRSA for workload cloud access; no node role permissions beyond the basics.
  • Pod Security Admission restricted by default, Kyverno or Gatekeeper for org policies.
  • Default-deny NetworkPolicies (VPC CNI network policy or Cilium).
  • GuardDuty EKS Protection and Runtime Monitoring, or Falco.
  • All of it in Terraform, with a supported Kubernetes version and an upgrade cadence.
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security Posture