Files
tessera/crates/tessera-hub/Cargo.toml
Adnan Zahir e72b72111d 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>
2026-11-14 17:27:06 +07:00

58 lines
1.7 KiB
TOML

[package]
name = "tessera-hub"
version.workspace = true
edition.workspace = true
license.workspace = true
publish = false
[[bin]]
name = "tessera-hub"
path = "src/main.rs"
[dependencies]
tessera-core = { path = "../tessera-core" }
tessera-store = { path = "../tessera-store" }
tessera-providers = { path = "../tessera-providers" }
tessera-demo = { path = "../tessera-demo" }
anyhow.workspace = true
argon2.workspace = true
axum.workspace = true
chrono.workspace = true
chrono-tz = "0.10"
cron.workspace = true
include_dir = "0.7"
rand.workspace = true
serde.workspace = true
serde_json.workspace = true
rusqlite.workspace = true
tokio.workspace = true
tokio-util = { version = "0.7", features = ["io"] }
tower-http.workspace = true
tracing.workspace = true
tracing-subscriber.workspace = true
utoipa.workspace = true
uuid.workspace = true
hex.workspace = true
sha2.workspace = true
base64 = "0.22"
async-compression = { version = "=0.4.36", default-features = false, features = ["tokio", "gzip"] }
futures-core = "0.3"
rustix = { version = "=1.1.6", default-features = false, features = ["fs", "std"] }
governor = { version = "=0.10.4", default-features = false, features = ["std"] }
openidconnect = { version = "=4.1.0", default-features = false, features = ["reqwest", "rustls-tls"] }
tempfile.workspace = true
indexmap = "=2.2.6"
hyper = { version = "=1.12.0", features = ["server", "http1"] }
hyper-util = { version = "=0.1.21", features = ["tokio"] }
rustls = { version = "=0.23.46", default-features = false, features = ["ring", "std"] }
tokio-rustls = "=0.26.2"
tower = { workspace = true }
[dev-dependencies]
rcgen = "=0.13.2"
wiremock = "=0.6.5"
futures-util = "0.3"
rsa = { version = "=0.9.10", features = ["sha2"] }
hmac.workspace = true
tokio.workspace = true