Search the audit trail
Every governed action produces an audit event: who, what, the policy decision and version, the credential mode, the upstream transport, latency/status, and a safe error category. Audit is metadata‑only by design — it never stores raw tool arguments or secret material — which is what makes it safe to search, export, and ship to a SIEM.
Search events
Section titled “Search events”Search the audit trail
- Open Investigate → Audit search.
- Filter by environment, actor, resource, decision, or time range.
- Open any row to see the full event detail, including the policy version that produced the decision.
curl -X POST "$GATEWAY/v1/audit/search" \
-H "authorization: Bearer $TOKEN" \
-H "content-type: application/json" \
--data '{
"environment_id": "prod",
"decision": "deny",
"time_range": "24h"
}'searchAudit in the API reference →gatewayctl search-audit --environment prod --decision deny --format jsonEvery gatewayctl verb accepts --format text|json.
Pull a single request bundle
Section titled “Pull a single request bundle”To investigate one request end‑to‑end, fetch its bundle by request_id — the chain of events the gateway recorded for that call.
Read the audit bundle for one request
- From a search result, open the event and choose View request bundle.
curl "$GATEWAY/v1/audit/requests/req_m1_002" \
-H "authorization: Bearer $TOKEN"getAuditRequestBundle in the API reference →gatewayctl search-audit --request-id req_m1_002 --format jsonEvery gatewayctl verb accepts --format text|json.
Type set in Geist, Source Serif 4, and Departure Mono.