Commit Graph
5 Commits
Author SHA1 Message Date
maxime.killinger 0337eb3071 fix: use lowercase JSON keys matching CrowdSec's real alert schema
🚀 Docker Build and Push / build-and-push (push) Successful in 4m25s
CrowdSec's notification-http plugin serializes alerts with lowercase
keys (source/ip/cn/scenario), not the PascalCase (Source/IP/Cn/Scenario)
this code was reading. Every lookup silently fell through to its
default value, so every notification showed 'unknown' regardless of
the real IP, country or scenario. Confirmed by capturing a real payload.
2026-08-29 13:54:33 +02:00
maxime.killinger 842c8f71eb feat: add /alertmanager endpoint as Alertmanager -> Apprise bridge
🚀 Docker Build and Push / build-and-push (push) Successful in 3m30s
Reuses the same notification path as /crowdsec: formats the
Alertmanager webhook payload (firing/resolved, severity, instance,
summary/description) and forwards it to APPRISE_URL as {title, body}.
2026-08-28 22:05:30 +02:00
maxime.killinger a75c21a0bf feat: deduplicate CrowdSec alert scenarios per IP
🚀 Docker Build and Push / build-and-push (push) Successful in 2m18s
- Use a set to collect scenarios for each IP address to prevent duplicate entries (e.g., multiple 'http-probing' lists).
- Sort scenarios alphabetically for consistent notification output.
- Improve notification readability by grouping repetitive alerts.
2026-01-03 10:26:37 +01:00
maxime.killinger d180cb700c refactor: optimize docker, robust config & country handling
🚀 Docker Build and Push / build-and-push (push) Successful in 59s
- optimize(docker): use distroless/python3-debian12 & multi-stage build
- feat(app): replace Gunicorn with Waitress (pure python)
- feat(countries): replace static list with pycountry (dynamic & complete)
- feat(config): enforce mandatory APPRISE_URL (fatal if missing)
- feat(logging): add structured logging and graceful shutdown signal handling
- docs: update README with required env var and correct usage
2025-12-31 18:46:21 +01:00
maxime.killinger eef8c3835e 🎉 Initial commit: CrowdSec notification service
🚀 Docker Build and Push / build-and-push (push) Successful in 48s
2025-12-31 18:16:07 +01:00