DOCS
Monitor trust model
This page states only behavior covered by tests in the Balerx Gate repository.
What the server checks
A valid ingest key is bound to one project. It is not bound to an agent, host, or region. The key must also have the scope for that route (ingest:traces, scan:upload, policy:read, or activity:write). A valid key missing the scope returns HTTP 403 with a scope field. An unknown key still returns HTTP 401.
Span start times must fall in a window around server receive time:
- Older than 7 days: rejected. Not stored. Not counted.
- More than 10 minutes in the future: rejected. Not stored. Not counted.
- Missing start time: treated as the time the server received the request.
- Unparseable mapped start time on a direct persist call: rejected as invalid. Not stored. Not counted. OTLP ingest maps unparseable start times to receive time instead.
Rejected spans are listed in the HTTP 202 body (rejected, rejectedTooOld, rejectedTooFuture, rejectedInvalid, and OTLP partialSuccess on JSON responses). Same-id replays are listed as duplicates and are not stored again. They are not silently dropped.
Monthly event quota counts persisted OTLP spans, Guard activity events, and endpoint-scan uploads. The quota uses the UTC receive date, not the timestamp the client put on the event and not the database session timezone. A span started three days ago still counts today. HTTP 402 bodies and the Usage page include used, limit, percent, and the next UTC month reset. The Usage page also shows a per-machine breakdown that adds up to the pool.
Accepted spans keep the client start and end times for the run timeline. A child span that arrives later but ended earlier does not move the run's end time backward; duration stays from the run start to the latest end. Retention and any future storage partitions use server receive time. The daily purge also removes endpoint scans, fleet snapshots, findings, reports, usage rows, and resolved incidents older than the project's retention days (resolved/dismissed incidents start that window at resolve/dismiss time) when BALERX_PURGE_ENABLED is on; otherwise it only logs counts. When plan-limit enforcement is on, that window is the plan history (Free 14 / Pro 90 / Team 90). Open incidents stay. A resolved incident or stale machine is not deleted while newer activity, deliveries, or snapshots still fall inside the window. Expired sessions, one-time sign-in or password-reset rows, and organization invites are removed after they expire or are used. Audit events older than the organization's longest project window are removed. Billing events older than seven years are removed.
Same span id in the same project is ignored (dedupe). That replay is not stored and does not count toward usage or quota. That is the only replay check.
The Usage page Runs total (usage_daily.run_count) counts ingest batches that stored at least one span for a trace, not distinct traces. A follow-up batch that only adds child spans still increments it. The ingest 202 runs field is the number of distinct traces stored from that request.
What the server does not check
These are not detections. A client with a valid key can:
- Send any
gen_ai.agent.nameorservice.name. The dashboard shows that string. - Send any
host.name, Kubernetes, or region attributes. - Send
gen_ai.usage.costof0while also sending token counts. Cost is stored as reported. - Send the same body again with new span ids. Those rows count again.
- Leave tool spans out. Monitor does not invent tool calls.
Content capture drops prompt and tool-argument attributes unless it is on. Redaction still runs when it is on. Settings warns while it is on. Redaction can miss a secret.
Per-agent keys and a server-side cost estimate are not part of this release. See Ingest keys for scopes on project keys.
