Hi! I am trying to set up IP whitelisting per-service, so that certain services will accept traffic only from client IPs on a whitelist. I followed these instructions:
but this only matches against the source.ip, which I believe is that of the ingressgateway and not the client.
I also set pilot.env.PILOT_SIDECAR_USE_REMOTE_ADDRESS=true on my helm install, but I don’t know:
There is origin.ip that should be the IP of the client at the ingress.
You may be able to use request.headers[“x-forwarded-for”], but you may need prefix/suffix string matching, since it’s a potentially a long list of IPs.