Rivergate

Audit log

A durable, tamper-evident record of every security-relevant action — kept separate from operational telemetry, and in the path of every secret read.

What is recorded

Each event carries a schema version, event ID, organization, actor and actor type, action, stable resource identifier, outcome, UTC timestamp, request or correlation ID and a small allowlist of source fields. Never secret values, passwords, private keys, raw tokens or request and response bodies.

Fail-closed reads

Rivergate does not return a secret value until the matching success event is durably committed in PostgreSQL.

  1. The caller is authorized and the value is decrypted into memory.
  2. The audit gate appends the read event and commits it.
  3. Only then is the value released to the response.

If the commit fails, the value is cleared on a best-effort basis and the request fails with 503 service_unavailable. There is no degraded mode, bypass flag, environment override or administrator exception. A database outage therefore makes secret reads unavailable rather than unaudited.

Business mutations and their audit event are committed in the same PostgreSQL transaction, so a change cannot exist without its record.

Hash chain

Each organization has one ordered chain.

Verification checks contiguous sequence numbers, hash links, canonical fields, event hashes and the stored head in one repeatable-read snapshot.

Signed checkpoints

A hash chain alone is not immutability: a privileged database owner could rewrite it consistently. Checkpoints add independent evidence.

Keep checkpoints outside the database

To detect rewriting or truncation of history, retain the signer’s public keys and copies of signed checkpoints somewhere independent of Rivergate’s PostgreSQL. Rivergate does not export checkpoints or provide WORM retention itself; use your own immutable storage.

Reading the audit log

Operating the audit log

Audit versus telemetry

The audit log and observability are separate data paths. Telemetry exporters never carry audit data and cannot influence audit durability. A telemetry outage never blocks a read; an audit outage always does.