Skip to content

feat(chaitin-waf): add allow_degradation option for fail-open behavior#13311

Open
jlongWang wants to merge 1 commit intoapache:masterfrom
jlongWang:feat/chaitin-waf-allow-degradation
Open

feat(chaitin-waf): add allow_degradation option for fail-open behavior#13311
jlongWang wants to merge 1 commit intoapache:masterfrom
jlongWang:feat/chaitin-waf-allow-degradation

Conversation

@jlongWang
Copy link
Copy Markdown

@jlongWang jlongWang commented Apr 28, 2026

Add allow_degradation configuration option to allow requests to pass through when the WAF service is unavailable (e.g., connection timeout, no healthy nodes). This prevents the WAF service from becoming a single point of failure.

Changes:

  • Add allow_degradation boolean field to plugin schema (default: false)
  • Implement degradation logic for WAF server unavailability
  • Implement degradation logic for WAF detection errors/timeout
  • Update documentation (zh/en)
  • Add test cases for degradation behavior

Description

Which issue(s) this PR fixes:

Fixes #

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

Add `allow_degradation` configuration option to allow requests to pass
through when the WAF service is unavailable (e.g., connection timeout,
no healthy nodes). This prevents the WAF service from becoming a single
point of failure.

Changes:
- Add `allow_degradation` boolean field to plugin schema (default: false)
- Implement degradation logic for WAF server unavailability
- Implement degradation logic for WAF detection errors/timeout
- Update documentation (zh/en)
- Add test cases for degradation behavior
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant