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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user