Skip to content

bypass http basic auth for some ip addresses #5083

Answered by arkodg
vixns asked this question in Q&A
Discussion options

You must be logged in to vote

I dont think authorization will help here, because basicAuth would fail

you 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-detection
and you can split this up into 2 HTTPRoutes, and apply the SecurityPolicy with basic auth on 1 of them (which doesnt match the CIDR)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vixns
Comment options

Answer selected by vixns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants