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
Rate Limiting by consumer id not working #7168
Comments
@eseite47, do you have authentication plugin like |
@bungle I have
|
Hi @eseite47, Welcome to the Kong community! I am not able to reproduce the issue. This is what I have tried (note I'm using httpie):
Now, issue requests with both consumers and see that the route limit applies (observe the rate-limit headers):
Now, observe the new limit (50) applies for that consumer:
Please check this out and let us know if it's consistent with your setup. |
Thanks for the help and helping me debug! |
Summary
I have two rate limiting plugins set up on a route: one for all consumers, and one for a specific consumer id.
I would expect the more specific plugin to apply when calling the route (per #6553) but no matter what i try, only the rate limiting apply to all consumers apply.
Steps To Reproduce
When calling "my-route" with the API keys associated with the 4c7 consumer, I would expect my rate to get limited after 10 calls per minute, as defined above. Instead, I hit the rate limit after 20 request per minute, which is the limit for all consumers. When I disable the rate limit for all consumers, I do not get rate limited at all.
What is the issue? How can I fix the configuration to reflect the rate limiting desired?
Thanks in advance for the help!
Additional Details & Logs
I can provide more details if it becomes relevant
The text was updated successfully, but these errors were encountered: