DOCS
Incident alerts
Balerx Gate alerts explain what happened, why it matters, and what to do now in at most three steps. Every Monitor, Guard, and Fleet rule links to its response guide. Agent, service, host, environment, pod, cluster, region, end-user and session appear when recorded. Fleet uses the reported hostname; absent cloud attributes are omitted. Set a responsible team and optional runbook in Settings so the next responder knows where to start.
HTTPS webhooks are available on every current plan (Free, Pro, and Team). Plan limits cover seats, machines, and monthly events; they do not gate notification destinations. Slack incoming webhooks work through this same HTTPS destination. A native Slack app, Microsoft Teams, Jira, PagerDuty, and SIEM export are not available yet.
Set up a webhook
- Ask your administrator to configure notification encryption on both API and worker services, following the deployment guide. No alerts are sent by default.
- Open Settings → Incident notifications as an owner or administrator. Paste an approved Slack incoming webhook or compatible HTTPS receiver. Choose the minimum severity, responsible team, and optional HTTPS runbook.
- Enable and save. Only subsequent findings can enqueue alerts; enabling delivery does not replay historical incidents. The destination is a secret and is never shown again. Leave its field blank to keep it when editing settings.
The endpoint must use public HTTPS on port 443. Private, loopback, link-local and reserved addresses, redirects, URL credentials, and fragments are rejected. This prevents using the worker to contact internal services. Test only against a controlled local lab using the repository's injected test sender; there is no production switch that permits private destinations.
Delivery and repeats
Each project has one destination and a minimum severity: low, medium, high, or critical. Repeated findings update their incident without sending another alert. A strictly higher severity at or above the threshold can send another. Resolving and reopening an incident does not reset this history. A finding below the threshold does not reserve a notification.
The worker checks the durable outbox every minute and at startup. It retries transient failures up to five attempts with delays of 10, 20, 40, and 60 seconds (plus the sweep interval). Recent states and sanitized failure codes appear in Settings. Owner, runbook and threshold edits preserve queued deliveries. Only changing the destination or disabling alerts cancels pending deliveries from the old configuration. A request already in flight may still arrive; disabling cannot recall it. Cancelled claims are released so a subsequent qualifying finding can alert again after re-enabling or changing the destination; completed and permanently failed deliveries retain their dedup history.
The outbox deduplicates notification creation and concurrent claims. Each HTTP attempt includes a stable Idempotency-Key. A receiver that supports this key can suppress duplicates after an ambiguous network failure. Slack incoming webhooks do not promise idempotency: a lost response after acceptance can cause a retry to appear twice. Exactly-once HTTP delivery is not promised.
Reading an alert
Webhook text includes the same title, what/why/next steps, owner, identity, rule, tool, runbook and dashboard link as the incident summary. Slack blocks use plain text; links and user-provided values cannot create mentions. The fallback text preserves the dashboard link for other receivers. Payloads omit raw tool arguments, prompts and captured content. With content capture off, Guard summaries show only a plain filesystem path; command text (including command-like resource fields) is omitted. Commands appear only when the endpoint evidence explicitly records content capture enabled. Displayed resources and commands also redact remaining credential forms for alert display (uppercase KEY/SECRET/TOKEN/PASS environment assignments, mysql -p, curl user flags, --password, and JSON secret fields) before shortening to 160 characters. Authorization Bearer/Basic and URL userinfo are already replaced in stored activity. Alert-only redaction does not change stored evidence or detection.
Markdown exports are capped at 20 KB. The timeline shows up to ten repeated-event groups, with relative times and repeat counts. Technical JSON is collapsed and capped. Argument keys and sizes help identify the call. Raw argument values and argument hashes are omitted when content capture is off. Incident detail shows at most 20 findings, ten evidence spans per finding, 100 trace spans, and 50 recent activity entries. Stored evidence is unchanged; open the related run or span for further investigation.
Incident lists load 50 slim records at a time. Load older incidents fetches another page; search, filters and counts apply to loaded records. Workspace search covers the 50 most recent incidents. Overview counts still come from the aggregate endpoint.
Email alerts are tracked in issue #189 and remain unavailable: this repository has no configured email delivery provider. This version supports the project webhook; it does not configure a mail provider or send mail.
