Commit 36fc248
**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.
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
Co-authored-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
1 parent 4b5ebbd commit 36fc248
File tree
2 files changed
+38
-21
lines changed- internal/extproc/backendauth
- tests/extproc
2 files changed
+38
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
109 | 117 | | |
110 | 118 | | |
111 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 95 | + | |
116 | 96 | | |
117 | 97 | | |
118 | 98 | | |
| |||
322 | 302 | | |
323 | 303 | | |
324 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
325 | 310 | | |
326 | 311 | | |
327 | 312 | | |
| |||
331 | 316 | | |
332 | 317 | | |
333 | 318 | | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
0 commit comments