feat: download snapshots as real compressed archives (auth M6a)
- 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>
This commit is contained in:
@@ -15,6 +15,8 @@ mod oidc_tests;
|
||||
mod credentials_tests;
|
||||
#[cfg(test)]
|
||||
mod access_tests;
|
||||
#[cfg(test)]
|
||||
mod export_tests;
|
||||
|
||||
pub use orbit::run_orbit_internal;
|
||||
pub use routes::router;
|
||||
|
||||
Reference in New Issue
Block a user