UCF STIG Viewer Logo

The Kubernetes component manifests must be owned by root.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242444 CNTR-K8-003110 SV-242444r712688_rule Medium
Description
The Kubernetes manifests are those files that contain the arguments and settings for the Master Node services. These services are etcd, the api server, controller, proxy, and scheduler. If these files can be changed, the scheduler will be implementing the changes immediately. Many of the security settings within the document are implemented through these manifests.
STIG Date
Kubernetes Security Technical Implementation Guide 2021-04-14

Details

Check Text ( C-45719r712686_chk )
Review the ownership of the Kubernetes manifests files by using the command:

stat -c %U:%G /etc/kubernetes/manifests/* | grep -v root:root

If the command returns any non root:root file permissions, this is a finding.
Fix Text (F-45677r712687_fix)
Change the ownership of the manifest files to root: root by executing the command:

chown root:root /etc/kubernetes/manifests/*