Skip to content

feat(aws-lambda): add configurable max URI args limit#14855

Open
tywallis wants to merge 1 commit intoKong:masterfrom
tywallis:feat/max_uri_args-config-options
Open

feat(aws-lambda): add configurable max URI args limit#14855
tywallis wants to merge 1 commit intoKong:masterfrom
tywallis:feat/max_uri_args-config-options

Conversation

@tywallis
Copy link
Copy Markdown

@tywallis tywallis commented Apr 14, 2026

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 exceeds max_uri_args, instead of forwarding truncated parameters to Lambda.

Both options default to preserving existing behavior.

Checklist

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Apr 14, 2026

CLA assistant check
All committers have signed the CLA.

@tywallis tywallis force-pushed the feat/max_uri_args-config-options branch from 5f2e680 to 66cb2f0 Compare April 14, 2026 22:40
@tywallis tywallis force-pushed the feat/max_uri_args-config-options branch from 71bb904 to a4b1e2f Compare April 15, 2026 01:33
@tywallis
Copy link
Copy Markdown
Author

I have completed all tasks. This PR is ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants