-
Hi, on a HTTPRoute, I would like to allow some ip addresses to bypass basic authentication. Is it possible to combine basicAuth and Authorization on a single SecurityPolicy ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I dont think you could do some IP based routing based on some prefix/regex match on |
Beta Was this translation helpful? Give feedback.
I dont think
authorization
will help here, because basicAuth would failyou could do some IP based routing based on some prefix/regex match on
X-Envoy-External-Address
which should contain the remote addr https://gateway.envoyproxy.io/docs/tasks/traffic/client-traffic-policy/#configure-client-ip-detectionand you can split this up into 2 HTTPRoutes, and apply the SecurityPolicy with basic auth on 1 of them (which doesnt match the CIDR)