-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
gateway api: fix rewrite #54939
base: master
Are you sure you want to change the base?
gateway api: fix rewrite #54939
Conversation
Skipping CI for Draft Pull Request. |
abf4a6b
to
854b081
Compare
rewrite.Uri = strings.TrimSuffix(*filter.Path.ReplacePrefixMatch, "/") | ||
if rewrite.Uri == "" { | ||
// `/` means removing the prefix | ||
rewrite.Uri = "/" | ||
} else if prefixMatchAll { | ||
rewrite.UriRegexRewrite = &istio.RegexRewrite{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we're using regex matching over standard matching to get around envoy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep. I don't love it -- we can see about getting afix into envoy itself
fixes #54920
Please provide a description of this PR: