Skip to content

backport: do not sign content-length for AWS (#694)#697

Merged
yuzisun merged 1 commit intoenvoyproxy:release/v0.2from
yuzisun:release/v0.2
Jun 10, 2025
Merged

backport: do not sign content-length for AWS (#694)#697
yuzisun merged 1 commit intoenvoyproxy:release/v0.2from
yuzisun:release/v0.2

Conversation

@yuzisun
Copy link
Copy Markdown
Contributor

@yuzisun yuzisun commented Jun 10, 2025

Commit Message

Previously, AWS signing has included the "content-length" header. However, Envoy's extproc filter strips it from the request as we are using CONTINUE_AND_REPLACE option to reduce the memory overhead. While we have still no clue as to why AWS doesn't complain when the request body is small, excluding content-length from the signing target headers will make the tests with both small and large bodies pass.

Related Issues/PRs (if applicable)

CONTINUE_AND_REPLACE was introduced in #636 to avoid sending a request body twice between Envoy and the ExtProc.

**Commit Message**

Previously, AWS signing has included the "content-length" header.
However, Envoy's extproc filter strips it from the request as we are
using CONTINUE_AND_REPLACE option to reduce the memory overhead. While
we have still no clue as to why AWS doesn't complain when the request
body is small, excluding content-length from the signing target headers
will make the tests with both small and large bodies pass.

**Related Issues/PRs (if applicable)**

CONTINUE_AND_REPLACE was introduced in envoyproxy#636 to avoid sending a request
body twice between Envoy and the ExtProc.

---------

Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
@yuzisun yuzisun requested a review from a team as a code owner June 10, 2025 03:37
@yuzisun yuzisun merged commit 36fc248 into envoyproxy:release/v0.2 Jun 10, 2025
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants