feat: add managed database capture and operator restore

PostgreSQL and MySQL backups run through paired outposts, with operator sign-in, off-site copies, and legacy import. Retention stays on each orbit, so the unused retention console is removed.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-10 23:26:49 +07:00
parent 30a1a9b8f0
commit 6320b6f244
96 changed files with 11061 additions and 725 deletions

View File

@@ -13,6 +13,9 @@ use tracing_subscriber::EnvFilter;
#[tokio::main]
async fn main() -> Result<()> {
if std::env::args().nth(1).as_deref() == Some("--hash-operator-password") {
return admin::print_operator_hash();
}
tracing_subscriber::fmt()
.with_env_filter(EnvFilter::from_default_env().add_directive("tessera_hub=info".parse()?))
.init();
@@ -56,8 +59,15 @@ async fn main() -> Result<()> {
}
}
state.configure_offsite()?;
state.reconcile_capture_catalog().await?;
state.start_offsite_worker();
scheduler::start_orbit_scheduler(state.clone()).await?;
state.admin.log_policy();
if state.sessions.enabled() {
tracing::info!("operator sessions enabled; CLI access uses a separate admin token");
} else {
state.admin.log_policy();
}
if let Some(wormhole) = mtls::from_env()? {
state.wormhole_mtls = true;