UCF STIG Viewer Logo

The Kubernetes PKI CRT must have file permissions set to 644 or more restrictive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-242466 CNTR-K8-003330 SV-242466r712754_rule Medium
Description
The Kubernetes PKI directory contains all certificates (.crt files) supporting secure network communications in the Kubernetes Control Plane. If these files can be modified, data traversing within the architecture components would become unsecure and compromised.
STIG Date
Kubernetes Security Technical Implementation Guide 2022-12-02

Details

Check Text ( C-45741r712752_chk )
Review the permissions of the Kubernetes PKI cert files by using the command:

find /etc/kubernetes/pki -name "*.crt" | xargs stat -c '%n %a'

If any of the files are have permissions more permissive than "644", this is a finding.
Fix Text (F-45699r712753_fix)
Change the ownership of the cert files to "644" by executing the command:

chmod -R 644 /etc/kubernetes/pki/*.crt