4132-k8s-apiserver-anonymous - Disable Anonymous Requests to API Server¶
Rule ID¶
- 4132-k8s-apiserver-anonymous
Category¶
- Container
Level¶
- Info
Compatible Versions¶
- Linux
Description¶
- Disable anonymous requests to the API server
Scan Frequency¶
- 0 */30 * * *
Theoretical Basis¶
- The API server should rely on authentication. If you are using RBAC authorization, it is generally considered reasonable to allow anonymous access to the API server for health checks and discovery purposes, but you should also consider the risks that anonymous access poses to the service
Risk Items¶
- Container Security
Audit Method¶
- Execute the following command to verify:
Remediation¶
- The kubelet version must not be lower than v1.16.0 Execute the following command: Set or add the parameter --anonymous-auth=false
Impact¶
- You must reconfigure kernel parameters to match kubelet parameters
Default Value¶
- By default, anonymous access is enabled
References¶
CIS Controls¶
- None