emissary-ingress / emissary

open source Kubernetes-native API gateway for microservices built on the Envoy Proxy
https://www.getambassador.io
Apache License 2.0
4.32k stars 683 forks source link

Is there a way for header routing to test for withoutHeader #5690

Open sourceful-karlson opened 1 month ago

sourceful-karlson commented 1 month ago

Please describe your use case / problem. I would like to have a mapping where the header routing would test for without header

something like in istio withoutHeader: preview: "*"

Describe the solution you'd like A clear and concise description of what you want to happen.

This will allow me to define route that is opposite behaviour to my route.

i.e

if i have a preview application where it is done by header based routing like preview: pr-number, i would like to my main route to not route if that header is present i.e dont route if there is a header with key preview

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

I think the existing implementation would still work, however my suggestion would make it more explicit

Additional context Add any other context about the feature request here.

cindymullins-dw commented 4 weeks ago

HI @sourceful-karlson , thanks for the suggestion. I've marked this as a feature request. Since you're a customer, it'd be helpful if you could also create a ticket for this enhancement, which will help us track it for the licensed version (Edge Stack) as well.

sourceful-karlson commented 2 weeks ago

just wondering, is there a way to do it right now? or this behavior is not available?