Skip to content

fix(engine): reject empty appended rules#3935

Open
Jvlegod wants to merge 1 commit into
falcosecurity:masterfrom
Jvlegod:fix-empty-appended-rules
Open

fix(engine): reject empty appended rules#3935
Jvlegod wants to merge 1 commit into
falcosecurity:masterfrom
Jvlegod:fix-empty-appended-rules

Conversation

@Jvlegod

@Jvlegod Jvlegod commented Jul 2, 2026

Copy link
Copy Markdown

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area engine

/area tests

What this PR does / why we need it:

This PR restores validation for append: true rules that do not actually append anything.

It also updates the related rule loader tests to cover:

  • append: true with only enabled
  • append: true without condition or exceptions

Which issue(s) this PR fixes:

N/A

Special notes for your reviewer:

Tested with:

cmake -S . -B build-agent -DMINIMAL_BUILD=On -DBUILD_DRIVER=Off -DBUILD_FALCO_UNIT_TESTS=On
cmake --build build-agent --target falco_unit_tests
sudo ./build-agent/unit_tests/falco_unit_tests

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Keke Ming <ming.jvle@gmail.com>
@poiana

poiana commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Jvlegod
Once this PR has been reviewed and has the lgtm label, please assign fededp for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details 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 requested a review from Kaizhe July 2, 2026 08:31
@poiana

poiana commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Welcome @Jvlegod! It looks like this is your first PR to falcosecurity/falco 🎉

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

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

@Jvlegod

Jvlegod commented Jul 2, 2026

Copy link
Copy Markdown
Author

Maybe I don't think FALCO_ENGINE_VERSION needs to be bumped.

@leogr

leogr commented Jul 22, 2026

Copy link
Copy Markdown
Member

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

False positive
/hold cancel

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