audit.spans is partitioned by month with a DEFAULT catch-all,
kept deliberately: for an audit ledger a dropped row is worse than a loud error, so a span
whose month has no partition lands in the default rather than being rejected. Nothing is ever
lost there — but a row in the default is a row whose month is uncovered, and the next
attempt to create that month's partition fails with 23514. In
Community Edition that attempt runs at container start, before the web server binds, so an
unrepaired default is a boot wedge in waiting. This page exists so it is seen instead
of discovered by an outage.
Wep.Audit.Retentionwhat the audit ledger keeps, and for how long2 keys · 1 override
Named retention floor. CommunityUnbounded (the
default) applies no floor; the NYDFS profile keeps the seven-year
financial-services floor available as an opt-in. Edited on the
advanced settings surface; the
save-time window validator enforces whatever floor the profile names.
Months of audit spans to keep — month-granular, because dropping a whole monthly
partition is the only destruction primitive audit.spans allows.
Ceremony-managed: the generic settings write path refuses this key; the only
writer is the retention enablement ceremony, which previews the partitions a
window would destroy before the typed confirm. Change it in the retention card
below, which also computes what is actually held from live partition bounds.
12 month(s) · changed
Audit partition health
audit.spans_default is empty
(0 rows) — partition coverage is keeping up and no
span has landed in the catch-all.
observed
· heap 0 B
· inline-repair ceiling 2 GiB · nothing has ever been pruned
Audit ledger storage
retained: 1 MiB
across 6 attached partition(s)
retired, awaiting drop: 0 B
across 0 detached partition(s).
These bytes are still on disk — a prune detaches and renames before it drops,
so this line is what stops a phase-one retire from reading as space already reclaimed.
total on disk: 1 MiB
· budget 20 GiB
growth rate: insufficient history — insufficient history: the growth rate needs at least 3 COMPLETE monthly partitions to regress over and there are 0. Two points fit a line perfectly, so reporting a rate from fewer would be a confident number derived from no evidence. This clears on its own once the ledger has been running for a few months.
sampled
partition
covers
total
rows (est.)
audit.spans_2026_11
2026-11-01 →
2026-12-01
672 KiB
203
audit.spans_2026_12
2026-12-01 →
2027-01-01
80 KiB
0
audit.spans_2027_01
2027-01-01 →
2027-02-01
80 KiB
0
audit.spans_2027_02
2027-02-01 →
2027-03-01
80 KiB
0
audit.spans_2027_03
2027-03-01 →
2027-04-01
80 KiB
0
audit.spans_default
DEFAULT (catch-all, no bounds)
80 KiB
0
Row counts are Postgres reltuples ESTIMATES, floored at zero
because a never-analyzed relation records -1 rather than
0. The current month's estimate lags the most: this data is
append-only, so it keeps outrunning the last autovacuum. Byte figures are exact.
Audit ledger retention
Profile
CommunityUnbounded
— no floor applies
Configured window
12 month(s).
This is the number that was asked for, not the date the database is holding
from — see below.
Suggested window: 12 months.
CNIL recommends keeping logs like these for 6 to 12 months, NIS2 expects a defined retention period, and the Swiss DSV requires at least one year where its logging duty applies.
The window is yours to choose, and the suggestion itself changes nothing: a window is set
below, through the retention ceremony, which previews what it would destroy and asks for a
typed confirmation.
Retention is enforced at month boundaries, not day boundaries.
audit.spans carries a BEFORE DELETE trigger that fires
even for the table owner, so individual rows cannot be deleted at all; the only way to destroy
audit data is to drop a whole monthly partition. A window of N months therefore means
"partitions whose entire range is older than N months" — a day-precision control here
would be promising precision this mechanism cannot deliver.
Nothing is pruned until both switches are armed
The prune executor shipped and reads these settings on every maintenance tick — but it
destroys nothing unless two independent switches are both armed: a bounded
retention window, whose only writer is the enablement ceremony with its typed confirmation (the
generic settings editor refuses the window key), and the host configuration flag
Wep:Audit:Prune:Enabled=true, which defaults to false. A saved
window is written to catalog.settings and recorded in
catalog.settings_audit with the identity that changed it. Even fully armed, a
prune refuses to run without a span-signing key — no signed prune record, no destruction. The
retained-from figure below is read live from partition bounds on every page load, so it stays
true regardless of what is configured.
Change the window
Actually retained from
2026-11-01
— the earliest instant still held once everything currently eligible is pruned, computed
from the partition bounds this database has right now.
Nominal window start
2025-11-12
— what the configured number implies. Where this and the line above disagree, the line
above is the truth.
Eligible for prune
No partition is currently eligible.
Under the CommunityUnbounded profile the floor check is
effectively nothing: a saved window is rejected only if it is negative, or if
it is short enough to make the partition currently being written a candidate. Any real window,
including one month, is accepted. Do not read that check as a safeguard against a destructive
mistake — the safeguard is the confirmation step and grace period on the prune itself.
Audit partition prune
Prune watermark
Never pruned. No audit.spans partition has been destroyed by
this platform. This is a statement about what was destroyed, not about how far back the
ledger reaches.
Partition
Holds from
Holds until
Eligible
Bytes
Note
spans_2026_11
2026-11-01
2026-12-01
2027-12-01
688,128
spans_2026_12
2026-12-01
2027-01-01
2028-01-01
81,920
spans_2027_01
2027-01-01
2027-02-01
2028-02-01
81,920
spans_2027_02
2027-02-01
2027-03-01
2028-03-01
81,920
spans_2027_03
2027-03-01
2027-04-01
2028-04-01
81,920
Audit bundle export
Wep.Audit.Exportaudit evidence bundle export1 key
Most signed spans in one audit bundleWep.Audit.Export.MaxSpansPerBundle
GlobalLiveDefault·int · signed spans
The audit search's export bundle refuses a time window holding more signed spans
than this, before it signs anything, and says so on its confirm. Default
10,000; a saved value applies to the next
export without a restart.
warnAssembled in server memory before it downloads
A bundle is not streamed span by span: its span file is built and signed in server memory, then
downloaded. Measured, that holds about 4.5 KB of memory per span at its peak — about 46 MB for
10,000 spans and about 435 MB for 100,000 — and up to
2 exports may run at once. A build
that runs longer than 120 seconds is
abandoned and says so (100,000 spans took about 23 seconds), which is why the setting accepts
1 to
250,000 and no more. Raise it only as far as this
server's memory allows.
User names are never exportableWep.Fleet.InventoryExport.UserNamesNeverExportable
TenantLiveDefault·bool
On: no inventory export of this tenant carries user names. The Export inventory verb on
Fleet does not offer them, and the server refuses a request for them. Off (the default): names are left
out unless the exporter holds the per-user export permission, asks for them and states a purpose, which is
recorded with the export. Each change is recorded on the audit trail.
in force: user names only on request, with a purpose
default
Most rows in one inventory exportWep.Fleet.InventoryExport.MaxRows
GlobalLiveDefault·int · rows
Fleet's Export inventory refuses an inventory holding more rows than this, before it signs
anything. Default 100,000; a saved value
applies to the next export without a restart.
warnBuilt in server memory before it downloads
The bundle is built and signed in server memory, then downloaded: about 1.5 KB of memory per row at the peak,
so about 150 MB for 100,000 rows. One export is built at a time, and at most
2 built bundles are held while they download. The setting accepts
1 to
500,000: a larger inventory.json would exceed
what a verifier reads per file.
Most versions in one catalog evidence bundleWep.Catalog.EvidenceExport.MaxVersionsPerBundle
GlobalLiveDefault·int · catalog versions
A catalog evidence export (POST /api/v1/catalog/export-evidence) naming more
versions than this is refused before anything is signed, and the refusal names this setting. Default
5,000; a saved value applies to the next
export without a restart.
warnPrepared before it downloads, within two minutes
Every version's run, statement and SBOM details are read and the bundle is signed before the first byte
downloads, and that must finish within
120 seconds. Measured, it takes about
9 to 12 ms and holds about 15 KB of server memory per version: about 45 seconds and 75 MB for 5,000
versions, and 118 seconds and 151 MB for 10,000. Up to
2 exports may run at once. So the
setting accepts 1 to
10,000, and an export that runs out of time
is refused, never half-written.