CNTR-R2-000130 The Kubernetes Kubelet must have the read-only port flag disabled.

Information

Kubelet serves a small REST API with read access to port 10255. The read-only port for Kubernetes provides no authentication or authorization security control. Providing unrestricted access on port 10255 exposes Kubernetes pods and containers to malicious attacks or compromise. Port 10255 is deprecated and should be disabled.

Close the read-only-port by setting the API server's read-only port flag to "0".

Solution

Edit the RKE2 Server configuration file on all RKE2 Server hosts, located at /etc/rancher/rke2/config.yaml, to contain the following:
kubelet-arg:
--read-only-port=0

If configuration files are updated on a host, restart the RKE2 Service. Run the command "systemctl restart rke2-server" for server hosts and "systemctl restart rke2-agent" for agent hosts.

See Also

https://workbench.cisecurity.org/benchmarks/0

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-3, CAT|I, CCI|CCI-000213, Rule-ID|SV-254559r960792_rule, STIG-ID|CNTR-R2-000130, Vuln-ID|V-254559

Plugin: Unix

Control ID: 18fc2218bf8f3fd9aece55f5dc71f475aa76be4634df3054056b2c6803f7bc7e