community / settings / audit-partitions

Audit partition health audit.spans default-partition occupancy · operator-triggered repair · storage growth · retention · bundle export limit

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.Retention what the audit ledger keeps, and for how long 2 keys · 1 override

Retention floor profileWep.Audit.Retention.Profile

Global Restart Default enum

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.

CommunityUnbounded

Retention window (months)Wep.Audit.Retention.WindowMonths

Global Restart Override months

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 ledger storage

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

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.
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.

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.Export audit evidence bundle export 1 key

Most signed spans in one audit bundleWep.Audit.Export.MaxSpansPerBundle

Global Live Default 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.

warn Assembled 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.
in force: 10,000 signed spans
default

Fleet inventory export

Wep.Fleet.InventoryExport signed fleet inventory export 2 keys

User names are never exportableWep.Fleet.InventoryExport.UserNamesNeverExportable

Tenant Live Default 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

Global Live Default 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.

warn Built 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.
in force: 100,000 rows
default

Catalog evidence export

Wep.Catalog.EvidenceExport catalog evidence bundle export 1 key

Most versions in one catalog evidence bundleWep.Catalog.EvidenceExport.MaxVersionsPerBundle

Global Live Default 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.

warn Prepared 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.
in force: 5,000 versions
default