Description
EKS encrypts etcd disks for every cluster. On Kubernetes 1.28 and later, omitting encryption_config still gives all API data, including tokens and passwords in Secrets, envelope encryption with an AWS owned key. Node and EBS volume encryption are separate settings.
Potential impact
Use a customer managed key if your organization must control its policy and lifecycle. Disabling or deleting a key in use, or revoking permissions EKS needs, can interrupt cluster operations and data access. Restrict Kubernetes access separately.
Remediation
Check the cluster version and its current key. If you need a customer managed key, allow EKS to use a symmetric KMS key in the same Region and specify its ARN with resources = ["secrets"]. Review the Terraform plan for replacement and verify the cluster’s key ARN after applying it.
Examples
Both excerpts require a cluster role, VPC and subnet configuration. The second supplies the key through var.eks_encryption_key_arn. On 1.28 and later, listing secrets still gives all API data envelope encryption.
Default encryption
resource "aws_eks_cluster" "eks_cluster" {
name = var.cluster_name
}
Specify a customer managed key
resource "aws_eks_cluster" "eks_cluster" {
name = var.cluster_name
encryption_config {
resources = ["secrets"]
provider {
key_arn = var.eks_encryption_key_arn
}
}
}