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

fix(engine): disable comma separated vectors in cxxopts #3363

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LucaGuerra
Copy link
Contributor

@LucaGuerra LucaGuerra commented Oct 1, 2024

What type of PR is this?

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

/kind bug

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:

There was a missed configuration option in this PR #3310 , which sadly made the -o append_output[]={"source": "syscall", "tag": "persistence", "rule": "some rule name", "format": "gparent=%proc.aname[2] ggparent=%proc.aname[3] gggparent=%proc.aname[4]"} style options non functional due to the fact that cxxopts is trying to parse commas in the json object. Sadly I only realized after release. This PR fixes it.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(engine): fix parsing issues in -o key={object} when the object definition contains a comma

@poiana
Copy link
Contributor

poiana commented Oct 1, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@LucaGuerra
Copy link
Contributor Author

/milestone 0.40.0

buf if there is a 0.39.1 this would get in.

@leogr
Copy link
Member

leogr commented Oct 4, 2024

/milestone 0.40.0

buf if there is a 0.39.1 this would get in.

👍
We are investigating about a recently discovered bug, so - since an hotfix release is very likely to happen - I've created the milestone

/milestone 0.39.1

@poiana poiana modified the milestones: 0.40.0, 0.39.1 Oct 4, 2024
@@ -19,6 +19,9 @@ limitations under the License.
#include "../configuration.h"
#include "config_falco.h"

// disable cxxopts vector delimiter, meaning that
// -o test1,test2,test3 won't be treated like -o test1 -o test2 -o test3
#define CXXOPTS_VECTOR_DELIMITER '\0'
Copy link
Member

@leogr leogr Oct 4, 2024

Choose a reason for hiding this comment

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

This may be seen as a (minor) breaking change in the CLI context. Is there an alternative available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

3 participants