Skip to content

Ingest Audit Evidence

Audit consumes signed events from Redis, verifies them, writes append-only evidence to Postgres, manages failed delivery, and exposes operator search and metrics on local port 9090.

Human operators use the console Audit workspace. Zone-scoped automation uses the API service’s documented audit routes. The Audit service’s direct search and DLQ routes are operator endpoints protected by AUDIT_ADMIN_TOKEN; when that token is not configured, they return 404.

RoutePurpose
GET /health, /readyLiveness and dependency/lag readiness
GET /metrics, /metrics.jsonAuthorized monitoring
GET /api/audit/searchDirect operator search
GET /api/audit/dlq, /api/audit/dlq/{id}Inspect failed events
POST /api/audit/dlq/replayRetry selected failed evidence

Do not send application audit records to these routes. Caracal services publish the signed event contract. Service environment variables are cataloged in Configure Service Environment.

Audit consumes caracal.audit.events in the audit-ingestor group. It drains its pending entries, claims orphaned work, retries failures, and moves events beyond the delivery limit to the DLQ. STS and Gateway replay volumes preserve events that could not reach Redis at emission time.

AUDIT_HMAC_KEY verifies producer signatures in published modes. Content-hash mismatch, chain breaks, and HMAC failures are security signals, not retryable formatting issues. The database role cannot update or delete evidence rows.

Readiness considers DLQ size, consumer lag, and oldest pending-entry age. A healthy HTTP process can therefore be not ready because evidence is no longer being retained within the configured operating bounds.

  1. Check Audit readiness and metrics.
  2. Check Redis connectivity, lag, pending entries, and replay volume growth.
  3. Inspect DLQ detail before replaying.
  4. Treat integrity failures as incidents; do not replay tampered payloads as trusted evidence.
  5. Confirm recovery with a fresh protected request and console decision trace.

Use Audit and Request Traces for evidence semantics and Configure Alerts for thresholds.

Automate Management when a trusted remote client needs product-management automation.