[Bugfix] Remove X-Request-Id format restrictions and make size configurable - #21048
Conversation
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 16c1fae.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
PR Reviewer Guide 🔍(Review updated until commit a06d346)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to a06d346 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit c6abb99
Suggestions up to commit 16c1fae
Suggestions up to commit 16c1fae
Suggestions up to commit 85e4753
Suggestions up to commit cdc7a69
|
|
Persistent review updated to latest commit cdc7a69 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #21048 +/- ##
============================================
- Coverage 73.26% 73.23% -0.04%
- Complexity 72743 72766 +23
============================================
Files 5862 5871 +9
Lines 332558 332670 +112
Branches 48010 48012 +2
============================================
- Hits 243643 243621 -22
- Misses 69343 69522 +179
+ Partials 19572 19527 -45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Code analyzer gives the following concern. Gave this a quick test and it seems netty rejects these headers as invalid so we do not need to handle them ourselves. |
|
@sgup432 can you take a look when you have a chance? |
|
Persistent review updated to latest commit 85e4753 |
85e4753 to
16c1fae
Compare
|
Persistent review updated to latest commit 16c1fae |
|
❌ Gradle check result for 16c1fae: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Persistent review updated to latest commit 16c1fae |
|
❌ Gradle check result for 16c1fae: Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
16c1fae to
c6abb99
Compare
|
Persistent review updated to latest commit c6abb99 |
Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com>
c6abb99 to
a06d346
Compare
|
Persistent review updated to latest commit a06d346 |
bowenlan-amzn
left a comment
There was a problem hiding this comment.
Looks good!
Regarding potential character injection concerns — I guess an attacker would need existing access and permissions to the cluster to exploit this, at which point they have far more impactful ways to cause damage.
…21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com> (cherry picked from commit 80ce21c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pensearch-project#21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com>
…21048) (#21096) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. (cherry picked from commit 80ce21c) Signed-off-by: Finn Carroll <carrofin@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…pensearch-project#21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com> Signed-off-by: Aparajita Pandey <aparajita31pandey@gmail.com>
…pensearch-project#21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com>
…pensearch-project#21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com>
…pensearch-project#21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com>
…ake size configurable (#21434) * Remove X-Request-Id format restrictions and make size configurable (#21048) Introduces dynamic http.request_id.max_length setting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id. Signed-off-by: Finn Carroll <carrofin@amazon.com> * Changelog. Signed-off-by: Finn Carroll <carrofin@amazon.com> --------- Signed-off-by: Finn Carroll <carrofin@amazon.com>
Description
Introduces dynamic
http.request_id.max_lengthsetting for configuring maximum length for X-Request-Id headers. Removes the alpha-numeric validation of X-Request-Id.Related Issues
Resolves #20688
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.