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(userspace/engine): make sure exception fields are not optional in replace mode #3108

Merged
merged 3 commits into from May 17, 2024

Conversation

jasondellaluce
Copy link
Contributor

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

When replaced with the new override YAML construct, exceptions must not have any of their sub-fields as optional, just like when first defined in regular rules definitions.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(userspace/engine): make sure exception fields are not optional in replace mode

Copy link

This PR may bring feature or behavior changes in the Falco engine and may require the engine version to be bumped.

Please double check userspace/engine/falco_engine_version.h file. See versioning for FALCO_ENGINE_VERSION.

/hold

@LucaGuerra
Copy link
Contributor

Could you please add a test for this behavior? This way we won't break it in the future.

@FedeDP
Copy link
Contributor

FedeDP commented Mar 7, 2024

/milestone 0.38.0

@poiana poiana added this to the 0.38.0 milestone Mar 7, 2024
… replace mode

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
@jasondellaluce jasondellaluce force-pushed the fix/exceptions-replace-fields-optional branch from fc63582 to 8de17fb Compare May 16, 2024 12:57
@poiana poiana added size/M and removed size/XS labels May 16, 2024
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
@poiana
Copy link

poiana commented May 17, 2024

LGTM label has been added.

Git tree hash: 201862dc1d9651dcafa33c7ea163dfd7a6e4fdf3

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

poiana commented May 17, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, jasondellaluce, 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 [FedeDP,LucaGuerra,jasondellaluce]

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

/unhold

@poiana poiana merged commit 6403919 into master May 17, 2024
35 checks passed
@poiana poiana deleted the fix/exceptions-replace-fields-optional branch May 17, 2024 12:39
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.

None yet

4 participants