You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/sentry/configuration.mdx
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,10 +128,16 @@ For committed samples, prefer environment substitution in the host application o
128
128
129
129
## Fail Mode
130
130
131
-
Sentry defaults to fail-open. If L1 escalates and no deeper tier resolves the event, the event is allowed. The same posture applies when a slow tier overloads the queue.
131
+
Sentry defaults to fail-open. If L1 escalates and no deeper tier resolves the event, the event is allowed. Complete-evidence escalations rejected by a full worker queue use the same posture.
132
132
133
133
Fail-closed changes unresolved escalation and overload degradation into blocks. Use it for safety-first workloads only when L2/L3 capacity and the operational blast radius are understood.
134
134
135
+
Incomplete `ToolExec` evidence is deliberately different. A dangerous captured
136
+
prefix can still block, but an ambiguous truncated or incompletely reassembled
137
+
command remains an L1 escalation in both fail modes. The bundled daemon audits
138
+
the unresolved result, including during worker overload; durable external L3
139
+
dispatch belongs to a staged SDK consumer.
140
+
135
141
## Deny Sinks
136
142
137
143
Deny files are append-only operational state. Sentry writes egress, file, and exec targets; Observer guards enforce them. Missing deny sinks are valid when the process is used only for judgment or dry-run analysis.
@@ -145,4 +151,7 @@ Exec deny is path-oriented. A deny action on a bare binary name may not map to a
145
151
-`GET /metrics` with counters for judged events, blocks, overload degradation, and enforce failures.
146
152
-`GET /healthz` with `200 ok` while the daemon is alive.
147
153
148
-
Alert on `sentry_overload_degraded_total` and `sentry_enforce_failed_total`; both indicate that an intended block may not have landed.
154
+
Alert on `sentry_overload_degraded_total` and `sentry_enforce_failed_total`.
155
+
The first counts escalations rejected by the full worker queue:
156
+
complete-evidence events use the fail mode, while incomplete command evidence
157
+
remains unresolved. The second means a deny-file write failed.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/sentry/deployment-runbook.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ Page on rising values for:
56
56
57
57
| Metric | Why it matters | First response |
58
58
| --- | --- | --- |
59
-
|`sentry_overload_degraded_total`| Escalations fell through to the fail mode because the worker queue was full. | Increase workers or queue, reduce escalation volume, tune the slow tier, or choose fail-closed deliberately. |
59
+
|`sentry_overload_degraded_total`| Escalations were rejected by the full worker queue. Complete evidence uses the fail mode; incomplete command evidence remains unresolved. | Increase workers or queue, reduce escalation volume, tune the slow tier, or choose fail-closed deliberately for complete-evidence overflow. |
60
60
|`sentry_enforce_failed_total`| A block wanted to write a deny file and failed. | Check volume space, mount mode, file permissions, and configured paths. |
61
61
62
62
Use `sentry_events_total` and `sentry_blocked_total` for traffic and block-ratio trends. `/healthz` only says the daemon is alive; it does not prove that every deny landed.
@@ -73,7 +73,10 @@ Tune:
73
73
-`A3S_SENTRY_AGENT_TIMEOUT` for the L3 A3S Code investigation.
74
74
-`A3S_SENTRY_SPECULATE` for high-severity events where parallel L2/L3 is worth the extra cost.
75
75
76
-
If overload rises, the deployment is under-provisioned for the current event mix or the deeper tier is too slow for the escalation rate.
76
+
If overload rises, the deployment is under-provisioned for the current event
77
+
mix or the deeper tier is too slow for the escalation rate. Complete-evidence
78
+
events resolve through the fail mode; incomplete `ToolExec` evidence remains an
79
+
audited L1 escalation.
77
80
78
81
## L2 Or L3 Outage
79
82
@@ -97,5 +100,6 @@ Observer guards can continue enforcing existing deny files while Sentry restarts
97
100
98
101
- Observer-event Sentry is reactive. It can block the next matching action, not necessarily the action that produced the event.
99
102
- Inline Gateway inspection is the pre-forward path for LLM/MCP traffic that is routed through the proxy.
103
+
- The bundled daemon audits incomplete-evidence escalations but does not provide a durable external L3 queue; staged SDK consumers must own persistence and dispatch.
100
104
- Denies are coarse and node-local: an IP or executable-path block can affect other workloads on the same node.
101
105
- L2 and L3 process attacker-influenced content. Keep deterministic L1 and kernel guard enforcement as the floor.
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/sentry/operations.mdx
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,14 @@ most important counters to alert on are:
29
29
30
30
| Metric | Meaning |
31
31
| --- | --- |
32
-
|`sentry_overload_degraded_total`| An escalation could not be processed and fell through to the configured fail mode. |
32
+
|`sentry_overload_degraded_total`| An escalation was rejected by the full worker queue. Complete evidence uses the fail mode; incomplete command evidence remains unresolved. |
33
33
|`sentry_enforce_failed_total`| A decision wanted to enforce, but writing the deny record failed. |
34
34
|`sentry_blocked_total`| Blocks by tier and event family. |
35
35
|`sentry_events_total`| Total events judged. |
36
36
37
-
In fail-open deployments, overload degradation or enforce failure means a block
38
-
may not have landed.
37
+
Any non-zero overload rate means the worker pool is under-provisioned. In
38
+
fail-open deployments, a complete-evidence overflow or enforce failure means a
39
+
block may not have landed.
39
40
40
41
## Queue And Timeout Tuning
41
42
@@ -47,10 +48,17 @@ L2 and L3 run in worker pools away from the ingest thread. Tune:
47
48
- L3 timeout for deeper A3S Code investigation.
48
49
- Speculation threshold when high-severity events deserve L2/L3 in parallel.
49
50
51
+
Complete-evidence queue overflow resolves through the configured fail mode.
52
+
Incomplete `ToolExec` evidence remains an audited L1 escalation, even during
53
+
overload.
54
+
50
55
## Boundaries
51
56
52
57
- Observer-event Sentry is reactive; it may block the next action rather than the
53
58
action that produced the event.
59
+
- The bundled daemon audits incomplete-evidence escalations but does not provide
60
+
a durable external L3 queue. A staged SDK consumer must persist and dispatch
61
+
them when deeper work is required.
54
62
- Denies can be coarse: binary path and IP-based enforcement may affect more
55
63
than one process on the same node.
56
64
- L2/L3 read attacker-influenced content. The deterministic L1 floor and
0 commit comments