[APP-3801] implement remote environments auth (#9331)

This commit is contained in:
Moira Huang
2026-04-28 21:31:23 -05:00
committed by GitHub
parent c325d146ab
commit f0c8b7f723
21 changed files with 685 additions and 69 deletions
+6 -4
View File
@@ -565,12 +565,12 @@ pub fn run() -> Result<()> {
}
}
#[cfg(not(target_family = "wasm"))]
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerProxy) => {
return crate::remote_server::run_proxy();
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerProxy(args)) => {
return crate::remote_server::run_proxy(args.identity_key.clone());
}
#[cfg(not(target_family = "wasm"))]
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerDaemon) => {
return crate::remote_server::run_daemon();
warp_cli::Command::Worker(warp_cli::WorkerCommand::RemoteServerDaemon(args)) => {
return crate::remote_server::run_daemon(args.identity_key.clone());
}
#[cfg(not(target_family = "wasm"))]
warp_cli::Command::Worker(warp_cli::WorkerCommand::RipgrepSearch {
@@ -1253,6 +1253,8 @@ fn initialize_app(
ctx.add_singleton_model(|_ctx| SyncedInputState::new());
ctx.add_singleton_model(remote_server::manager::RemoteServerManager::new);
#[cfg(not(target_family = "wasm"))]
remote_server::wire_auth_token_rotation(ctx);
log::info!(
"Starting warp with channel state {} and version {:?}",