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.
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-botBot
added this to the Security Roadmap 3: Security monitoring and alerting milestone 2026-12-03 04:39:33 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
kube-prometheus-stack); provision rules and contact points as code (sidecar ConfigMaps or Grafana provisioning), not in the UIdocs/runbooks/security-alerts.md: per alert, what it means, how to check, what to do. Link via therunbook_urlannotationTools
Grafana Alerting, Loki, Prometheus, ntfy.
Done when
Portfolio evidence
Part of the security roadmap. Keep the evidence below for the write-up (README / blog post).