Repository navigation
router: add dynamic max_stream_duration for upstream - #15433
Conversation
Signed-off-by: Shikugawa <[email protected]>
|
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open 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. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
|
@alyssawilk Could you take a look? |
|
mind checking out CI first - looks like there's a tidy failure? |
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
|
looks like clang tidy may need a look (and unsure if coverage is a flake or not but I'll let you check) |
alyssawilk
left a comment
There was a problem hiding this comment.
LGTM modulo one tiny nit.
@snowp would you be willing to do a pass as well?
snowp
left a comment
There was a problem hiding this comment.
Thanks! A few comments, overall this makes sense to me
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
Signed-off-by: Shikugawa <[email protected]>
snowp
left a comment
There was a problem hiding this comment.
Thanks, just a few more nits and then I think we're good to go
Signed-off-by: Shikugawa <[email protected]>
snowp
left a comment
There was a problem hiding this comment.
LGTM, deferring to @alyssawilk for final merge
|
looks good modulo the coverage failure. I'll try a re-run but it may need a main merge |
|
Retrying Azure Pipelines: |
|
/retest |
|
Retrying Azure Pipelines: |
|
@alyssawilk Could we merge? |
…ests (#48067) The router honours the `x-envoy-upstream-stream-duration-ms` request header from any client. `ConnectionManagerUtility::cleanInternalHeaders()` removes the other router timeout and retry control headers (`x-envoy-upstream-rq-timeout-ms`, `x-envoy-max-retries`, `x-envoy-retry-on`, ...) from external requests, but this one was missed when it was added in #15433. As a result, any external client can set a per-request upstream stream duration and make Envoy abort the upstream request with a local reply. This PR removes the header from external requests alongside the others. The change is guarded by `envoy.reloadable_features.sanitize_upstream_stream_duration_header` (default `true`) for deployments that send the header from clients Envoy classifies as external. It also adds the header to the header sanitizing docs, documents that it is only honoured for internal clients, and corrects the documented response code: the local reply is a 504, or a 408 if the downstream request has not been fully received (`Http::Utility::maybeRequestTimeoutCode()`), not always a 408. Fixes #48066 Runtime guard: `envoy.reloadable_features.sanitize_upstream_stream_duration_header` 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Lee Boynton <[email protected]>
For an explanation of how to fill out the fields, please see the relevant section
in PULL_REQUESTS.md
Commit Message: Close #14260. It adds dynamic
max_stream_durationto configure for upstream request. It works with settingx-envoy-upstream-stream-timeout-msand is prior to set toward static upstreammax_stream_duration.Additional Description:
Risk Level: Low
Testing: Unit / Integration
Docs Changes: Required
Release Notes: Required
Fixes #14260