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

Additional configuration for Falco default rules on Alertmanager #493

Closed
HuyDo-95g opened this issue May 31, 2023 · 4 comments
Closed

Additional configuration for Falco default rules on Alertmanager #493

HuyDo-95g opened this issue May 31, 2023 · 4 comments
Labels
kind/feature New feature or request

Comments

@HuyDo-95g
Copy link

Motivation

Falco default rules are good but can't be modified individually.

Feature

I think it would make sense to allow user to modify an individual Falco default rule that are send to Alertmanager to match with user's usage or business without have to replace the whole list of default rule to user's customized rules.
For example:

  • change "priority: Critical" to "severity: Critical"
  • Add additional description for different rule.

Alternatives

At the moment user only could add an extra label or extra annotation to the whole list of default rule but not an individual one.

Additional context

@HuyDo-95g HuyDo-95g added the kind/feature New feature or request label May 31, 2023
@Issif
Copy link
Member

Issif commented May 31, 2023

Hi,

For the mapping between severity and priority, there's already the PR #440 for that.
For your second point, I don't understand your usage. If you want different format for the alerts, you have to change the output field in falco's rules.

@HuyDo-95g
Copy link
Author

Hi @Issif,
Thanks for your quick response.
Does any falcosecurity chart support to change the falco's rules output? And is it possible to change the output of individual rule?

@Issif
Copy link
Member

Issif commented Jun 1, 2023

You can override the default rules like you want yes: https://falco.org/docs/rules/appending/#rewriting-rules

An example for the values:

customRules:
  override-k8saudit.yaml: |-
    - list: allowed_k8s_users
      append: true
      items: [eks:cloud-controller-manager, eks:vpc-resource-controller, eks:az-poller]
    - macro: live_endpoint
      append: true
      condition: or ka.uri="/readyz?exclude=kms-provider-0" or ka.uri="/livez?exclude=kms-provider-0"

This appends items to existing macro and list, but without the append: true, you can replace the whole content.

@Issif
Copy link
Member

Issif commented Aug 27, 2023

The release 2.29.0 fixed this issue.

@Issif Issif closed this as completed Aug 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants