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

new(falco): add falco_libs.snaplen option, deprecate -S / --snaplen #3362

Merged

Conversation

LucaGuerra
Copy link
Contributor

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind cleanup

/kind feature

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area engine

What this PR does / why we need it:

As per title. This may be the last CLI option that we couldn't replicate in the falco config file.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

new(falco): add falco_libs.snaplen option, deprecate -S / --snaplen

@LucaGuerra
Copy link
Contributor Author

/milestone 0.40.0

@poiana poiana added this to the 0.40.0 milestone Oct 1, 2024
@LucaGuerra LucaGuerra force-pushed the new/falco_libs_snaplen_option branch 2 times, most recently from 3ed01ec to dcd1d05 Compare October 1, 2024 12:10
@LucaGuerra LucaGuerra force-pushed the new/falco_libs_snaplen_option branch from dcd1d05 to 311626e Compare October 1, 2024 14:38
//
if(s.config->m_falco_libs_snaplen != 0) {
inspector->set_snaplen(s.config->m_falco_libs_snaplen);
}
if(s.options.snaplen != 0) {
inspector->set_snaplen(s.options.snaplen);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to add the `attention this is deprectated and will be removed in..." log here? Like this one: https://github.com/falcosecurity/falco/pull/3329/files#diff-e1e4257c43745e29751e72ffa753fd44ec931b07b1bec5035f4d1b04d061848cR100

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, will change these PRs

@LucaGuerra LucaGuerra force-pushed the new/falco_libs_snaplen_option branch from 19f8795 to 7c0a062 Compare October 2, 2024 10:19
@LucaGuerra
Copy link
Contributor Author

@FedeDP done!

Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Oct 7, 2024

LGTM label has been added.

Git tree hash: f0a8c91d0a21ef5deeff46f7c1b4eee5bba3e327

Copy link
Member

@Andreagit97 Andreagit97 left a comment

Choose a reason for hiding this comment

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

/approve

@poiana
Copy link
Contributor

poiana commented Oct 7, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Andreagit97, FedeDP, LucaGuerra

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:
  • OWNERS [Andreagit97,FedeDP,LucaGuerra]

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 4785149 into falcosecurity:master Oct 7, 2024
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants