Roadmap 3.4: Security alerting in Grafana with runbooks #90

Open
opened 2026-12-03 04:39:33 +01:00 by claude-bot · 0 comments

Why

Dashboards help only when someone is looking at them. Security-relevant events must produce a notification, and each alert needs a short runbook so the response is clear.

Enterprise practice: alerting as code, every alert linked to a runbook.

Depends on kasun/homelab-infrastructure-as-code#86, kasun/homelab-infrastructure-as-code#88 and kasun/homelab-infrastructure-as-code#89.

Steps

  • Use Grafana-managed alerting (Alertmanager is disabled in kube-prometheus-stack); provision rules and contact points as code (sidecar ConfigMaps or Grafana provisioning), not in the UI
  • Contact point: ntfy (with auth) or email
  • Alert rules:
    • OpenBao: more than N failed logins in 5 minutes (Loki)
    • OpenBao: root token used (Loki)
    • Running workload has a CRITICAL CVE with a fix available (Trivy Operator metric)
    • Kyverno: admission rejections or new policy violations (Kyverno metric)
    • pfSense: spike in blocked egress from the camera/IoT VLAN (Loki)
  • docs/runbooks/security-alerts.md: per alert, what it means, how to check, what to do. Link via the runbook_url annotation
  • Trigger each alert once on purpose to test it

Tools

Grafana Alerting, Loki, Prometheus, ntfy.

Done when

  • Every alert has fired at least once in a test and arrived on the phone, with a working runbook link

Portfolio evidence

  • Screenshot of a received alert
  • The runbook file
  • Short write-up: "attack → detection → response" for one alert

Part of the security roadmap. Keep the evidence below for the write-up (README / blog post).

## Why Dashboards help only when someone is looking at them. Security-relevant events must produce a notification, and each alert needs a short runbook so the response is clear. **Enterprise practice:** alerting as code, every alert linked to a runbook. Depends on kasun/homelab-infrastructure-as-code#86, kasun/homelab-infrastructure-as-code#88 and kasun/homelab-infrastructure-as-code#89. ## Steps - [ ] Use Grafana-managed alerting (Alertmanager is disabled in `kube-prometheus-stack`); provision rules and contact points as code (sidecar ConfigMaps or Grafana provisioning), not in the UI - [ ] Contact point: ntfy (with auth) or email - [ ] Alert rules: - [ ] OpenBao: more than N failed logins in 5 minutes (Loki) - [ ] OpenBao: root token used (Loki) - [ ] Running workload has a CRITICAL CVE with a fix available (Trivy Operator metric) - [ ] Kyverno: admission rejections or new policy violations (Kyverno metric) - [ ] pfSense: spike in blocked egress from the camera/IoT VLAN (Loki) - [ ] `docs/runbooks/security-alerts.md`: per alert, what it means, how to check, what to do. Link via the `runbook_url` annotation - [ ] Trigger each alert once on purpose to test it ## Tools Grafana Alerting, Loki, Prometheus, ntfy. ## Done when - Every alert has fired at least once in a test and arrived on the phone, with a working runbook link ## Portfolio evidence - [ ] Screenshot of a received alert - [ ] The runbook file - [ ] Short write-up: "attack → detection → response" for one alert --- _Part of the security roadmap. Keep the evidence below for the write-up (README / blog post)._
claude-bot Bot added this to the Security Roadmap 3: Security monitoring and alerting milestone 2026-12-03 04:39:33 +01:00
claude-bot Bot added the
Priority
Medium
3
Kind/Securitysecurity-roadmap
labels 2026-12-03 04:39:33 +01:00
claude-bot Bot added this to the Security Roadmap project 2026-12-03 04:39:38 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kasun/homelab-infrastructure-as-code#90