UCF STIG Viewer Logo

The Kubernetes kubelet configuration file must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242407 CNTR-K8-000890 SV-242407r712577_rule Medium
Description
The kubelet configuration file contains the runtime configuration of the kubelet service. If an attacker can gain access to this file, changes can be made to open vulnerabilities and bypass user authorizations inherit within Kubernetes with RBAC implemented.
STIG Date
Kubernetes Security Technical Implementation Guide 2021-04-14

Details

Check Text ( C-45682r712575_chk )
On the Master and worker nodes, change to the /etc/kubernetes/manifest directory. Run the command:

ls -l kubelet

Each kubelet configuration file must have permissions of "644" or more restrictive.

If any kubelet configuration file is less restrictive than "644", this is a finding.
Fix Text (F-45640r712576_fix)
On the Master node, change to the /etc/kubernetes/manifest directory. Run the command:

chmod 644 kubelet

To verify the change took place, run the command:

ls -l kubelet

The kubelet file should now have the permissions of "644".