waf challenge: add threshold support - #4593
Conversation
|
/area appsec |
|
@blotus: There are no 'kind' label on this PR. You need a 'kind' label to generate the release automatically.
DetailsI 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: There are no area labels on this PR. You can add as many areas as you see fit.
DetailsI 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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #4593 +/- ##
==========================================
- Coverage 64.38% 64.03% -0.35%
==========================================
Files 499 518 +19
Lines 38576 39460 +884
==========================================
+ Hits 24837 25269 +432
- Misses 11409 11814 +405
- Partials 2330 2377 +47
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Add new helpers to allow scoring of a request:
AddRequestScore(points, reason): add points for the given reason. Can be negative (eg, because something in the request is trustworthy)RequestScore()RequestScoreReasons()RequestScoreFor(reason)This allows to write more granular appsec configs and to use weaker signals to make a decision whether an IP is coming from a bot or not (eg,
utc_timezoneis set. It's very unusual, but blocking based only on this would be too harsh):While currently targeted towards the challenge mode, it can also be used to score any request: