| name | cis-k8s-v1120-1.1.18 |
| description | Ensure that the controller-manager.conf file ownership is set to root:root (Automated) |
| category | cis-k8s |
| version | 1.12.0 |
| author | cyberstrike-official |
| tags | ["cis","kubernetes","control-plane","config-files","controller-manager","kubeconfig","ownership","level1"] |
| cis_id | 1.1.18 |
| cis_benchmark | CIS Kubernetes Benchmark v1.12.0 |
| tech_stack | ["kubernetes"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
1.1.18 Ensure that the controller-manager.conf file ownership is set to root:root (Automated)
Profile Applicability
Description
Ensure that the controller-manager.conf file ownership is set to root:root.
Rationale
The controller-manager.conf file is the kubeconfig file for the Controller Manager. 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/controller-manager.conf
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/controller-manager.conf
Default Value
By default, controller-manager.conf file ownership is set to root:root.
References
- https://kubernetes.io/docs/admin/kube-controller-manager/
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|
| v8 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts | * | * | * |
| v7 | 4 Controlled Use of Administrative Privileges | | | |