-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http: split strict_1xx_and_204_response_headers into two settings #15880
Conversation
Signed-off-by: Taylor Barrella <[email protected]>
/retest |
Retrying Azure Pipelines: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM. Thanks!
Question: If accept_strict_1xx_and_204_response_headers
== false and send_strict_1xx_and_204_response_headers
== true
Is TE stripped in downstream response when the upstream response contains TE?
It's not clear to me whether the downstream TE is always decided by send_strict_1xx_and_204_response_headers
regardless the upstream response contains TE or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LG overall, thanks so much for picking this one up!
Two thoughts. Do you think it should be strict_accept since we're making accepting strict, it's not that we're accepting strict headers (which I think we would either way?)
I think it's worth an integration test making sure that new-accept works with old-send, to make sure this actually addresses the problem.
That's more grammatical yeah, although I think the flags should be consistent. So I can switch that as long as it's ok to switch the other to strict_send. Also, feel like I might as well use strict_allow because that seems a little better... |
Hm, I feel like send_strict and strict_accept makes sense but I hear you about wanting to keep them parallel. How about send_strict and require_strict so you can keep the ordering the same but the meaning clear? |
Signed-off-by: Taylor Barrella <[email protected]>
I think so based on this comment.
Do you mean |
/retest |
Retrying Azure Pipelines: |
Ah, is what you're saying that the codec tests, while looking the same, are actually testing the case which failed before, of a mix of old and new style headers, so are validating the bug fix despite not being end to end? If so I think I'm good :-) |
Yeah, specifically the second half of /retest |
Retrying Azure Pipelines: |
Hi @snowp, @alyssawilk said this is
Did I tag you too late? Which release will this be going into? |
Hm, the format check failure looks unrelated to my change |
This will go out with 1.19 as is. Can you try merging main and see it that helps resolve the format issue? It does seem unrelated to this code as you say |
Signed-off-by: Taylor Barrella <[email protected]>
/retest |
Retrying Azure Pipelines: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
…voyproxy#15880) Signed-off-by: Taylor Barrella <[email protected]> Signed-off-by: Gokul Nair <[email protected]>
Hi, I'm new to envoy so I apologize for the naive question, but how do I actually configure these flags? I would like to set EDIT: I believe I can add it by configuring a |
Same as @jojofeng (above), I would also like to know how to configure these flags. |
@rbalaraman-c You can add a |
@rbalaraman-c this is the exact configuration block i use 😄 i hope it helps!
|
Commit Message:
http: split strict_1xx_and_204_response_headers into two settings
Signed-off-by: Taylor Barrella [email protected]
Additional Description:
Risk Level: Low
Testing: unit
Docs Changes: N/A
Release Notes: added minor behavior change
Runtime guard: replaced
strict_1xx_and_204_response_headers
withrequire_strict_1xx_and_204_response_headers
andsend_strict_1xx_and_204_response_headers
Fixes #13868