Skip to main content

Centralized Audit Log Ingestion

audit-ingest.svc · System Design v1 · 2026 · Go (Gin) · Zitadel M2M · BigQuery · interactive original ↗

A single, authenticated HTTP API that any system can stream audit events to — validated, enriched, and durably written to BigQuery for search, compliance, and forensics.

Stack: Go · Gin · Zitadel · M2M OAuth2 · Google BigQuery · JWT · JWKS

Design principles

Principle
01WRITE-ONLYClients can append events but never read or mutate. Tamper-evident by design.
02SCHEMA-FIRSTOne canonical event envelope; source-specific data lives in a typed JSON column.
03M2M ONLYEvery producer is a Zitadel service account. No human credentials touch the API.
04IDEMPOTENTDedup on event_id so retries never double-write.