Skip to content

Security audit (WORM)

The security audit is the second observability plane in your workspace. Operational telemetry tells your platform team how the platform is running; the security audit records who did what, when, and with what outcome, in a form a later edit cannot rewrite. Each workspace has its own ImmuDB ledger, and that ledger is WORM storage: write once, read many. New records append, and existing entries are not updated or removed through any application path.

This page covers what the ledger records, how it sits next to the operational search plane, and how your platform team watches it. For the architecture behind it, the producer map, and workspace isolation, see Immutable audit trail.

How a security event becomes audit evidenceA security event from identity, admin, cluster audit, or AI activity is normalised to one schema and redacted, then appended to the ImmuDB ledger, which is write once, read many. The ledger is mirrored into Grafana and Loki for search. Every night an integrity scan proves the ledger chain, writes a manifest and scan log as evidence, optionally to an Object Lock bucket, and raises an alert when the proof fails.EMITAPPENDMIRRORNIGHTLYWRITESON FAILURESOURCESecurity eventidentity, admin, cluster, AISHAPENormalise and redactone schema, secrets removedWORMAppend to ledgerImmuDB, write once read manySEARCHSearch mirrorGrafana and Loki, own retentionVERIFYIntegrity scanproves the chain, dailyPROOFEvidence filesmanifest, log, Object LockALERTFailure alertGrafana rule to your channel

One record: emitted, normalised and redacted, appended to the ledger, mirrored for search, and proven every night.

Application components emit events; one audit ingest service per workspace normalises them, redacts them, and appends them to ImmuDB. Nothing else writes to the ledger.

Loki may mirror the same events so your operators can search them in Grafana next to operational logs. The two planes have different roles. ImmuDB is the system of record for diligence and evidence. Loki is a search plane with its own retention: when Loki expires or compacts an index, the ledger still holds the record. See Data retention and Operational telemetry.

Every record shares one normalised schema: workspace, timestamp, actor, action, resource, outcome, and correlation id. Sensitive material is redacted before storage: there are no API keys, bearer tokens, or full JSON Web Token bodies in the ledger. When the resource carries a JSON payload, the audit ingest service also redacts nested keys such as authorization, password, token, and any key ending in _token or _secret, before the append and before the Loki mirror.

Category Examples Source
Identity and access Sign-in, MFA, role and provisioning changes Zitadel event feed, polled every minute
Platform and cluster Failed authentication, secret access, privileged API calls Kubernetes API audit log
Security alerting Alert fired or resolved on Kubernetes audit events Bundled Grafana alert rules; each alert transition appends one evidence record
Application, admin, and agents RBAC, BYOK, admin configuration, workflow saves, runs, agent actions Flow activities

Identity events from Zitadel (sign-in, MFA, federation, deprovisioning) reach the ledger without any configuration in Flow.

If an append to the ledger fails, the ingest path returns an error rather than dropping the event. Your platform team watches the audit ingest service and ImmuDB health as part of platform operations.

Each workspace runs a daily integrity scan at 03:00 UTC:

  1. Scan: a cryptographic consistency proof against the full ledger.
  2. Evidence: the audit ingest service writes a JSON manifest and the raw scan log to the workspace evidence volume, uploads both to an S3 Object Lock bucket when your platform team declares one under wormAudit.s3 in fontana.yaml, and posts a structured log to platform Loki.
Artifact Location Purpose
Scan log Evidence volume Raw scan output for auditors
Manifest JSON Evidence volume Workspace, outcome, SHA-256 of the log, S3 keys, and whether the log reached Loki
Scan outcome log Loki, service fontana-worm-integrity-scan Operator search, the WORM audit dashboard, and the alert rule

Alerting: every scan posts a success or failure log to platform Loki. The WORM audit dashboard in Grafana shows recent scan outcomes. A provisioned alert rule notifies the Slack channel you name under platform.observability.alerting.slackChannel when a scan fails. See Operational telemetry.

If the scan fails, or the evidence cannot reach Loki or the Object Lock bucket, the job exits with an error so your platform team investigates before the next run.

Operators and auditors also use:

  • Grafana for interactive search during incidents: the security audit mirror is the service fontana-worm-audit
  • Ledger verification through your platform team’s break-glass procedure when log search is not enough

Read-only auditor access is provisioned separately from the writer credential the audit ingest service uses.