Tracee-rules: dispatchEvents as a pipeline? #1277
AlonZivony
started this conversation in
Development
Replies: 1 comment 1 reply
-
It didn't use to be the case. It seems that https://github.com/aquasecurity/tracee/pull/984/files moved it from the input source loop (one parse per event) to the dispatch (one parse per signature). WDYT @simar7 @danielpacak ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I looked at the code of the engine in tracee-rules while working on adding some pipeline myself to the events channel from tracee-ebpf to the signatures.
I saw that dispatch events check for each event if to parse the event to OPA, and do it if configured to. This is done for each signature, which means that each event is parsed n amount of times, where n is the amount of signatures.
Wouldn't it be better to just add it as a pipeline if configured before the events are distributed for each signature so it will add logic only if configured to, and only once per event?
Beta Was this translation helpful? Give feedback.
All reactions