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

plugin system, events tester, and minor features #31

Merged
merged 20 commits into from
Jul 20, 2020
Merged

plugin system, events tester, and minor features #31

merged 20 commits into from
Jul 20, 2020

Conversation

leogr
Copy link
Member

@leogr leogr commented Jun 4, 2020

What type of PR is this?

/kind feature

Any specific area of the project related to this PR?

/area commands

/area pkg

/area events

What this PR does / why we need it:

TODOs:

Which issue(s) this PR fixes:

Fixes #30

Special notes for your reviewer:

It's a WIP but can be tested by:

Then

make
sudo ./event-generator test syscall

DEMO
asciicast

/cc @leodido
/cc @fntlnz
/cc @nibalizer

@poiana
Copy link

poiana commented Jun 4, 2020

@leogr: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

1 similar comment
@poiana
Copy link

poiana commented Jun 4, 2020

@leogr: Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Member

@leodido leodido left a comment

Choose a reason for hiding this comment

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

Even though it's still a WIP, it looks pretty good to me! 👏

Just one consideration (for a future iteration on this great work).

Rules (and the fields they use) depend on the Falco Engine version (link).

Thus, the test command should somehow (in the future) filter by Falco engine version.

In order to be able to achieve this level of completeness we need two missing pieces:

@leogr
Copy link
Member Author

leogr commented Jun 22, 2020

Hey @leodido

Thank you for your preliminary review!

I totally agree with you; we need to check the engine version. Furthermore, since the user can customize rules, my current idea is to create a sort of "presets". That would help in testing a set of rules that are intended for a specific engine version. Ofc, it will be implemented in a future iteration, since this PR is already too big :)

Also a quick update
I'm also thinking of moving those "action renamed" commits to another PR, just because they could already be merged into the current master.

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@leogr leogr dismissed stale reviews from leodido and fntlnz via 7a81146 July 20, 2020 14:15
leodido
leodido previously approved these changes Jul 20, 2020
@poiana poiana added the lgtm label Jul 20, 2020
@poiana
Copy link

poiana commented Jul 20, 2020

LGTM label has been added.

Git tree hash: 94f151080ae23005f22f41f412de1c56221d42d4

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@leogr leogr changed the title wip: plugin system, events tester, and minor features plugin system, events tester, and minor features Jul 20, 2020
@leogr
Copy link
Member Author

leogr commented Jul 20, 2020

Ready for review!
/cc @fntlnz
/cc @leodido

@poiana poiana requested review from fntlnz and leodido July 20, 2020 16:04
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@poiana poiana added the lgtm label Jul 20, 2020
@poiana
Copy link

poiana commented Jul 20, 2020

LGTM label has been added.

Git tree hash: c48042d31155258d8246c934fe2db3a5f045067a

@poiana
Copy link

poiana commented Jul 20, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 7bf714a into master Jul 20, 2020
@poiana poiana deleted the new/tester branch July 20, 2020 16:14
@leogr leogr added this to the 0.4.0 milestone Jul 20, 2020
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.

Falco Rule Integration Test
4 participants