Skip to content

Config: Updated falco alerts#2636

Open
MalinNordqvist wants to merge 2 commits intomainfrom
malin-test-alerts-v2
Open

Config: Updated falco alerts#2636
MalinNordqvist wants to merge 2 commits intomainfrom
malin-test-alerts-v2

Conversation

@MalinNordqvist
Copy link
Copy Markdown

Warning

This is a public repository, ensure not to disclose:

  • personal data beyond what is necessary for interacting with this pull request, nor
  • business confidential information, such as customer names.

What kind of PR is this?

Required: Mark one of the following that is applicable:

  • kind/feature
  • kind/improvement
  • kind/deprecation
  • kind/documentation
  • kind/clean-up
  • kind/bug
  • kind/other

Optional: Mark one or more of the following that are applicable:

Important

Breaking changes should be marked kind/admin-change or kind/dev-change depending on type
Critical security fixes should be marked with kind/security

  • kind/admin-change
  • kind/dev-change
  • kind/security
  • [kind/adr](set-me)

What does this PR do / why do we need this PR?

These changes enable Falco rule priorities to be mapped to severity levels, which are then translated into P1, P2 etc., in OpsGenie. This is done by creating alerts based on Falco rule priority and assigning a severity label with the corresponding value. Any additional priorities introduced in the future will need to follow the same configuration, with matching alerts and severity levels.

One suggestion has been to explore using Falcosidekick directly with Alertmanager. If this solution is adopted, manual priority-to-severity mapping would no longer be necessary, as priorities can then be mapped to severities using the customseveritymap.

  • Fixes #

Information to reviewers

Checklist

  • Proper commit message prefix on all commits
  • Change checks:
    • The change is transparent
    • The change is disruptive
    • The change requires no migration steps
    • The change requires migration steps
    • The change updates CRDs
    • The change updates the config and the schema
  • Documentation checks:
  • Metrics checks:
    • The metrics are still exposed and present in Grafana after the change
    • The metrics names didn't change (Grafana dashboards and Prometheus alerts required no updates)
    • The metrics names did change (Grafana dashboards and Prometheus alerts required an update)
  • Logs checks:
    • The logs do not show any errors after the change
  • PodSecurityPolicy checks:
    • Any changed Pod is covered by Kubernetes Pod Security Standards
    • Any changed Pod is covered by Gatekeeper Pod Security Policies
    • The change does not cause any Pods to be blocked by Pod Security Standards or Policies
  • NetworkPolicy checks:
    • Any changed Pod is covered by Network Policies
    • The change does not cause any dropped packets in the NetworkPolicy Dashboard
  • Audit checks:
    • The change does not cause any unnecessary Kubernetes audit events
    • The change requires changes to Kubernetes audit policy
  • Falco checks:
    • The change does not cause any alerts to be generated by Falco
  • Bug checks:
    • The bug fix is covered by regression tests

@MalinNordqvist MalinNordqvist requested a review from a team as a code owner July 31, 2025 14:05
@MalinNordqvist MalinNordqvist requested review from Pavan-Gunda and rarescosma and removed request for a team July 31, 2025 14:06
@shafi-elastisys
Copy link
Copy Markdown
Contributor

A small improvement all alert having same name FalcoAlert if multiple are firing simultaneously they might override each other. Probably we add some priority to the alert name to be different.

@Pavan-Gunda Pavan-Gunda requested a review from viktor-f September 4, 2025 13:28
@viktor-f viktor-f self-assigned this Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants