- the download format follows the file's first bytes and manifest hints: plain SQL ->
.sql.gz, tar -> .tar.gz, SQLite -> .sqlite.gz, hub filesystem archive -> .tessera-fs.gz,
unknown -> .dump.gz; pg_dump -Fc stays .dump; gzip/zstd/xz/bzip2/zip pass through
- gzip is streamed (async-compression) in 64 KiB frames; no Content-Encoding, no
Content-Length on compressed bodies, application/gzip, nosniff, no-store; HEAD is 405
- order: authenticate, find, permission, then admission (export slots and free disk), so a
caller without permission cannot use up the slots
- the export directory, the slot and the audit end-of-download row live with the response
body: finished, client disconnect, and a sweep of tessera-export-* at start after a crash
- audit export.requested / ready / finished / disconnected
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Authorization
- one gate for every human endpoint: authenticate, resolve the resource, then
admin_only / scoped / visible; require_admin* removed so each handler must choose
- grants (user or IdP group; global or one orbit; optional end date) read live on
every request; only orbit.read, snapshot.read, capture.run and snapshot.download
can be granted, everything else stays with configured administrators
- an orbit without orbit.read is 404, a visible one without the permission is 403,
a caller with nothing to see gets 403 on lists; job history is filtered before LIMIT
- jobs and audit record the stable principal id, not the IdP display name
- restore targets and restore history are admin-only until self-service (M6)
- sessions keep the groups verified at sign-in
Administration
- /api/v1/access grants and users (enable, disable, sign out everywhere), validated
and audited by id; admins cannot disable themselves or the emergency operator
- Access console with the shared Select and a themed DatePicker; non-administrators
only see Vault and Activity and never call administrator endpoints
- the Window/Radar view is stored per account (/api/v1/me/preferences)
- UI tolerates older hubs and mocks (missing admin/grants) and a console that fails
to render no longer blanks the app
Tests: a matrix generated from the endpoint contract exercises every human route
against real resources in two orbits for each kind of caller.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>