Stacked on #2: base feat/robustez. After #2 is merged, retarget it to main.
What
[[webhook]]: each ingested sweep sends its surface changes, filtered by event kind and group, as Xexéu JSON or as a Slack/Discord message. Optional HMAC-SHA256 signature (X-Xexeu-Signature, key from the variable named in segredo_env, never stored in the file). Delivery runs in the background with retries on network errors, 5xx and 429, so ingestion never blocks. config check validates the URL, events, groups and variable name.
GET /metrics (Prometheus): hosts by status, open ports, findings by severity and KEV, CVE database and last sync, last sweep per group (time, duration, completeness, events), and webhook deliveries.
Security:GET /api/config and the logs show webhook URLs as scheme://host/…, because chat webhook URLs are credentials and reads are open.
Version: 1.2.0, with CHANGELOG, ROADMAP, README, configuration and CLI docs, the example config, compose and .env.example.
Verified
scripts/check.sh --full passes.
New e2e test (alerts_metrics_e2e), driving a real serve and scan:
a local receiver gets the POST with only the subscribed events and a valid signature;
a webhook pointing at a closed port is retried and counted as a failure;
/metrics reflects the sweep;
/api/config does not leak the URL path.
Unit tests:
filtering by event kind and group;
all three body formats and long-message truncation for Discord;
**Stacked on #2**: base `feat/robustez`. After #2 is merged, retarget it to `main`.
## What
- **`[[webhook]]`:** each ingested sweep sends its surface changes, filtered by event kind and group, as Xexéu JSON or as a Slack/Discord message. Optional HMAC-SHA256 signature (`X-Xexeu-Signature`, key from the variable named in `segredo_env`, never stored in the file). Delivery runs in the background with retries on network errors, 5xx and 429, so ingestion never blocks. `config check` validates the URL, events, groups and variable name.
- **`GET /metrics`** (Prometheus): hosts by status, open ports, findings by severity and KEV, CVE database and last sync, last sweep per group (time, duration, completeness, events), and webhook deliveries.
- **Security:** `GET /api/config` and the logs show webhook URLs as `scheme://host/…`, because chat webhook URLs are credentials and reads are open.
- **Version:** 1.2.0, with CHANGELOG, ROADMAP, README, configuration and CLI docs, the example config, compose and `.env.example`.
## Verified
- `scripts/check.sh --full` passes.
- New e2e test (`alerts_metrics_e2e`), driving a real `serve` and `scan`:
- a local receiver gets the POST with only the subscribed events and a valid signature;
- a webhook pointing at a closed port is retried and counted as a failure;
- `/metrics` reflects the sweep;
- `/api/config` does not leak the URL path.
- Unit tests:
- filtering by event kind and group;
- all three body formats and long-message truncation for Discord;
- the HMAC against the RFC 4231 test vector;
- webhook validation and redaction.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
lucasrguerra
changed target branch from feat/robustez to main2026-11-03 14:38:22 +00:00
[[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>
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.
Stacked on #2: base
feat/robustez. After #2 is merged, retarget it tomain.What
[[webhook]]: each ingested sweep sends its surface changes, filtered by event kind and group, as Xexéu JSON or as a Slack/Discord message. Optional HMAC-SHA256 signature (X-Xexeu-Signature, key from the variable named insegredo_env, never stored in the file). Delivery runs in the background with retries on network errors, 5xx and 429, so ingestion never blocks.config checkvalidates the URL, events, groups and variable name.GET /metrics(Prometheus): hosts by status, open ports, findings by severity and KEV, CVE database and last sync, last sweep per group (time, duration, completeness, events), and webhook deliveries.GET /api/configand the logs show webhook URLs asscheme://host/…, because chat webhook URLs are credentials and reads are open..env.example.Verified
scripts/check.sh --fullpasses.alerts_metrics_e2e), driving a realserveandscan:/metricsreflects the sweep;/api/configdoes not leak the URL path.🤖 Generated with Claude Code