Interview Prep/DevSecOps/Kubernetes Security Posture

On self-managed Kubernetes, how do you secure etcd and the control plane?

AdvancedProductionKubernetes Security Posture
Answer
  • etcd reachable only from API servers: separate hosts or firewalled, client and peer TLS with certificate auth (--client-cert-auth=true, --peer-client-cert-auth=true).
  • Encrypt Secrets at rest with a KMS v2 provider (EncryptionConfiguration), not just aescbc with a key on disk.
  • Encrypted etcd backups stored off-cluster; access to backups is as sensitive as cluster-admin.
  • API server: --anonymous-auth=false where possible, --authorization-mode=Node,RBAC, audit logging enabled, admission plugins including NodeRestriction.
  • Control plane nodes run no workloads (taints) and have restricted SSH.
  • Validate with kube-bench run --targets master,etcd.
All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security Posture