Check ID:
Provider: Kubernetes
Service:
Severity: HIGH
Categories:
Resource type:
apiserver_encryption_provider_config_setProvider: Kubernetes
Service:
apiserverSeverity: HIGH
Categories:
encryption, cluster-securityResource type:
PodWhat this check verifies
Kubernetes API server pods include--encryption-provider-config, supplying an EncryptionConfiguration to apply encryption at rest to selected API resources stored in etcd.
Risk
Absent an encryption provider, Secrets and credentials are stored in plaintext in etcd and backups. Access to etcd, control plane disks, or snapshots can expose keys and tokens, enabling unauthorized API calls and lateral movement, compromising confidentiality and integrity.Recommendation
Enable encryption at rest with anEncryptionConfiguration and run with --encryption-provider-config using a non-identity provider (prefer kms v2). Apply least privilege to key/KMS access, rotate keys, restrict config file access, keep settings consistent across API servers, and re-encrypt existing objects.
Remediation
Dashboard steps- SSH to each control-plane node
- Create the encryption config file at /etc/kubernetes/enc/enc.yaml:
- Edit /etc/kubernetes/manifests/kube-apiserver.yaml and:
- Add the flag under the kube-apiserver container command:
- Mount the config path:
- Add the flag under the kube-apiserver container command:
- Repeat on all control-plane nodes.
References
Where this check fires
This check runs on every scheduled scan against your Kubernetes account. Findings appear at Cloud Security → Findings filterable byCheck ID = apiserver_encryption_provider_config_set. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to Kubernetes checks