The Kubernetes Kube Proxy kubeconfig must be owned by root.
Overview
Finding ID | Version | Rule ID | IA Controls | Severity |
V-242448 | CNTR-K8-003150 | SV-242448r961863_rule | Medium |
Description |
The Kubernetes Kube Proxy kubeconfig contain the argument and setting for the Control Planes. These settings contain network rules for restricting network communication between pods, clusters, and networks. If these files can be changed, data traversing between the Kubernetes Control Panel components would be compromised. Many of the security settings within the document are implemented through this file. |
STIG | Date |
Kubernetes Security Technical Implementation Guide | 2024-08-22 |
Details
Check Text (C-45723r712698_chk) |
Check if Kube-Proxy is running use the following command: ps -ef | grep kube-proxy If Kube-Proxy exists: Review the permissions of the Kubernetes Kube Proxy by using the command: stat -c %U:%G <location from --kubeconfig>| grep -v root:root If the command returns any non root:root file permissions, this is a finding. |
Fix Text (F-45681r712699_fix) |
Change the ownership of the Kube Proxy to root:root by executing the command: chown root:root <location from kubeconfig>. |