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(app_actions): perform validate_rules before load_rules action #2088

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Jun 22, 2022

Perform the validate_rules action before the load_rules action. This
ensures that only the rules files named with -V arguments are
validated.

This fixes #2087.

Signed-off-by: Mark Stemm mark.stemm@gmail.com

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

If contributing rules or changes to rules, please make sure to also uncomment one of the following line:

/kind rule-update

/kind rule-create

Any specific area of the project related to this PR?

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

/area build

/area engine

/area rules

/area tests

/area proposals

What this PR does / why we need it:

Run the validate_rules action before the load_rules action, so only rules named with -V options are considered.

Which issue(s) this PR fixes:

Fixes #2087

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(userspace/falco): ensure that only rules files named with `-V` are loaded when validating rules files.

Perform the validate_rules action before the load_rules action. This
ensures that *only* the rules files named with -V arguments are
validated.

This fixes #2087.

Signed-off-by: Mark Stemm <mark.stemm@gmail.com>
Copy link
Contributor

@jasondellaluce jasondellaluce 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 Jun 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jasondellaluce, mstemm

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 [jasondellaluce,mstemm]

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

@poiana
Copy link
Contributor

poiana commented Jun 23, 2022

LGTM label has been added.

Git tree hash: 801ddaf19bd65d91f38d8e3d655216a20845f8c7

@jasondellaluce
Copy link
Contributor

/milestone 0.32.1

@poiana poiana added this to the 0.32.1 milestone Jun 23, 2022
@poiana poiana merged commit 85ca1eb into master Jun 23, 2022
@poiana poiana deleted the fix-validate-cmdline-option branch June 23, 2022 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

--validate/-V option loads unrelated rules files (regression in 0.32.0)
4 participants