Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
host-endpoint: deny traffic to private ips by default
this globalnetwork policy can be used to prevent egress from a host to private IPs. This policy targets hostendpoints, which in turn define which host interfaces are affected. As it affects flows passing through said host interfaces, it acts to restrict policy that targets workloads, rather than interfaces. Example: Namespaced networkpolicy permits egress traffic from container1 to container2 within the same namespace. As the destination is a known endpoint to calico, it is included in "selector: all()" in the allow block of this policy, and the Deny rule is not applied, despite traffic going to a private IP. However, traffic from said container1 OR from services on the host itself to a private IP not present in kubernetes, will be blocked by the second rule. WARNING: It's not clear what will happen in the case where a kubernetes endpoint exists that overlaps with a local IP address.
- Loading branch information