CNTR-R2-000140 The Kubernetes API server must have the insecure bind address not set.

Information

By default, the API server will listen on two ports and addresses. One address is the secure address and the other address is called the "insecure bind" address and is set by default to localhost. Any requests to this address bypass authentication and authorization checks. If this insecure bind address is set to localhost, anyone who gains access to the host on which the master is running can bypass all authorization and authentication mechanisms put in place and have full control over the entire cluster.

Close or set the insecure bind address by setting the API server's --insecure-bind-address flag to an IP or leave it unset and ensure that the --insecure-bind-port is not set.

Solution

If running rke2 Kubernetes version > 1.20, this requirement is NA.

Upgrade to a supported version of RKE2 Kubernetes.

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-254560r960792_rule, STIG-ID|CNTR-R2-000140, Vuln-ID|V-254560

Plugin: Unix

Control ID: 24738f1801b36147292608c06aeb04f6238fe73fa463093277a310361a6b7f0e