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

cleanup(rules): cleanup rules disabled by default - 2 #2166

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

incertum
Copy link
Contributor

Signed-off-by: Melissa Kilby [email protected]

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

/kind release

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

/area CI

What this PR does / why we need it:

Be consistent with explicitly tagging rules that are disabled by default with enabled: false. See #2154. Used few bash one liners this time to more reliably spot remaining and (never_true) conditions.

cat rules/falco_rules.yaml | grep "condition: (never_true)" -B1 | grep macro | sed 's/^.*[: ]//' > /tmp/never_true_macros.txt

while read -r line; do CHECK=$(cat rules/falco_rules.yaml | grep "and $line"); if [[ ! -z $CHECK ]]; then echo $CHECK; fi; done < /tmp/never_true_macros.txt

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

rule(Interpreted procs outbound network activity)!: disabled by default
rule(Interpreted procs inbound network activity)!: disabled by default
rule(Contact cloud metadata service from container)!: disabled by default
rule(macro: consider_interpreted_outbound)!: remove unused macro
rule(macro: consider_interpreted_inbound)!: remove unused macro
rule(macro: consider_metadata_access)!: remove unused macro

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 Aug 17, 2022

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@poiana
Copy link
Contributor

poiana commented Aug 17, 2022

LGTM label has been added.

Git tree hash: 04580f0ed5ca433915ee16b173b98367a4f10603

@poiana poiana merged commit 0828296 into falcosecurity:master Aug 17, 2022
@jasondellaluce
Copy link
Contributor

/milestone 0.33.0

@poiana poiana added this to the 0.33.0 milestone Aug 26, 2022
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.

4 participants