feat: webhook alerts for surface changes and Prometheus /metrics
[[webhook]] receivers get each ingested sweep's changes, filtered by kind and group, as Xexéu JSON or a Slack/Discord message, optionally signed with HMAC-SHA256 from an environment variable. Delivery runs in the background with retries and never blocks ingestion. GET /api/config and the logs show webhook URLs as scheme://host/… because chat webhook URLs are credentials. /metrics exposes hosts, ports, findings by severity, feed state, per-group last sweep and webhook delivery counters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b6e0d4a3f
commit
cd1f3d0e8c
17 files changed
+1158
-7
No files matched your search
@@ -18,6 +18,7 @@ axum = "0.8"
|
||||
chrono = { version = "0.4", features = ["clock"] }
|
||||
clap = { version = "4", features = ["derive", "env"] }
|
||||
libc = "0.2"
|
||||
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
serde_json = "1"
|
||||
tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal", "time", "sync"] }
|
||||
|
||||
Reference in new issue
Block a user