Skip to main content

More Info:

Verifies that the etcd pod manifest file is owned by root:root so only privileged users can modify the datastore configuration.

Risk Level

Medium

Address

Security

Compliance Standards

  • CIS Kubernetes

Triage and Remediation

Remediation

Manual Steps

  1. On every control plane node, confirm the etcd manifest file exists and see its current ownership:
  2. On every control plane node, set the file owner and group to root:root:
  3. (Optional) Re-list the file to visually confirm ownership:
  4. On every control plane node, verify the fix using the audit-style command:
    The output must be:
kubectl cannot modify file ownership on the host filesystem where the etcd static pod manifest (/etc/kubernetes/manifests/etcd.yaml) resides. This finding must be remediated directly on every control plane node’s OS; see the Manual Steps section for the required commands and procedure.