8000 Add multiple printers by josedonizetti · Pull Request #2746 · aquasecurity/tracee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add multiple printers #2746

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

Merged

Conversation

josedonizetti
Copy link
Contributor
@josedonizetti josedonizetti commented Feb 20, 2023

1. Explain what the PR does

This PR add support for multiple printers to new tracee binary. The old binary tracee-ebpf maintain the previous syntax, and the change is only implemented for the new binary, for such I have first created a commit where I rename the previous output flag in order to simplify the deletion once we deprecate and remove tracee-ebpf.

The new syntax was discussed on a previous PR #2709
This PR is part of #2355
Close #2231

2. Explain how to test it

Please check the help commands:

tracee-ebpf --output help
tracee --output help

3. Other comments

Multiple printers will be the base of the webhook implementation for the new binary, where webhooks will be a printer like stdout, etc.

@josedonizetti josedonizetti marked this pull request as ready for review February 20, 2023 21:22
@josedonizetti josedonizetti self-assigned this Feb 20, 2023
Copy link
Member
@geyslan geyslan left a comment

Choose a reason for hiding this comment

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

I put some comments to be addressed.

@josedonizetti josedonizetti force-pushed the add-multiple-printers branch 2 times, most recently from 3571116 to a0cf505 Compare February 23, 2023 17:21
@josedonizetti josedonizetti marked this pull request as draft February 23, 2023 17:32
Comment on lines 25 to 30
Log options:
log-file:/path/to/file write the logs to a specified file. create/trim the file if exists (default: stderr)
Copy link
Collaborator

Choose a reason for hiding this comment

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

log options should probably move to the --log flag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like it, will create an issue for it.

@josedonizetti josedonizetti force-pushed the add-multiple-printers branch 2 times, most recently from 311659e to 77167f7 Compare February 23, 2023 19:37
@josedonizetti josedonizetti marked this pull request as ready for review February 23, 2023 19:51
Copy link
Member
@geyslan geyslan left a comment

Choose a reason for hiding this comment

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

LGTM. Great job with the printer broadcast.

Copy link
Collaborator
@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

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

Nice work @josedonizetti !
Overall LGTM, some nit comments ahead

@rafaeldtinoco rafaeldtinoco self-requested a review February 27, 2023 15:13
@rafaeldtinoco
Copy link
Contributor

Make sure to rebase so #2776 is included and new testers are used.

The output flag will be different depending on the binary.
This commit is renaming the output based on the binary that will use it,
tracee-ebpf.
@rafaeldtinoco rafaeldtinoco merged commit a85adb3 into aquasecurity:main Mar 1, 2023
@rafaeldtinoco
Copy link
Contributor

Thanks for waiting on my review/read. Nice job!

Copy link
Contributor
@rafaeldtinoco rafaeldtinoco left a comment

Choose a reason for hiding this comment

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

LGTM

@josedonizetti josedonizetti deleted the add-multiple-printers branch March 2, 2023 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support multiple outputs for tracee-ebpf
4 participants
0