Skip to content

waf: add SkipProcessing() helper - #4667

Open
blotus wants to merge 2 commits into
masterfrom
waf-skip-processing-helper
Open

waf: add SkipProcessing() helper#4667
blotus wants to merge 2 commits into
masterfrom
waf-skip-processing-helper

Conversation

@blotus

@blotus blotus commented Sep 8, 2026

Copy link
Copy Markdown
Member

Add a new SkipProcessing(reason) helper to return early before evaluating any rules, without dropping the request (counterpart of DropRequest(reason)).

If SkipProcessing() and DropRequest() are called in the same reques, the 1st one will win.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

@blotus: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.

  • /kind feature
  • /kind enhancement
  • /kind refactoring
  • /kind fix
  • /kind chore
  • /kind dependencies
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

@blotus: There are no area labels on this PR. You can add as many areas as you see fit.

  • /area agent
  • /area local-api
  • /area cscli
  • /area appsec
  • /area security
  • /area configuration
Details

I am a bot created to help the crowdsecurity developers manage community feedback and contributions. You can check out my manifest file to understand my behavior and what I can do. If you want to use this for your project, you can check out the BirthdayResearch/oss-governance-bot repository.

@blotus

blotus commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

/kind enhancement
/area appsec

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 76.19048% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.72%. Comparing base (909b515) to head (c76dee0).

Files with missing lines Patch % Lines
pkg/appsec/appsec.go 77.14% 12 Missing and 4 partials ⚠️
pkg/acquisition/modules/appsec/appsec_runner.go 75.00% 1 Missing and 1 partial ⚠️
pkg/appsec/waf_helpers.go 33.33% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4667   +/-   ##
=======================================
  Coverage   64.71%   64.72%           
=======================================
  Files         522      522           
  Lines       39862    39913   +51     
=======================================
+ Hits        25798    25834   +36     
- Misses      11663    11676   +13     
- Partials     2401     2403    +2     
Flag Coverage Δ
bats 41.07% <17.85%> (-0.02%) ⬇️
unit-linux 41.98% <76.19%> (+<0.01%) ⬆️
unit-windows 30.50% <13.09%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@blotus blotus added this to the 1.8.2 milestone Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/appsec kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant