The Kubernetes kubelet config must be owned by root.
An XCCDF Rule
Description
<VulnDiscussion>The Kubernetes kubelet agent registers nodes with the API Server and performs health checks to containers within pods. If this file can be modified, the information system would be unaware of pod or container degradation.</VulnDiscussion><FalsePositives></FalsePositives><FalseNegatives></FalseNegatives><Documentable>false</Documentable><Mitigations></Mitigations><SeverityOverrideGuidance></SeverityOverrideGuidance><PotentialImpacts></PotentialImpacts><ThirdPartyTools></ThirdPartyTools><MitigationControl></MitigationControl><Responsibility></Responsibility><IAControls></IAControls>
- ID
- SV-242457r879887_rule
- Severity
- Medium
- References
- Updated
Remediation - Manual Procedure
Change the ownership of the kubelet config to "root: root" by executing the command:
chown root:root /var/lib/kubelet/config.yaml