Interview Prep/DevSecOps/Kubernetes Security

How do you secure etcd?

IntermediateConceptKubernetes Security
Answer

etcd holds every Secret and the full cluster state, so read access is cluster compromise.

  • TLS for client and peer traffic, with client certificate auth; only the API server holds a client cert.
  • Never expose ports 2379/2380 beyond control-plane nodes.
  • Encryption at rest for Secrets via EncryptionConfiguration with a KMS provider.
  • Encrypted, access-controlled backups (etcdctl snapshot save); a snapshot is as sensitive as etcd itself.

On EKS, GKE and AKS etcd is managed and not reachable, so our job shrinks to enabling envelope encryption and protecting backups such as Velero buckets.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Kubernetes Security