-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support RegularExpression as a HTTPRoute HeaderMatchType #5370
Comments
pretty sure this is supported gateway/internal/xds/translator/route.go Line 153 in c4bc5b2
can you try name: ":authority" https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/route/v3/route_components.proto
|
if the API doesnt support http2 header (that start with |
Thanks so much for both those links! You're right, it does seem like it is supported and totally doable! I'll try it out later and report back. I think the early header modification would make sense. You seem very knowledgeable - could you maybe point me in some direction where I can get a deeper understanding of Envoy? 😄 I have a discussion going on over at the Gateway API SIG. Do you think it would make sense to solve my fundamental problem (allowing wildcard suffix in hostname, such as |
there are some free courses in Envoy here https://www.envoyproxy.io/training looks like you're an expert navigator of Github :) envoyproxy/envoy#38607 is a well written issue, hope it get accepted, good luck ! |
Description:
The HTTPRoute resource allows for defining two HeaderMatchType: Exact (Core) and RegularExpression (Implementation specific).
Envoy Gateway only supports the Exact match type, and it would be really nice to have regex support.
I want to use it to make routing decisions based on a partial header match - like so:
This would be really useful, as spec.hostnames only supports doing a full FQDN match, or a wildcard subdomain. I want to match like "grafana.*" so I can better repurpose my HTTPRoutes for a general setup, without having to use complex variable substitution and whatnot.
I believe it should be somewhat trivial to implement as it is already a feature in Envoy
The text was updated successfully, but these errors were encountered: