Skip to content

Export Audit Evidence

Caracal audit records provide decision evidence for STS, Gateway, Coordinator, policy evaluation, Control, and administrative activity. Treat audit as a protected evidence pipeline.

flowchart LR
  Producer[API, STS, Gateway, Coordinator, Control] --> Redis[caracal.audit.events]
  Redis --> Audit[Audit service]
  Audit --> PG[(audit_events)]
  Audit --> DLQ[caracal.audit.events.dlq]
  Audit --> Export[S3-compatible export]
  Export --> SIEM[SIEM or archive]

Audit events are HMAC-protected in published modes. Audit storage includes tamper checks and append-only permission validation.

NeedSurface
Search recent eventsConsole audit or Audit API search.
Trace one requestConsole request trace or API request ID lookup.
SIEM exportcaracal.audit.events consumer or Audit export path.
Evidence archivePostgres backup plus object-store export.
Tamper responseCaracalAuditTamperDetected alert and incident runbook.
  • Monitor Audit DLQ, consumer lag, tamper metrics, and export watermarks.
  • Preserve audit HMAC keys according to retention requirements.
  • Keep audit partitions and backup retention aligned with legal hold requirements.
  • Do not manually mutate audit_events; verification expects append-only behavior.
SymptomCheck
SIEM is missing eventsRedis group lag, export watermark, Audit readiness, and network egress.
DLQ has HMAC failuresProducer key mismatch or corrupted stream payload.
Request explanation missingConfirm request ID, zone, retention window, and that the protected request reached Caracal.

Use Hand Off to Platform Teams when deployment, recovery, audit, alerting, and ownership evidence are ready.