Istio can be configured to forbid the routing of addresses unknown to the mesh. Normally, if an application attempts to open a connection to an address that is unknown to the mesh, Istio would use DNS to resolve the address and execute the request. With the global.outboundTrafficPolicy mode option set to REGISTRY_ONLY, we can configure Istio to only allow connections to known addresses (that is, addresses for which a ServiceEntry is defined)
You can set outboundTrafficPolicy
in OpenShift ServiceMesh by adding the following to ServiceMeshControlPlane
:
spec:
....
proxy:
networking:
trafficControl: