fix: handle multi-value response headers as comma-separated per RFC 7230#6281
fix: handle multi-value response headers as comma-separated per RFC 7230#6281patrostkowski wants to merge 1 commit intoenvoyproxy:mainfrom
Conversation
e5a23eb to
48cc475
Compare
There was a problem hiding this comment.
this will break the logic for requestHeaders
for responseHeaders, is the fix to avoid the split in the gateway-api layer
gateway/internal/gatewayapi/filters.go
Line 620 in 32d61c4
please add a test case in the gateway-api and xds/translator layer
48cc475 to
e4c8f89
Compare
ac27d4e to
9c144f6
Compare
|
hey @patrostkowski we use YAML based testcases for better readability
if you run |
This change updates response header modifier handling to comply with RFC 7230 by preserving header values containing commas as single strings. Request header behavior remains unchanged to avoid breaking existing functionality. Signed-off-by: Patryk Rostkowski <patrostkowski@gmail.com>
9c144f6 to
2b8a179
Compare
|
@arkodg sure, let me adjust the tests then |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6281 +/- ##
==========================================
+ Coverage 70.60% 70.66% +0.06%
==========================================
Files 220 220
Lines 36829 36832 +3
==========================================
+ Hits 26004 26029 +25
+ Misses 9292 9275 -17
+ Partials 1533 1528 -5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions! |
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. Please feel free to give a status update now, ping for review, when it's ready. Thank you for your contributions! |
|
@patrostkowski still working on this ? |
|
@patrostkowski any news/time to finish your fix ? |
|
This still seems to be worked on right? |
|
@jasmin-terrien @VonNao feel free to pick this one up, there's been inactivity for a long time |
|
fixed with #7436 |
What type of PR is this?
fix
What this PR does / why we need it:
This change updates the translation logic of ResponseHeaderModifier so that when multiple values are specified for a header, they are joined into a single, comma-separated value as required by RFC 7230. As a result, the generated Envoy config now emits one HeaderValueOption per header, with all values joined by commas.
Tested using following config:
Which issue(s) this PR fixes:
Fixes #5733
Release Notes: Yes/No