| name | cis-k8s-v1111-1.1.19 |
| description | Ensure that the Kubernetes PKI directory and file ownership is set to root:root (Automated) |
| category | cis-k8s |
| version | 1.11.1 |
| author | cyberstrike-official |
| tags | ["cis","kubernetes","control-plane","configuration-files","ownership","pki","certificates"] |
| cis_id | 1.1.19 |
| cis_benchmark | CIS Kubernetes Benchmark v1.11.1 |
| tech_stack | ["kubernetes"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
CIS Kubernetes Benchmark v1.11.1 - Control 1.1.19
Profile Applicability
Description
Ensure that the Kubernetes PKI directory and file ownership is set to root:root.
Rationale
Kubernetes makes use of a number of certificates as part of its operation. You should set the ownership of the directory containing the PKI information and all files in that directory to maintain their integrity. The directory and files 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,
ls -laR /etc/kubernetes/pki/
Verify that the ownership of all files and directories in this hierarchy 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 -R root:root /etc/kubernetes/pki/
Default Value
By default, the /etc/kubernetes/pki/ directory and all of the files and directories contained within it, are set to be owned by the root user.
References
- https://kubernetes.io/docs/admin/kube-apiserver/
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|
| v8 | 3.3 Configure Data Access Control Lists Configure data access control lists based on a user's need to know. Apply data access control lists, also known as access permissions, to local and remote file systems, databases, and applications. | ● | ● | ● |
| v7 | 14.6 Protect Information through Access Control Lists Protect all information stored on systems with file system, network share, claims, application, or database specific access control lists. These controls will enforce the principle that only authorized individuals should have access to the information based on their need to access the information as a part of their responsibilities. | ● | ● | ● |