feat: require authentication and own uploads per Outpost (auth M0)

- auth is mandatory by default, including loopback and local proxies; startup refuses a hub with no credentials; TESSERA_LOCAL_DEVELOPMENT is explicit and loopback-only
- legacy uploads are bound to an owning Outpost (PUT /api/v1/orbits/:id/outpost); unowned orbits and sessions fail closed
- typed Principal and payload-free audit_events table
- endpoint authorization contract with tests comparing it to the router
- A00 compatibility spike (tests/auth-compat) and library research
- archive the superseded A00-A25 plan

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-14 12:59:08 +07:00
parent f6a41ee702
commit a9ebded5ba
22 changed files with 5355 additions and 35 deletions

View File

@@ -0,0 +1,27 @@
[package]
name = "tessera-auth-compat"
version = "0.0.0"
edition = "2021"
rust-version = "1.88"
publish = false
license = "AGPL-3.0-or-later"
# Isolated spike: no auth dependency enters the application until A00 passes.
[workspace]
resolver = "2"
[dependencies]
async-trait = "0.1"
axum = "=0.7.9"
tower = { version = "0.5", features = ["util"] }
tokio = { version = "=1.40.0", features = ["full"] }
rusqlite = { version = "=0.31.0", features = ["bundled"] }
sha2 = "=0.10.8"
serde_json = "1"
time = "=0.3.47"
tower-sessions = { version = "=0.15.0", default-features = false }
openidconnect = { version = "=4.1.0", default-features = false, features = ["reqwest", "rustls-tls"] }
governor = { version = "=0.10.4", default-features = false, features = ["std"] }
async-compression = { version = "=0.4.36", default-features = false, features = ["tokio", "gzip"] }
casbin = { version = "=2.10.1", default-features = false, features = ["runtime-tokio"] }
rusqlite_migration = "=1.2.0"