-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
4.14.z, 4.15.z, 4.17, 4.16.z
-
None
-
False
-
Description of problem:
The .spec.networking.apiServer.allowedCIDRBlocks field in a HostedCluster allows specifying which CIDR blocks are allowed to access the API server. Currently this only works on Public AWS clusters. PublicAndPrivate and Private clusters do not honor this setting.
Version-Release number of selected component (if applicable):
4.17
How reproducible:
Always
Steps to Reproduce:
1. Create an AWS HostedCluster with PublicAndPrivate access and specify the allowedCIDRBlocks field. 2. Wait for the cluster to come up. 3.
Actual results:
I can access the cluster from a non-allowed IP
Expected results:
I cannot access the cluster from a non-allowed IP
Additional info:
Currently only when the KAS is exposed via its own LoadBalancer is the load balancer configured with allowed CIDR blocks. In the case of PublicAndPrivate and Private clusters, the external LoadBalancer is the router loadbalancer which is not configured with allowed CIDR blocks.