Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

howardjohn
Copy link
Member

@howardjohn howardjohn commented Jan 31, 2025

fixes #54920

Please provide a description of this PR:

@istio-testing
Copy link
Collaborator

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@istio-testing istio-testing added do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jan 31, 2025
@howardjohn howardjohn force-pushed the gtw/prefix-match-fix branch from abf4a6b to 854b081 Compare January 31, 2025 19:58
rewrite.Uri = strings.TrimSuffix(*filter.Path.ReplacePrefixMatch, "/")
if rewrite.Uri == "" {
// `/` means removing the prefix
rewrite.Uri = "/"
} else if prefixMatchAll {
rewrite.UriRegexRewrite = &istio.RegexRewrite{
Copy link
Contributor

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?

Copy link
Member Author

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

@howardjohn
Copy link
Member Author

@istio-policy-bot
Copy link

🧭 This issue or pull request has been automatically marked as stale because it has not had activity from an Istio team member since 2025-02-10. It will be closed on 2025-03-27 unless an Istio team member takes action. Please see this wiki page for more information. Thank you for your contributions.

Created by the issue and PR lifecycle manager.

@istio-policy-bot istio-policy-bot added the lifecycle/stale Indicates a PR or issue hasn't been manipulated by an Istio team member for a while label Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Block merging of a PR because it isn't ready yet. lifecycle/stale Indicates a PR or issue hasn't been manipulated by an Istio team member for a while size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTPRoute: unable to add path prefix via URLRewrite
4 participants