Skip to main content

More Info:

Verifies that —etcd-cafile is set so the API server verifies the etcd server certificate against a trusted certificate authority.

Risk Level

High

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. Log in to each control plane node
  2. Confirm the current ownership of the API server manifest file
  3. Change the file owner and group to root:root (if not already)
  4. (Optional) Reconfirm file permissions are appropriate (readable only by root and system processes)
  5. Repeat steps 1–4 on every control plane node in the cluster.
  6. Verification (on each control plane node)
kubectl cannot modify file ownership or other host-level settings for /etc/kubernetes/manifests/kube-apiserver.yaml on control plane nodes. This finding must be fixed directly on each control plane node’s filesystem; see the Manual Steps section for the exact commands to run over SSH.