More Info:
Verifies that the Kubernetes PKI directory and its files are owned by root:root so only privileged users can access the cluster certificates and keys.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
On every control plane node, review current ownership of the PKI directory and its contents:
-
If any entry is not owned by root:root, correct the ownership of the entire PKI tree:
-
Re-check for any remaining non-root:root ownership (should return no output):
-
Verify compliance using the audit-style command:
Ensure the output contains only:
Using kubectl
Using kubectl
kubectl cannot change file ownership or permissions on the node filesystem, including
/etc/kubernetes/pki/. This finding must be remediated directly on every control plane node via host-level commands; see the Manual Steps section for how to fix and verify the ownership.Automation
Automation

