UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

The Kubernetes kubeadm.conf must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242454 CNTR-K8-003210 SV-242454r879887_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 2023-02-27

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