Skip to content
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

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

utix
Copy link
Contributor

@utix utix commented Jun 9, 2022

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

@hbagdi hbagdi changed the title feat(plugins): allow to set error code and error message feat(rate-limting) allow to set error code and error message Oct 24, 2022
@hbagdi hbagdi requested a review from bungle October 24, 2022 23:30
@utix utix force-pushed the plugins/rate-limiting/errorConfig branch from 8d12693 to 881317b Compare October 25, 2022 08:25
@pull-request-size pull-request-size bot added size/M and removed size/S labels Oct 25, 2022
@utix utix force-pushed the plugins/rate-limiting/errorConfig branch from 881317b to 9c25da5 Compare October 25, 2022 11:27
@utix
Copy link
Contributor Author

utix commented Oct 25, 2022

I have added a dedicated test as asked, and rebase on master

Copy link
Contributor

@flrgh flrgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 woot, thanks @utix

@hbagdi
Copy link
Member

hbagdi commented Oct 26, 2022

@flrgh Good to hit the merge button?

@flrgh flrgh merged commit 9bc3c73 into Kong:master Oct 26, 2022
@StarlightIbuki
Copy link
Contributor

Should we add a change log for this?

@utix
Copy link
Contributor Author

utix commented Oct 27, 2022

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

dndx pushed a commit that referenced this pull request Oct 28, 2022
@StarlightIbuki
Copy link
Contributor

StarlightIbuki commented Oct 28, 2022

This PR misses adding the field to removed_fields.lua.
Here: #9632

StarlightIbuki added a commit that referenced this pull request Oct 28, 2022
We should remove newly added config fields for older DP.
flrgh added a commit that referenced this pull request Oct 28, 2022
fffonion pushed a commit that referenced this pull request Nov 3, 2022
We should remove newly added config fields for older DP.
fffonion pushed a commit that referenced this pull request Nov 3, 2022
…9632)

We should remove newly added config fields for older DP (compat support for #8930).

Co-authored-by: Qi <add_sp@outlook.com>
oowl pushed a commit that referenced this pull request Aug 15, 2024
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants