DOCS / FEATURES
Audit log
Who did what, inside an organization or from the superadmin panel, is
recorded in one audit_events table. It holds two separate trails:
- The org audit log: administrative actions inside an organization, readable by that org's admins on paid plans.
- The operator trail: superadmin panel actions, with no org, readable only from the panel.
The code is in api/src/audit/: the catalog and writers in mod.rs,
queries in repo.rs, HTTP in routes.rs. The UI is
web/src/features/audit/AuditPanel.tsx.
An event recorded in an organization is also an outbound webhook event with the same name. The insert creates a delivery for each subscribed endpoint in the same statement (see Webhooks).
The action catalog
AuditAction is the canonical list of everything the system records. A
typo won't compile, and "what events exist?" is one enum rather than a
grep. The stored strings are stable: operators and the SPA filter on
them.
[ full guide ]
The rest of this guide comes with the repo.
- Writing events
- Reading the org log
- Reading the operator trail
- Retention