-
Notifications
You must be signed in to change notification settings - Fork 905
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
new: allow falco to match multiple rules on same event #2705
new: allow falco to match multiple rules on same event #2705
Conversation
2d359a6
to
49f93cc
Compare
49f93cc
to
6376ab3
Compare
80e59c7
to
dc5ebd6
Compare
This PR may bring feature or behavior changes in the Falco engine and may require the engine version to be bumped. Please double check userspace/engine/falco_engine_version.h file. See versioning for FALCO_ENGINE_VERSION. /hold |
adc39db
to
681e1ad
Compare
This is right, we're effectively adding a new feature to the engine and this should have a version bump. |
0c87d19
to
4185f8a
Compare
…r on rule matching strategy Signed-off-by: Lorenzo Susini <susinilorenzo1@gmail.com>
…ption Signed-off-by: Lorenzo Susini <susinilorenzo1@gmail.com>
Signed-off-by: Lorenzo Susini <susinilorenzo1@gmail.com>
Signed-off-by: Lorenzo Susini <susinilorenzo1@gmail.com>
4185f8a
to
85395d1
Compare
Signed-off-by: Lorenzo Susini <susinilorenzo1@gmail.com>
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.
/approve
Engine version has been bumped.
/unhold
LGTM label has been added. Git tree hash: de83051a33205a8c91078ea85f7e0c4bd1f25771
|
/milestone 0.36.0 |
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.
do we want some unit tests on it or do we think e2e tests are enough @jasondellaluce?
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it> Signed-off-by: Lorenzo Susini <49318629+loresuso@users.noreply.github.com>
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.
/approve
LGTM label has been added. Git tree hash: 7d862e87c59a59521718fef65e6fb05277ccdd90
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, jasondellaluce, loresuso The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
What this PR does / why we need it:
This PR adds a configuration key to Falco to let it match multiple rules on the same event, avoiding a well-known shadowing problem between rules. To not introduce breaking changes, the old behavior is kept and can still be used (expressed trough config). To implement this, Falco will simply continue trying to evaluate the condition of rules in the bucket of same evt.type rules, without stopping at the first match. Thinking about it, this should not cause any performance degradation, since the rules in the bucket are always evaluated in their entirety whenever there's no matching rule, and the cardinality of events not matching rules compared to the ones that do is orders of magnitude higher (meaning that evaluating all conditions of rules in the same bucket is something that we do all the time, so we can afford to do it even when a rule in a bucket is matching).
Putting this on wip while figuring out how to introduce some tests, but open to discuss!
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: