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

@@ -4,6 +4,8 @@ mod orbit;
mod restore;
mod routes;
mod session;
#[cfg(test)]
mod auth_contract;
pub use orbit::run_orbit_internal;
pub use routes::router;