Open Service Mesh (OSM) is a lightweight, extensible, cloud native service mesh that allows users to uniformly manage, secure, and get out-of-the-box observability features for highly dynamic microservice environments.
Bug description: The "ipAddresses" field in the Egress policy is not being honored, and it is permitting TCP connections for all IP addresses, regardless of the configuration specified in the Egress policy below.
Affected area (please mark with X where applicable):
Install [ ]
SMI Traffic Access Policy [ ]
SMI Traffic Specs Policy [ ]
SMI Traffic Split Policy [ ]
Permissive Traffic Policy [ ]
Ingress [ ]
Egress [X]
Envoy Control Plane [ ]
CLI Tool [ ]
Metrics [ ]
Certificate Management [ ]
Sidecar Injection [ ]
Logging [ ]
Debugging [ ]
Tests [ ]
Demo [ ]
CI System [ ]
Expected behavior:
You can reproduce the issue by following the below steps, and the expectation is that the "telnet portquiz.net 1433" should fail to connect as it's resolving ip isn't part of the ipAddresses list of the Egress policy.
Steps to reproduce the bug (as precisely as possible):
Make sure the enableEgressPolicy: true and enableEgress: false in the mesh config.
Run a pod in AKS cluster which has telnet installed on it (Ensure the osm envoy is injected onto the pod as a side container)
Assign the Egress policy to the pod. Make sure to replace ipAddress (in my case I've used an ipAddress of my database server) and service account name that is assigned to a pod.
Get into the shell of running container by executing "kubectl exec -it my-pod --container main-app -- sh"
Execute "telnet portquiz.net 1433" from the shell, and the expectation is that the connection should fail. But in our case the connection is successful.
How was OSM installed?: via AKS add-on
Anything else we need to know?: NA
Bug report archive:
Environment:
OSM version (use osm version): v1.2.3
Kubernetes version (use kubectl version): v1.25.6
Size of cluster (number of worker nodes in the cluster): 2
Bug description: The "ipAddresses" field in the Egress policy is not being honored, and it is permitting TCP connections for all IP addresses, regardless of the configuration specified in the Egress policy below.
Affected area (please mark with X where applicable):
Expected behavior: You can reproduce the issue by following the below steps, and the expectation is that the "telnet portquiz.net 1433" should fail to connect as it's resolving ip isn't part of the ipAddresses list of the Egress policy.
Steps to reproduce the bug (as precisely as possible):
How was OSM installed?: via AKS add-on
Anything else we need to know?: NA
Bug report archive:
Environment:
osm version
): v1.2.3kubectl version
): v1.25.6