Skip to content
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

tracee-rules: Allow compiling and evaluating all Rego signatures at once #1015

Merged
merged 3 commits into from
Sep 20, 2021
Merged

tracee-rules: Allow compiling and evaluating all Rego signatures at once #1015

merged 3 commits into from
Sep 20, 2021

Conversation

danielpacak
Copy link
Contributor

This patch adds new implementation of types.Signature that compiles
all Rego signatures into one Rego policy, which is then evaluated
with input events. This implementation is more efficient in terms
of number of memory allocations and number of objects created to
evaluate a Rego policy.

The new implementation is activated by specifying the --rego-aio
flag.

Signed-off-by: Daniel Pacak pacak.daniel@gmail.com

@danielpacak danielpacak marked this pull request as draft September 20, 2021 16:02
This patch adds new implementation of types.Signature that compiles
all Rego signatures into one Rego policy, which is then evaluated
with input events. This implementation is more efficient in terms
of number of memory allocations and number of objects created to
evaluate a Rego policy.

The new implementation is activated by specifying the --rego-aio
flag.

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
@danielpacak danielpacak marked this pull request as ready for review September 20, 2021 16:51
Signed-off-by: Simar <simar@linux.com>
Vagrantfile Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
@simar7 simar7 self-requested a review September 20, 2021 20:13
Copy link
Member

@simar7 simar7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm modulo the vagrant changes being removed

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
@danielpacak danielpacak merged commit 1629071 into aquasecurity:main Sep 20, 2021
@danielpacak danielpacak deleted the rego_aio branch September 20, 2021 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants