0402-kubeproxy-conf-priv-proxy kubeconfig file permissions not set to 644 or higher
Rule ID
Category
Level
Compatible Versions
Description
- If you are using kube-proxy on a machine managed by systemd, verify that the proxy kubeconfig file permissions are correctly set to 644 or more restrictive.
Scan Frequency
Rationale
- The kube-proxy file contains sensitive parameters that may alter the behavior of the kube-proxy daemon. Therefore, no user other than root should be able to write to it to maintain file integrity.
Risk Item
Audit Method
- Execute the following command to verify the file permissions are set to "644" or more restrictive:
stat -c %a /var/lib/kube-proxy/config.conf
- Execute the following command:
#> chmod 644 /var/lib/kube-proxy/config.conf
This sets the file permissions to "644".
Impact
Default Value
- This file may not exist on the system. In that case, this recommendation does not apply. By default, if the file exists, the file permissions are correctly set to 644.
References
CIS Control