-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module-based rule evaluation precedence #353
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #353 +/- ##
==========================================
+ Coverage 84.68% 84.91% +0.22%
==========================================
Files 153 157 +4
Lines 7889 7993 +104
Branches 3520 3556 +36
==========================================
+ Hits 6681 6787 +106
+ Misses 460 459 -1
+ Partials 748 747 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
BenchmarksBenchmark execution time: 2024-11-27 22:03:31 Comparing candidate commit 8551f2e in PR branch Found 1 performance improvements and 0 performance regressions! Performance is the same for 0 metrics, 0 unstable metrics. scenario:global-benchmark.random
|
return std::hash<std::string_view>{}(address); | ||
} | ||
|
||
struct target_address { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not currently used, but I plan to start using them soon.
This PR introduces the new concept of
modules
to better organise rules based on their precedence. Modules are introduced as a generic mechanism which contains a set of rules in the required order (user / base, blocking, etc). Individual modules can have optional grouping, which is introduced specifically for the purpose of having independent collections within thewaf
module, as the short-circuit evaluation follows a different criteria due to rules being grouped by type.The modules introduced are the following:
network-acl
,authentication-acl
,custom-acl
,configuration
,business-logic
,rasp
,waf
. The network and authentication modules do not follow the provided timeout, and the ordering of each module changes a little bit based on whether user (Custom) or base (DD) rules should take precedence.Related Jira: APPSEC-55598