What Xtrom watches
Alert conditions are evaluated every 5 minutes. Each one carries a severity and points to the console screen where you act on it.
| Condition | Raised when | Severity |
|---|---|---|
| Enforcement point stopped reporting | A gateway or SDK misses its heartbeat for more than 3 intervals (3 minutes at the default 60-second interval) | High |
| Enforcement point offline | The same instance has been silent for more than 24 hours. This escalates the same incident rather than opening a new one | Critical |
| Enforcement point reporting again | Heartbeats resume after a silence that was alerted on. Sent as an all-clear | Info |
| Policy drift | A live point is still enforcing an older policy 10 minutes after you published a new one | High |
| Connection stopped syncing | An AWS or GitHub connection’s sync is failing | High |
| Connection has not synced recently | A connected connector has had no successful sync for 2 hours (normal cadence is 5 minutes) | Medium |
| Connection syncing again | A failing connection recovers. Sent as an all-clear; activity during the gap is backfilled on the next sync | Info |
| Install token over its instance limit | More live instances than the token’s cap | High |
| Install token used from a new network | A token is used from a new source network after its first day | Medium |
| Install token expires within 7 days | The token has not been rotated yet | Medium |
Security detections, such as off-path agent activity and long-lived credential use, go through the same channels with their own severities. Each condition alerts once per occurrence, not on every evaluation.
Where you see health in the console
- Coverage → Enforcement: every gateway and SDK instance, whether it is live, stale or offline, its policy version, and drift.
- Connections: per-connector status, last sync, and a plain-language fix when something fails. Install tokens with their usage, networks and live instances.
- Settings → Notifications: your alert channels, with the result of the last delivery to each one.
Alert channels
Owners and admins can add up to 10 channels per workspace. Each one has a minimum severity (High by default).
| Channel | What you provide | What Xtrom sends |
|---|---|---|
| Slack | An incoming-webhook URL (https://hooks.slack.com/…) | A formatted message with severity, subject, next step and a console link |
| PagerDuty | An Events API v2 routing key | A trigger event, then a resolve event when the condition recovers |
| Webhook | Any public HTTPS endpoint | A signed JSON body (see below). The signing secret is shown once, when you create the channel |
Channel targets are treated as secrets: after creation the console shows only a masked hint. Webhook URLs must be HTTPS, cannot contain credentials, and must resolve to public addresses. Redirects are never followed. A failing channel never blocks delivery to your other channels.
Setting up a channel
- Open Settings → Notifications and choose Add channel.
- Pick Slack, PagerDuty or Webhook, give it a name, and paste the URL or routing key.
- Choose the minimum severity. Use High for an on-call pager and Medium or Info for a team channel.
- For webhooks, copy the signing secret now. It is not shown again.
- Select Send test (at most once every 30 seconds per channel) and confirm it arrived. The console records the result.
Recovery notices
When an alerted condition clears, Xtrom sends an all-clear to every channel that received the original alert, even if that channel’s minimum severity is higher than Info. In PagerDuty the incident resolves automatically. In webhooks the all-clear carries resolves, which matches the incident it closes.
Verifying webhooks
Each webhook request is a POST with these headers:
| Header | Value |
|---|---|
Content-Type | application/json |
User-Agent | Xtrom-Alerts/1 |
X-Xtrom-Event-Id | The alert id. Use it to ignore duplicates |
X-Xtrom-Signature | t=<unix seconds>,v1=<hex>, where v1 is HMAC-SHA256 of <t>.<raw body> keyed with your signing secret |
Example body:
{
"event": "alert",
"tenant": "demo",
"sent_at": "2026-10-08T14:05:00Z",
"alert": {
"id": "health:stale:gateway/gw-prod-1:2026-10-08T14:01:12Z",
"type": "health.mediator_stale",
"severity": "high",
"title": "Enforcement point stopped reporting",
"identity": "gateway/gw-prod-1",
"detail": "no heartbeat for 228s (expected every 60s); last seen 2026-10-08T14:01:12Z, ...",
"response": "check the gateway/agent host, its network path to Xtrom, and its token",
"ts": "2026-10-08T14:05:00Z",
"resolves": null
},
"console_url": "https://console.xtrom.ai/enforcement"
}
Verify against the raw body bytes before parsing, reject old timestamps, and compare in constant time. Xtrom waits 4 seconds for a response and reads only the HTTP status, so return a 2xx quickly and do any work asynchronously.
Python
import hashlib, hmac, time
TOLERANCE_S = 300
def verify(secret: str, header: str, body: bytes) -> bool:
"""header is the X-Xtrom-Signature value; body is the raw request body."""
try:
parts = dict(p.split("=", 1) for p in header.split(","))
ts, sig = int(parts["t"]), parts["v1"]
except (KeyError, ValueError):
return False
if abs(time.time() - ts) > TOLERANCE_S:
return False # too old: possible replay
expected = hmac.new(secret.encode(), f"{ts}.".encode() + body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, sig)
Node.js
import { createHmac, timingSafeEqual } from "node:crypto";
const TOLERANCE_S = 300;
// header: the X-Xtrom-Signature value; body: the raw request body as a Buffer
export function verify(secret, header, body) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=", 2)));
const ts = Number(parts.t);
if (!Number.isInteger(ts) || !parts.v1) return false;
if (Math.abs(Date.now() / 1000 - ts) > TOLERANCE_S) return false; // possible replay
const expected = createHmac("sha256", secret)
.update(Buffer.concat([Buffer.from(ts + "."), body]))
.digest("hex");
const a = Buffer.from(expected), b = Buffer.from(parts.v1);
return a.length === b.length && timingSafeEqual(a, b);
}
If the control plane is unreachable
Enforcement does not depend on the control plane at request time. Gateways and SDKs keep enforcing their last verified policy, then fail closed once it is older than the max-stale limit. When they reconnect, heartbeats and decision reporting resume, and Xtrom sends an all-clear for any open “stopped reporting” incident.
Questions about this guide: hello@xtrom.ai. Security reports: security@xtrom.ai.