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

fix(admin): fix potentially truncate arguments #9510

Merged
merged 3 commits into from
Oct 11, 2022

Conversation

vm-001
Copy link
Contributor

@vm-001 vm-001 commented Oct 9, 2022

Summary

Admin API will quietly truncate the request post arguments if reach the limit(100), which might cause data inconsistency issues.

Full changelog

  1. Increase max_uri_args and max_post_args to 1000
  2. Return 400 while reach the maximum argument number

Issue reference

FTI-4407

1. increase max_uri_args and max_post_args to 1000
2. return 400 while reach the maximum argument number
@vm-001 vm-001 marked this pull request as ready for review October 9, 2022 06:33
@vm-001 vm-001 requested a review from a team as a code owner October 9, 2022 06:33
kong/api/arguments.lua Outdated Show resolved Hide resolved
kong/api/arguments.lua Outdated Show resolved Hide resolved
kong/api/arguments.lua Outdated Show resolved Hide resolved
@fffonion fffonion merged commit b07f437 into master Oct 11, 2022
@fffonion fffonion deleted the fix/truncated-arguments branch October 11, 2022 07:30
@chronolaw
Copy link
Contributor

Should we add an entry in changelog?

@fffonion
Copy link
Contributor

Yes, right thanks for reminding @chronolaw !
@vm-001 Could you create another PR to add changelog?

vm-001 added a commit that referenced this pull request Oct 11, 2022
vm-001 added a commit that referenced this pull request Oct 11, 2022
fffonion pushed a commit that referenced this pull request Oct 11, 2022
vm-001 added a commit that referenced this pull request Oct 11, 2022
Admin API will quietly truncate the request post arguments if reach the limit(100), which might cause data inconsistency issues.

FTI-4417
fffonion pushed a commit that referenced this pull request Oct 12, 2022
Admin API will quietly truncate the request post arguments if reach the limit(100), which might cause data inconsistency issues.

This is a backport of #9510 to the 2.8 release branch.

FTI-4417
oowl pushed a commit to oowl/kong that referenced this pull request Oct 12, 2022
Admin API will quietly truncate the request post arguments if reach the limit(100), which might cause data inconsistency issues.

FTI-4417
oowl pushed a commit to oowl/kong that referenced this pull request Oct 12, 2022
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.

4 participants