| name | cis-k8s-v1120-4.1.8 |
| description | Ensure that the client certificate authorities file ownership is set to root:root (Manual) |
| category | cis-k8s |
| version | 1.12.0 |
| author | cyberstrike-official |
| tags | ["cis","kubernetes","worker-nodes","worker-node-config","file-permissions"] |
| cis_id | 4.1.8 |
| cis_benchmark | CIS Kubernetes Benchmark v1.12.0 |
| tech_stack | ["kubernetes"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
CIS Kubernetes Benchmark v1.12.0 - Control 4.1.8
Description
Ensure that the certificate authorities file ownership is set to root:root.
Rationale
The certificate authorities file controls the authorities used to validate API requests. You should set its file ownership to maintain the integrity of the file. The file should be owned by root:root.
Impact
None
Audit Procedure
Step 1: Find the client-ca-file
Run the following command:
ps -ef | grep kubelet
Find the file specified by the --client-ca-file argument.
Step 2: Verify file ownership
Run the following command:
stat -c %U:%G <filename>
Verify that the ownership is set to root:root.
Remediation
Run the following command to modify the ownership of the --client-ca-file:
chown root:root <filename>
Default Value
By default no --client-ca-file is specified.
References
- https://kubernetes.io/docs/admin/authentication/#x509-client-certs
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. | | ● | ● |
| v7 | 4 Controlled Use of Administrative Privileges Controlled Use of Administrative Privileges | | | |
Profile Applicability
Assessment Status
Manual