| name | cis-k8s-v200-1.1.8 |
| description | Ensure that the etcd pod specification file ownership is set to root:root (Automated) |
| category | cis-k8s |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","kubernetes","control-plane","config-files","file-ownership","etcd"] |
| cis_id | 1.1.8 |
| cis_benchmark | CIS Kubernetes Benchmark v2.0.0 |
| tech_stack | ["kubernetes"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
1.1.8 Ensure that the etcd pod specification file ownership is set to root:root (Automated)
Profile Applicability
Description
Ensure that the /etc/kubernetes/manifests/etcd.yaml file ownership is set to root:root.
Rationale
The etcd pod specification file /etc/kubernetes/manifests/etcd.yaml controls various parameters that set the behavior of the etcd service in the master node. etcd is a highly-available key-value store which Kubernetes uses for persistent storage of all of its REST API object. You should set its file ownership to maintain the integrity of the file. The file should be owned by root:root.
Impact
None
Audit
Run the below command (based on the file location on your system) on the Control Plane node. For example,
stat -c %U:%G /etc/kubernetes/manifests/etcd.yaml
Verify that the ownership is set to root:root.
Remediation
Run the below command (based on the file location on your system) on the Control Plane node. For example,
chown root:root /etc/kubernetes/manifests/etcd.yaml
Default Value
By default, /etc/kubernetes/manifests/etcd.yaml file ownership is set to root:root.
References
- https://coreos.com/etcd
- https://kubernetes.io/docs/admin/etcd/
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|
| v8 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts - Restrict administrator privileges to dedicated administrator accounts on enterprise assets. Conduct general computing activities, such as internet browsing, email, and productivity suite use, from the user's primary, non-privileged account. | * | * | * |
| v7 | 4 Controlled Use of Administrative Privileges - Controlled Use of Administrative Privileges | | | |