We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Title: Global Rate Limit - safeRegexMatch does not match with Path
Description:
safeRegexMatch does not match when query parameter is existing in the path.
Repro steps:
- properties: global: rate: - dimensions: - headerValueMatch: descriptorValue: test headers: - name: :path safeRegexMatch: regex: /test/([^/]+)/test - requestHeaders: descriptorKey: user-check headerName: x-userid requestPerUnit: 1 unit: minute type: ratelimit
I sent request with
curl http://test.service/test/123/test -H "x-userid: 1" it is matching. curl "http://test.service/test/123/test?a=1" -H "x-userid: 1" does not match.
curl http://test.service/test/123/test -H "x-userid: 1"
curl "http://test.service/test/123/test?a=1" -H "x-userid: 1"
I think safeRegexMatch should match both of them because when I try on regex101 etc it was matched.
The text was updated successfully, but these errors were encountered:
Thanks for raising this. I think that no-partial matching in regex is by design (see
envoy/api/envoy/type/matcher/v3/regex.proto
Lines 64 to 66 in cd9d58c
Sorry, something went wrong.
Thank you for response but i did not understand then why it is not matched when query parameter is exists
No branches or pull requests
Title: Global Rate Limit - safeRegexMatch does not match with Path
Description:
safeRegexMatch does not match when query parameter is existing in the path.
Repro steps:
I sent request with
curl http://test.service/test/123/test -H "x-userid: 1"
it is matching.curl "http://test.service/test/123/test?a=1" -H "x-userid: 1"
does not match.I think safeRegexMatch should match both of them because when I try on regex101 etc it was matched.
The text was updated successfully, but these errors were encountered: