UCF STIG Viewer Logo

The Kubernetes kubeadm.conf must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242454 CNTR-K8-003210 SV-242454r754819_rule Medium
Description
The Kubernetes kubeeadm.conf contains sensitive information regarding the cluster nodes configuration. If this file can be modified, the Kubernetes Platform Plane would be degraded or compromised for malicious intent. Many of the security settings within the document are implemented through this file.
STIG Date
Kubernetes Security Technical Implementation Guide 2022-09-13

Details

Check Text ( C-45729r754817_chk )
Review the Kubeadm.conf file :

Get the path for Kubeadm.conf by running:
sytstemctl status kubelet

Note the configuration file installed by the kubeadm is written to
(Default Location: /etc/systemd/system/kubelet.service.d/10-kubeadm.conf)
stat -c %U:%G | grep -v root:root

If the command returns any non root:root file permissions, this is a finding.
Fix Text (F-45687r754818_fix)
Change the ownership of the kubeadm.conf to root: root by executing the command:

chown root:root