UCF STIG Viewer Logo

The Kubernetes API Server must have file permissions set to 644 or more restrictive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242458 CNTR-K8-003250 SV-242458r712730_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-45733r712728_chk )
Review the permissions of the Kubernetes Kubelet by using the command:

stat -c %a /etc/kubernetes/manifests/*

If any of the files are have permissions more permissive than "644", this is a finding.
Fix Text (F-45691r712729_fix)
Change the permissions of the manifest files to "root: root" by executing the command:

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