Skip to content

fault: add dry_run mode for HTTP fault abort injection - #48944

Open
mw-tianmi wants to merge 4 commits into
envoyproxy:mainfrom
mw-tianmi:fault-abort-dry-run
Open

mw-tianmi wants to merge 4 commits into
envoyproxy:mainfrom
mw-tianmi:fault-abort-dry-run

Conversation

@mw-tianmi

Copy link
Copy Markdown
Contributor

Commit Message: fault: add dry_run mode for HTTP fault abort injection
Additional Description:
Add an opt-in dry_run boolean field to FaultAbort so operators can validate abort matchers and percentages against live traffic without rejecting requests. When dry_run is true and a request matches the abort fault (either on header evaluation or after a delay timer completes), FaultFilter increments aborts_dry_run (including per-downstream-cluster stats) and records configured filter_metadata on stream dynamic metadata while omitting the FaultInjected response flag and active_faults accounting so decoding continues normally.
Risk Level: Low (opt-in via FaultAbort.dry_run; no behavior change when unset/false)
Testing: Unit tests (fault_config_test, fault_filter_test) and integration test (fault_filter_integration_test)
Docs Changes: Added FaultAbort.dry_run proto documentation and aborts_dry_run / <downstream-cluster>.aborts_dry_run counters in fault_filter.rst
Release Notes: N/A
Platform Specific Features: N/A

Signed-off-by: Tian Mi <tianmi@google.com>
@repokitteh-read-only

Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #48944 was opened by mw-tianmi.

see: more, trace.

@mw-tianmi

Copy link
Copy Markdown
Contributor Author

/assign @stevenzzzz

@stevenzzzz stevenzzzz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls let Yanjun take a look as well.

Most nits.

Signed-off-by: Tian Mi <tianmi@google.com>
@mw-tianmi

Copy link
Copy Markdown
Contributor Author

/assign @yanjunxiang-google

@stevenzzzz

Copy link
Copy Markdown
Contributor

/assign @yanjunxiang-google

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants