router: consume all retry related headers#11913
Merged
snowp merged 7 commits intoenvoyproxy:masterfrom Jul 8, 2020
Merged
Conversation
numerodix
commented
Jul 7, 2020
numerodix
commented
Jul 7, 2020
Contributor
Author
|
/assign @alyssawilk |
|
numerodix is not allowed to assign users. |
Contributor
Author
|
/retest |
|
🤷♀️ nothing to rebuild. |
Contributor
Author
|
/retest |
1 similar comment
Contributor
Author
|
/retest |
|
🤷♀️ nothing to rebuild. |
snowp
suggested changes
Jul 7, 2020
Contributor
snowp
left a comment
There was a problem hiding this comment.
Thanks this looks good, just a couple nits
Contributor
Author
|
Woops, looks like I just missed 1.15.0. |
Also remove `x-envoy-retriable-header-names` and `x-envoy-retriable-status-codes` to avoid these headers being propagated to the upstream. Signed-off-by: Martin Matusiak <numerodix@gmail.com>
Signed-off-by: Martin Matusiak <numerodix@gmail.com>
Signed-off-by: Martin Matusiak <numerodix@gmail.com>
2eddc3d to
4e840f1
Compare
Contributor
Author
|
Rebased, updated the release note and force pushed. |
Contributor
Author
|
/retest |
|
🤷♀️ nothing to rebuild. |
Contributor
Author
|
/retest |
|
🤷♀️ nothing to rebuild. |
scheler
pushed a commit
to scheler/envoy
that referenced
this pull request
Aug 4, 2020
Also remove `x-envoy-retriable-header-names` and `x-envoy-retriable-status-codes` to avoid these headers being propagated to the upstream. Signed-off-by: Martin Matusiak <numerodix@gmail.com> Signed-off-by: scheler <santosh.cheler@appdynamics.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Martin Matusiak numerodix@gmail.com
Commit Message: router: consume all retry related headers
Additional Description: Update the router to consume all retry related headers, to prevent them being propagated to the upstream.
Risk Level: low
Testing: Added new unit tests & did manual testing (with the runtime feature both on and off).
Docs Changes: None
Release Notes: Added
Runtime guard: envoy.reloadable_features.consume_all_retry_headers
I was testing retries when I discovered what seems like a bug with the handling of retry headers. If I make a request setting lots of different retry related headers like so:
:8080is envoy proxying to a trivial http server that just echoes what it receives. What I'm seeing envoy send is:Most of the
x-envoy-XXXheaders have been removed/consumed by the retry implementation, butx-envoy-retriable-status-codesandx-envoy-retriable-header-nameshave not.I see two issues with this:
retry_on: retriable_status_codes,retriable_header_namesthen its policy could be partly overridden.