Repository navigation
ext_proc: report client creation failure so failure_mode_allow is honored - #45189
Conversation
|
/assign @yanjunxiang-google |
…ored Fixes GHSA-jp7j-jw2q-9494 (closed by @yanjunxiang-google with redirect to public-track per https://github.com/envoyproxy/envoy/security/advisories/GHSA-jp7j-jw2q-9494). When ProcessorClientImpl::start() fails to create the underlying gRPC client via getOrCreateRawAsyncClientWithHashKey, it returns nullptr without invoking onGrpcError or onGrpcClose. The consuming Filter::openStream() interprets nullptr-with-no-prior-callback as IgnoreError and short-circuits the request through, regardless of the operator's failure_mode_allow setting. Effectively, every client-creation failure silently fails open. Add the onGrpcError(Internal, ...) call on the failure branch so the consuming filter applies its configured failure_mode_allow semantic. Gate behind envoy.reloadable_features.ext_proc_report_client_creation_error (default true) per CONTRIBUTING.md guidance for user-visible protocol-processing changes — operators that depended on the legacy silent-ignore can revert by flipping the guard to false. Extends test/extensions/filters/http/ext_proc/client_test.cc with both guard states. clang-format clean. Signed-off-by: Omkhar Arasaratnam <[email protected]>
4d89dca to
15ccdaa
Compare
multiplexed_integration_test shard 9 failed on Http2FrameIntegrationTest.AdjustUpstreamSettingsMaxStreams/IPv4_Oghttp2 with a timing race (timed out waiting for cluster.cluster_0.upstream_cx_total to be 2; observed 3). The test is HTTP/2 connection-settings — no code path in this PR touches it. 1 of 1716 tests failed; the rest passed. Re-triggering CI to clear the flake. Signed-off-by: Omkhar Arasaratnam <[email protected]>
|
CI on |
|
Retrigger on
The cause appears to be upstream-main CI instability, not this PR.
And earlier on this PR head Holding off on another empty-commit retrigger to avoid noise. Happy to push one if a maintainer would prefer that over a |
There was a problem hiding this comment.
For this test, you might want to explicitly set the runtime guard to false, so nothing changes.
| EXPECT_THAT(grpc_error_message_, testing::HasSubstr("creation-error")); | ||
| } | ||
|
|
||
| TEST_F(ExtProcStreamTest, ClientStartErrorGuardDisabled) { |
There was a problem hiding this comment.
You can name the test as ClientStartErrorGuardEnabled, then test the new behavior.
BTW, I think you can refactor these two tests to make it share a common test method as the test code are largely same.
|
Thanks for working on this! LGTM in general and left some comments regarding test |
Per @yanjunxiang-google's inline review on envoyproxy#45189: 1. ClientStartError now pins the runtime guard to false so the test keeps its pre-fix semantic ("start() returns nullptr; no onGrpcError fires"). Preserves what the test was originally written to assert. 2. ClientStartErrorGuardDisabled is renamed to ClientStartErrorGuardEnabled so the test name aligns with the code path it exercises (the guard is on by default; this test asserts the new onGrpcError behavior). 3. Shared setup extracted to startAndExpectClientCreationFailure() on the fixture so the two test bodies are just guard-config + assertions on grpc_status_. Signed-off-by: Omkhar Arasaratnam <[email protected]>
|
Thanks @yanjunxiang-google — addressed both review comments in
|
|
Third CI run on
Pattern across the 3 attempts:
Zero overlap; @yanjunxiang-google — when you have a moment, would you mind kicking |
|
/retest Re-grouping per CONTRIBUTING.md ("Triggering CI re-run without making changes"). Posting Adding flake context that I missed earlier:
cc @yanavlasov — you're the requested reviewer here and were CC'd on #44618 by @yanjunxiang-google. Would either of you mind kicking the failed sub-jobs in |
|
LGTM |
|
/assign @tyxia |
|
Merging as @yanjunxiang-google is an extproc owner |
…ored (envoyproxy#45189) Commit Message: ext_proc: report client creation failure so failure_mode_allow is honored `ProcessorClientImpl::start()` previously returned `nullptr` without invoking `onGrpcError` or `onGrpcClose` when `getOrCreateRawAsyncClientWithHashKey()` returned an error (cluster lookup failure, raw async-client construction failure, etc.). The downstream `Filter::openStream()` in `ext_proc.cc` treats a nullptr return with no prior callback as `IgnoreError` and short-circuits the request through, ignoring `failure_mode_allow`. Behavior before: `failure_mode_allow=false` deployments silently fail open on client-creation errors — the operator-configured rejection never runs. Behavior after: with the default runtime guard on, `ProcessorClientImpl::start()` invokes `callbacks.onGrpcError(Grpc::Status::WellKnownGrpcStatus::Internal, ...)` before returning nullptr. The downstream `Filter::onGrpcError` then runs the configured `failure_mode_allow` semantic (reject with 500 if false, continue if true). Fixes envoyproxy#45188. Signed-off-by: Omkhar Arasaratnam <[email protected]> Co-authored-by: Omkhar Arasaratnam <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". #45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message: http2: deflake RstStreamOverflowOnPendingFlushTimeout The test set `stream_idle_timeout` to 400ms only to get a 400ms pending flush timer, since `stream_flush_timeout` defaults to it. The idle timer also covers the pre-fill stream, so that stream's upstream response had to start within 400ms of the request. On a slow runner the idle timeout fired first and left its local reply's two frames queued. The test then timed out waiting for 998 queued frames with "current value 2". This sets `stream_flush_timeout` to 400ms instead and leaves the idle timeout at its default. The flush timeout, RST_STREAM and overflow path the test is about doesn't change. Additional Description: It failed on 9 changes between 10-05 and 10-22 under tsan, always on oghttp2 with "current value 2". envoyproxy#45189 reported the same symptom back in May. Delaying the autonomous upstream's response by 500ms reproduces it on both codecs, so the oghttp2 skew in CI is just that codec being slower. AI Disclaimer: code change created with AI assistance, fully reviewed by me prior to opening. Risk Level: Low (test only) Testing: - 500ms delayed-response repro: 12/12 runs failed with the CI message before, 12/12 pass after (all four codec/IP params) - `bazel test //test/integration:http2_flood_integration_test --runs_per_test=5`: pass (macOS arm64, fastbuild) Docs Changes: N/A Release Notes: N/A Platform Specific Features: N/A --------- Signed-off-by: Derek Argueta <[email protected]> (cherry picked from commit a42f23c) Signed-off-by: Ryan Northey <[email protected]>
Commit Message:
ext_proc: report client creation failure so failure_mode_allow is honored
ProcessorClientImpl::start()previously returnednullptrwithout invokingonGrpcErrororonGrpcClosewhengetOrCreateRawAsyncClientWithHashKey()returned an error (cluster lookup failure, raw async-client construction failure, etc.). The downstreamFilter::openStream()inext_proc.cctreats a nullptr return with no prior callback asIgnoreErrorand short-circuits the request through, ignoringfailure_mode_allow.Behavior before:
failure_mode_allow=falsedeployments silently fail open on client-creation errors — the operator-configured rejection never runs.Behavior after: with the default runtime guard on,
ProcessorClientImpl::start()invokescallbacks.onGrpcError(Grpc::Status::WellKnownGrpcStatus::Internal, ...)before returning nullptr. The downstreamFilter::onGrpcErrorthen runs the configuredfailure_mode_allowsemantic (reject with 500 if false, continue if true).Additional Description:
Reported privately via GHSA-jp7j-jw2q-9494. @yanjunxiang-google closed the advisory and redirected to a public bug fix since the issue is not externally exploitable (only fires on operator-side configuration errors).
Disclosure (per CONTRIBUTING.md generative-AI policy): this patch was authored with the assistance of a generative-AI coding agent. I have reviewed the patch line-by-line, ran the relevant unit tests locally, and accept responsibility for correctness.
Risk Level:
Low. Single-line behavioral change on the client-creation error path only, gated behind a
reloadable_featuresruntime guard so operators that depended on the legacy silent-ignore behavior can revert by flipping the guard to false.Testing:
Extended
test/extensions/filters/http/ext_proc/client_test.ccwith both runtime-guard states:ClientStartError(updated): asserts the existing nullptr-return AND thatgrpc_status_is set toInternalwith the upstream error message propagated. Covers the default-on path.ClientStartErrorGuardDisabled(new): usesTestScopedRuntimeto flip the guard tofalseand asserts the legacy behavior is preserved (nullptr return,grpc_status_staysOk).Build / run:
Docs Changes:
None. The runtime guard is operator-only; the user-facing semantic (
failure_mode_allow) is unchanged from its documented contract — this PR restores the documented behavior.Release Notes:
Added at
changelogs/current/bug_fixes/ext_proc__report-grpc-error-on-client-creation-failure.rstper the file-per-entry layout (#45093).Platform Specific Features:
N/A.
[Optional Runtime guard:]
envoy.reloadable_features.ext_proc_report_client_creation_error(defaulttrue). Operators relying on the prior silent-ignore behavior can revert by flipping the guard tofalse. Per CONTRIBUTING.md§Runtime guarding, this is a user-visible non-config-guarded change to protocol processing, so a guard is warranted; default-on because the prior behavior contradicted the documentedfailure_mode_allowcontract.[Optional Fixes #Issue]
Fixes #45188.
[Optional Fixes commit #PR or SHA]
N/A — latent bug in
ProcessorClientImpl::start(); not traceable to a specific regression commit. See #45188 for the regression chronology pointing to #39388.[Optional Deprecated:]
None.
[Optional API Considerations:]
N/A — no api/ tree changes.