Retention, storage and audit anchors

How long data is kept, how to check storage, and how to anchor the audit chain off host.

Verified against v1.0.0-rc.1 · sources

On this page

Retention#

DataKept for
EventsHot tier for DRILLO_HOT_DAYS (default 1), then the cold volume until DRILLO_RETENTION_DAYS (default 30)
Incident contextDRILLO_RETENTION_DAYS
Alert events400 days
MCP audit400 days
Ingest stats90 days

drillo migrate reads the two environment variables and requires plain integers with 1 <= DRILLO_HOT_DAYS <= DRILLO_RETENTION_DAYS. Check the current state with GET /api/v1/storage/status (needs the storage permission).

Audit anchors#

The audit log is tamper-evident back to the latest off-host anchor. It is not tamper-proof.

  • drillo audit-anchor --key <sk-file> --out <dir> writes one signed anchor file chained to the previous one. Exit code 3 with status: head_mismatch means the two stores disagree.
  • drillo audit-verify --anchors <dir> --pubkey <pin> recomputes the chain and checks every anchor. Exit 1 on failure.
  • drillo evidence-export ... [--anchor-dir <dir>] records the audit head and can write an anchor first.

Operate it like this:

  1. Generate a dedicated key with drillo keygen --out P on an operator machine, never on the API host. Pin P.pub.
  2. Run audit-anchor hourly as a user other than the API user. The cadence is your exposure window.
  3. Copy the anchor directory off host. The installer does not do this.
  4. A stolen key lets an attacker forge history and anchors. Deleting the newest anchor is detectable only against an off-host copy.

The MCP audit chain (mcp) is covered by the same anchor run.

Sources

This page was checked against: migrations/clickhouse/0001_core.sql, migrations/clickhouse/0005_incident_context.sql, migrations/clickhouse/0008_audit_mcp.sql, migrations/clickhouse/0009_ingest_stats.sql, crates/drillo/src/main.rs, docs/audit-anchors.md.

Report an inaccuracy (opens a new issue in the Drillo repository; nothing is sent from this page)