fix(engine): reject empty appended rules#3935
Conversation
Signed-off-by: Keke Ming <ming.jvle@gmail.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Jvlegod The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Welcome @Jvlegod! It looks like this is your first PR to falcosecurity/falco 🎉 |
|
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 |
|
Maybe I don't think |
False positive |
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: truerules that do not actually append anything.It also updates the related rule loader tests to cover:
append: truewith onlyenabledappend: truewithoutconditionorexceptionsWhich issue(s) this PR fixes:
N/A
Special notes for your reviewer:
Tested with:
Does this PR introduce a user-facing change?: