More Info:
Verifies that the controller-manager.conf kubeconfig file has permissions of 600 or more restrictive to protect the controller managers client credentials.Risk Level
MediumAddress
SecurityCompliance Standards
- CIS Kubernetes
Triage and Remediation
- Remediation
Remediation
Manual Steps
Manual Steps
-
Check current permissions (run on every control plane node):
-
Set restrictive permissions (600) (run on every control plane node):
-
Set secure ownership (root:root) if needed (run on every control plane node):
-
Verify final permissions (run on every control plane node):
Confirm that
permissions=600andowner=root group=root.
Using kubectl
Using kubectl
kubectl cannot modify file permissions on control plane nodes, so it cannot be used to fix
/etc/kubernetes/controller-manager.conf. Apply the remediation directly on every control plane node’s host OS as described in the Manual Steps section.Automation
Automation

