-
Notifications
You must be signed in to change notification settings - Fork 352
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
Ratelimiting doesn't work with both clientSelectors (i.e. headers and sourceCIDR) enabled #4351
Comments
Looks weird, can you share the output of |
@shawnh2 Sure, here's the output:
I think there is a bug in this method: gateway/internal/xds/translator/ratelimit.go Line 329 in cbd92e2
It does not consider the case where both the clientSelectors are present. I made this change to make it work for the time being:
|
Thanks for reporting this, it is indeed a bug. Though we have created RL actions for both Headers & CIDR correctly, gateway/internal/xds/translator/ratelimit.go Line 142 in cbd92e2
but doing wrong when building RL Descriptors. |
Description:
Repro steps:
Environment:
Logs:
These are the
envoy-ratelimit
logs, note this linedescriptor does not match any limit, no limits applied
.I do see that the config is reflected in xds-ir (in gateway logs):
Thanks !
The text was updated successfully, but these errors were encountered: