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 Policy does not work as expected #2546
Comments
I am able to reproduce this behavior. The buckets key is created like this: Lines 54 to 89 in 46ab5e7
@msavy Maybe this is for historic reasons but some conditions look wrong to me. This only affects private APIs, its working as expected for public APIs |
I will try to roll it into work I'm doing for a future release.
Thanks
|
Apiman Version
ALL
Apiman Manager Distro
WildFly
Apiman Gateway Distro
WildFly
Java Version
ALL
Operating System
Ubuntu
Are you running Apiman in a container, or on an orchestration platform?
Docker / Podman
Describe the bug
Hi,
https://www.apiman.io/apiman-docs/user-guide/latest/gateway/policies/rate-limiting-policy.html
Rate Limiting Policy does not work as expected when filtering by API,
The counter is not global for the API,
There is a specific counter create for each couple of Client/API declared,
We cannot protect an API Endpoint whatever the client the request comes from
Expected behaviour
If the Rate Limiting Policy sets 10 Request / API / Hour
I expect only 10 Request per Hour to the backend whatever the number of clients contracting this api
Actual behaviour
If the Rate Limiting Policy sets 10 Request / API / Hour
each client contracting this api can make 10 request per hour
How to Reproduce
Relevant log output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: