4117-k8s-edct-conf-priv-etcd Configuration File Permissions Not Set to 644 or Higher
Rule ID
Category
Level
Compatible Versions
Description
- If you are using etcd with Kubernetes on a computer managed by systemd, verify that the permissions for the kubernetes.service file are correctly set to 644 or more restrictive.
Scan Frequency
Theoretical Basis
- The kubernetes.etcd file contains sensitive parameters that can alter the behavior of the Kubernetes daemon. Therefore, no user other than root should have write access to maintain the integrity of the file.
Risk Items
Audit Method
- Execute the following command to verify if the file permissions are set to "644" or more restrictive:
stat -c %a /etc/kubernetes/manifests/etcd.yaml
- Execute the following commands to modify the permissions of the three configuration files:
#> chmod 644 /etc/kubernetes/manifests/etcd.yaml
This sets the file permissions to "644".
Impact
Default Value
- By default, the permission for etcd.yaml is 640
References
CIS Controls