feat(aws-lambda): add configurable max URI args limit#14855
Open
tywallis wants to merge 1 commit intoKong:masterfrom
Open
feat(aws-lambda): add configurable max URI args limit#14855tywallis wants to merge 1 commit intoKong:masterfrom
tywallis wants to merge 1 commit intoKong:masterfrom
Conversation
5f2e680 to
66cb2f0
Compare
71bb904 to
a4b1e2f
Compare
Author
|
I have completed all tasks. This PR is ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The AWS Lambda plugin uses
ngx.req.get_uri_args()which defaults to a maximum of 100 query string parameters. When a request exceeds this limit, parameters are silently truncated. The Lambda function receives incomplete data with no indication anything was dropped.This adds two new config options:
max_uri_args(integer, default: 100): Override the nginx default limit for query string parameters parsed from the request URI.reject_if_max_uri_args_exceeded(boolean, default: false): Return a 414 URI Too Long response when the parameter count exceedsmax_uri_args, instead of forwarding truncated parameters to Lambda.Both options default to preserving existing behavior.
Checklist
changelog/unreleased/kongorskip-changeloglabel added on PR if changelog is unnecessary. README.md