4.2.15 Ensure that the --IPAddressDeny is set to any

Information

Ensuring that --IPAddressDeny is set to 'Any' will facilitate allowlisting of only IP addresses that are explicitly set with the --IPAddressAllow parameter which will block unspecified IP addresses from communicating with the kubelet component.

By default, Kubernetes allows any IP address to communicate with the kubelet component IP restrictions and IP whitelisting are security best practices and reduce the attack surface of the kubelet .

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

IPAddressDeny=any

IPAddressAllow={{ kubelet_secure_addresses }}

*Note kubelet_secure_addresses: "localhost link-local {{ kube_pods_subnets | regex_replace(',', ' ') }} {{ kube_node_addresses }} {{ loadbalancer_apiserver.address | default('')"

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT, SYSTEM AND INFORMATION INTEGRITY

References: 800-53|CM-7, 800-53|CM-7(1), 800-53|CM-7(5), 800-53|CM-10, 800-53|SI-7, 800-53|SI-7(1), CSCv7|2.7, CSCv7|2.9

Plugin: Unix

Control ID: 9214f74e40ac8849dd1486acc7cef7c92f518815c1d21124ae438928cac209d1