-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(rate-limting) allow to set error code and error message #8930
Conversation
8d12693
to
881317b
Compare
881317b
to
9c25da5
Compare
I have added a dedicated test as asked, and rebase on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 woot, thanks @utix
@flrgh Good to hit the merge button? |
Should we add a change log for this? |
I think so, people are looking for this, at least one people asked for it on stackoverflow |
This PR misses adding the field to removed_fields.lua. |
We should remove newly added config fields for older DP.
We should remove newly added config fields for older DP.
…stom_id field description (#8930) * chore(docs): reword consumers username and custom_id field description (cherry picked from commit fd27e2e) * Update kong/db/schema/entities/consumers.lua Co-authored-by: Hisham Muhammad <hisham@gobolinux.org> (cherry picked from commit 92c185e) --------- Co-authored-by: Patryk Małek <patryk.malek@konghq.com> Co-authored-by: Patryk Małek <malekpatryk+github@gmail.com>
Summary
Error code and error message are hardcoded for rate-limiting plugin.
This allow to set them via configuration
Issue reference
https://stackoverflow.com/questions/72557894/how-can-i-replace-kong-error-to-a-custom-text