From 8d70cae091eab6122d7fe6697fe38ef3ac236d73 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 4 Dec 2026 11:31:10 +0100 Subject: [PATCH 1/3] feat(drivers): make driver lifecycle id-only Port of the driver-specific part of ai-openshell/openshell#3611. Get, Stop, Start and Delete locate a sandbox by sandbox_id only. An empty sandbox_id is rejected with invalid_argument. The name fallback and name matching are removed from lookup and lifecycle fencing in the Docker and VM drivers, including the pending image update lookup in the Docker driver. Sandbox names are unique per workspace, not per driver, so a name could select the wrong sandbox. The request field `name` is neither read nor required: request literals set it to an empty string or default it, so the change builds against the current OpenShell pin and against core once the gateway stops sending it. Signed-off-by: Evan Lezar --- .../src/image_update.rs | 31 +- .../src/image_update/tests.rs | 48 ++- crates/openshell-driver-docker/src/lib.rs | 301 +++++------------- crates/openshell-driver-docker/src/tests.rs | 144 ++++++--- crates/openshell-driver-podman/src/grpc.rs | 4 +- crates/openshell-driver-vm/src/driver.rs | 211 ++++-------- 6 files changed, 246 insertions(+), 493 deletions(-) diff --git a/crates/openshell-driver-docker/src/image_update.rs b/crates/openshell-driver-docker/src/image_update.rs index 4c5070f..1a62f56 100644 --- a/crates/openshell-driver-docker/src/image_update.rs +++ b/crates/openshell-driver-docker/src/image_update.rs @@ -931,33 +931,14 @@ pub fn pending_snapshots(config: &DockerDriverRuntimeConfig) -> Result Result, Status> { - if !id.is_empty() { - if !valid_native_id(id) { - return Ok(None); - } - let Some(intent) = read(config, id)? else { - return Ok(None); - }; - if !name.is_empty() && name != intent.sandbox_name { - return Err(invalid( - "Docker update name does not match its native identity", - )); - } - return Ok((intent.phase != Phase::Applied).then(|| snapshot(&intent))); - } - let matches = pending_snapshots(config)? - .into_iter() - .filter(|value| value.name == name) - .collect::>(); - match matches.len() { - 0 => Ok(None), - 1 => Ok(matches.into_iter().next()), - _ => Err(invalid( - "Docker pending update name is ambiguous; use its native ID", - )), + if !valid_native_id(id) { + return Ok(None); } + let Some(intent) = read(config, id)? else { + return Ok(None); + }; + Ok((intent.phase != Phase::Applied).then(|| snapshot(&intent))) } pub fn require_settled(config: &DockerDriverRuntimeConfig, id: &str) -> Result<(), Status> { diff --git a/crates/openshell-driver-docker/src/image_update/tests.rs b/crates/openshell-driver-docker/src/image_update/tests.rs index 3ba13f7..695ccb7 100644 --- a/crates/openshell-driver-docker/src/image_update/tests.rs +++ b/crates/openshell-driver-docker/src/image_update/tests.rs @@ -786,23 +786,20 @@ async fn pending_update_survives_driver_restart_and_blocks_start_by_id_or_name() let mut reopened = test_driver_with_config(fixture.config.clone()); reopened.docker = Arc::new(docker); let observed = reopened - .get_sandbox_snapshot("", &fixture.p().name) + .get_sandbox_snapshot(&fixture.p().sandbox_id) .await .unwrap() .unwrap(); assert_eq!(observed.id, fixture.p().sandbox_id); - for id in [fixture.p().sandbox_id.as_str(), ""] { - let error = Box::pin(reopened.start_sandbox( - id, - &fixture.p().name, - "generation-2", - &test_launch_authentication(), - None, - )) - .await - .unwrap_err(); - assert_eq!(error.code(), tonic::Code::FailedPrecondition); - } + let error = Box::pin(reopened.start_sandbox( + &fixture.p().sandbox_id, + "generation-2", + &test_launch_authentication(), + None, + )) + .await + .unwrap_err(); + assert_eq!(error.code(), tonic::Code::FailedPrecondition); server.await.unwrap(); assert!( read(&fixture.config, &fixture.p().sandbox_id) @@ -823,7 +820,7 @@ async fn completed_update_clears_pending_inventory_and_keeps_start_bound_to_targ .unwrap(); assert!(pending_ids(&fixture.config).unwrap().is_empty()); assert!( - pending_snapshot(&fixture.config, &fixture.p().sandbox_id, &fixture.p().name) + pending_snapshot(&fixture.config, &fixture.p().sandbox_id) .unwrap() .is_none() ); @@ -886,15 +883,10 @@ async fn stopped_start_repairs_interrupted_launch_rotation_before_staging() { authentication.supervisor.runtime_generation = openshell_core::sandbox_generation::SandboxGenerationId::parse("generation-retry").unwrap(); let encoded = serde_json::to_vec(&authentication).unwrap(); - let error = Box::pin(driver.start_sandbox( - &fixture.p().sandbox_id, - &fixture.p().name, - "generation-retry", - &encoded, - None, - )) - .await - .unwrap_err(); + let error = + Box::pin(driver.start_sandbox(&fixture.p().sandbox_id, "generation-retry", &encoded, None)) + .await + .unwrap_err(); server.await.unwrap(); // Deliberately omit the workspace-root staging input: reaching this gate // proves the real Start path repaired publication, without starting a fake @@ -957,7 +949,6 @@ async fn interrupted_launch_pair_requires_stopped_workload_and_fresh_authenticat }; let error = Box::pin(driver.start_sandbox( &fixture.p().sandbox_id, - &fixture.p().name, "generation-1", &authentication, None, @@ -1027,7 +1018,6 @@ async fn launch_repair_never_adopts_changed_immutable_bindings() { driver.docker = Arc::new(docker); let error = Box::pin(driver.start_sandbox( &fixture.p().sandbox_id, - &fixture.p().name, "generation-1", &test_launch_authentication(), None, @@ -1103,8 +1093,8 @@ async fn startup_cleanup_and_stop_preserve_pending_update_without_a_workload() { ComputeDriver::stop_sandbox( &reopened, Request::new(StopSandboxRequest { - sandbox_id: String::new(), - name: fixture.p().name.clone(), + sandbox_id: fixture.p().sandbox_id.clone(), + name: String::new(), }), ) .await @@ -1149,8 +1139,8 @@ async fn explicit_delete_clears_pending_gap_and_reports_the_deleted_native_resou let response = ComputeDriver::delete_sandbox( &reopened, Request::new(DeleteSandboxRequest { - sandbox_id: String::new(), - name: fixture.p().name.clone(), + sandbox_id: fixture.p().sandbox_id.clone(), + name: String::new(), }), ) .await diff --git a/crates/openshell-driver-docker/src/lib.rs b/crates/openshell-driver-docker/src/lib.rs index 75e894b..398c4f5 100644 --- a/crates/openshell-driver-docker/src/lib.rs +++ b/crates/openshell-driver-docker/src/lib.rs @@ -482,44 +482,28 @@ impl DockerLifecycleEventFences { .contains(sandbox_id) } - fn request_stop(&self, sandbox_id: &str, sandbox_name: &str) { - let mut state = self - .state + fn request_stop(&self, sandbox_id: &str) { + self.state .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner); - if !sandbox_id.is_empty() { - state.stops_requested.insert(format!("id:{sandbox_id}")); - } - if !sandbox_name.is_empty() { - state.stops_requested.insert(format!("name:{sandbox_name}")); - } + .unwrap_or_else(std::sync::PoisonError::into_inner) + .stops_requested + .insert(sandbox_id.to_string()); } - fn clear_stop(&self, sandbox_id: &str, sandbox_name: &str) { - let mut state = self - .state + fn clear_stop(&self, sandbox_id: &str) { + self.state .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner); - if !sandbox_id.is_empty() { - state.stops_requested.remove(&format!("id:{sandbox_id}")); - } - if !sandbox_name.is_empty() { - state - .stops_requested - .remove(&format!("name:{sandbox_name}")); - } + .unwrap_or_else(std::sync::PoisonError::into_inner) + .stops_requested + .remove(sandbox_id); } - fn stop_requested(&self, sandbox_id: &str, sandbox_name: &str) -> bool { - let state = self - .state + fn stop_requested(&self, sandbox_id: &str) -> bool { + self.state .lock() - .unwrap_or_else(std::sync::PoisonError::into_inner); - (!sandbox_id.is_empty() && state.stops_requested.contains(&format!("id:{sandbox_id}"))) - || (!sandbox_name.is_empty() - && state - .stops_requested - .contains(&format!("name:{sandbox_name}"))) + .unwrap_or_else(std::sync::PoisonError::into_inner) + .stops_requested + .contains(sandbox_id) } fn record_previous_exit(&self, sandbox_id: &str, finished_at: Option<&str>) { @@ -548,17 +532,14 @@ impl DockerLifecycleEventFences { .cloned() } - fn remove(&self, sandbox_id: &str, sandbox_name: &str) { + fn remove(&self, sandbox_id: &str) { let mut state = self .state .lock() .unwrap_or_else(std::sync::PoisonError::into_inner); state.previous_finished_at.remove(sandbox_id); state.starts_in_progress.remove(sandbox_id); - state.stops_requested.remove(&format!("id:{sandbox_id}")); - state - .stops_requested - .remove(&format!("name:{sandbox_name}")); + state.stops_requested.remove(sandbox_id); } } @@ -1527,19 +1508,14 @@ impl DockerComputeDriver { async fn get_sandbox_snapshot( &self, sandbox_id: &str, - sandbox_name: &str, ) -> Result, Status> { - if let Some(pending) = self.pending_snapshot(sandbox_id, sandbox_name).await? { + if let Some(pending) = self.pending_snapshot(sandbox_id).await { return Ok(Some(pending)); } - if let Some(pending) = - image_update::pending_snapshot(&self.config, sandbox_id, sandbox_name)? - { + if let Some(pending) = image_update::pending_snapshot(&self.config, sandbox_id)? { return Ok(Some(pending)); } - let container = self - .find_managed_container_summary(sandbox_id, sandbox_name) - .await?; + let container = self.find_managed_container_summary(sandbox_id).await?; if let Some(mut sandbox) = container.and_then(|summary| sandbox_from_container_summary(&summary)) { @@ -1550,16 +1526,6 @@ impl DockerComputeDriver { Ok(None) } - async fn resolve_lifecycle_id(&self, id: &str, name: &str) -> Result, Status> { - if !id.is_empty() { - return Ok(Some(id.to_string())); - } - Ok(self - .get_sandbox_snapshot(id, name) - .await? - .map(|sandbox| sandbox.id)) - } - async fn current_snapshots(&self) -> Result, Status> { let containers = self.list_managed_container_summaries().await?; let mut container_sandboxes = Vec::with_capacity(containers.len()); @@ -1639,7 +1605,7 @@ impl DockerComputeDriver { .await?; if self - .find_managed_container_summary(&sandbox.id, &sandbox.name) + .find_managed_container_summary(&sandbox.id) .await? .is_some() { @@ -1687,10 +1653,7 @@ impl DockerComputeDriver { match Box::pin(self.provision_sandbox_inner(&sandbox)).await { Ok(()) => { self.clear_pending_sandbox(&sandbox.id).await; - if let Err(error) = self - .publish_container_snapshot(&sandbox.id, &sandbox.name) - .await - { + if let Err(error) = self.publish_container_snapshot(&sandbox.id).await { warn!( sandbox_id = %sandbox.id, %error, @@ -2002,10 +1965,7 @@ impl DockerComputeDriver { { Ok(control) => control, Err(status) => { - if self - .lifecycle_event_fences - .stop_requested(&sandbox.id, &sandbox.name) - { + if self.lifecycle_event_fences.stop_requested(&sandbox.id) { debug!( sandbox_id = %sandbox.id, "Ignoring Docker supervisor startup interruption after an explicit stop" @@ -2027,10 +1987,7 @@ impl DockerComputeDriver { )); } }; - if self - .lifecycle_event_fences - .stop_requested(&sandbox.id, &sandbox.name) - { + if self.lifecycle_event_fences.stop_requested(&sandbox.id) { stop_docker_control_process(control).await; debug!( sandbox_id = %sandbox.id, @@ -2354,14 +2311,8 @@ impl DockerComputeDriver { Ok(()) } - async fn delete_sandbox_inner( - &self, - sandbox_id: &str, - sandbox_name: &str, - ) -> Result { - let pending = self - .remove_pending_sandbox(sandbox_id, sandbox_name) - .await?; + async fn delete_sandbox_inner(&self, sandbox_id: &str) -> Result { + let pending = self.remove_pending_sandbox(sandbox_id).await; if let Some(record) = pending.as_ref() && let Some(task) = record.task.as_ref() { @@ -2373,10 +2324,7 @@ impl DockerComputeDriver { .await?; } - let Some(container) = self - .find_managed_container_summary(sandbox_id, sandbox_name) - .await? - else { + let Some(container) = self.find_managed_container_summary(sandbox_id).await? else { if let Some(record) = pending { let container_name = container_name_for_sandbox(&record.sandbox); match self @@ -2416,8 +2364,7 @@ impl DockerComputeDriver { } if !sandbox_id.is_empty() { let removed_update = - image_update::pending_snapshot(&self.config, sandbox_id, sandbox_name)? - .is_some(); + image_update::pending_snapshot(&self.config, sandbox_id)?.is_some(); self.stop_control_process(sandbox_id).await; let removed = self .remove_auxiliary_containers_for_sandbox(sandbox_id) @@ -2467,16 +2414,12 @@ impl DockerComputeDriver { } } - async fn stop_sandbox_inner(&self, sandbox_id: &str, sandbox_name: &str) -> Result<(), Status> { - let container = self - .find_managed_container_summary(sandbox_id, sandbox_name) - .await?; + async fn stop_sandbox_inner(&self, sandbox_id: &str) -> Result<(), Status> { + let container = self.find_managed_container_summary(sandbox_id).await?; // Startup can still be waiting for supervisor readiness after the // workload container exists. Cancel it before removing the supervisor // so its failure path cannot delete retained workload storage. - let mut pending = self - .remove_pending_sandbox(sandbox_id, sandbox_name) - .await?; + let mut pending = self.remove_pending_sandbox(sandbox_id).await; if let Some(task) = pending.as_mut().and_then(|record| record.task.take()) { task.abort(); let _ = task.await; @@ -2498,7 +2441,7 @@ impl DockerComputeDriver { self.remove_auxiliary_containers_for_sandbox(sandbox_id) .await?; } - if image_update::pending_snapshot(&self.config, sandbox_id, sandbox_name)?.is_some() { + if image_update::pending_snapshot(&self.config, sandbox_id)?.is_some() { return Ok(()); } return Err(Status::not_found("sandbox not found")); @@ -2553,61 +2496,49 @@ impl DockerComputeDriver { otel.name = "docker.start_sandbox", otel.status_code = tracing::field::Empty, sandbox.id = %sandbox_id, - sandbox.name = %sandbox_name, ) )] pub async fn start_sandbox( &self, sandbox_id: &str, - sandbox_name: &str, generation_id: &str, launch_authentication: &[u8], durable_sandbox: Option<&DriverSandbox>, ) -> Result { let span_status = openshell_otel::ErrorStatusGuard::current(); - require_sandbox_identifier(sandbox_id, sandbox_name)?; + require_sandbox_id(sandbox_id)?; let generation = openshell_core::sandbox_generation::SandboxGenerationId::parse( generation_id.to_string(), ) .map_err(|error| Status::invalid_argument(error.to_string()))?; - let resolved_id = self - .resolve_lifecycle_id(sandbox_id, sandbox_name) - .await? - .ok_or_else(|| Status::not_found("sandbox not found"))?; let _lifecycle = self .image_update_gates - .gate_for(&resolved_id) + .gate_for(sandbox_id) .lock_owned() .await; - image_update::require_settled(&self.config, &resolved_id)?; - self.lifecycle_event_fences - .clear_stop(&resolved_id, sandbox_name); - self.lifecycle_event_fences.begin_start(&resolved_id); + image_update::require_settled(&self.config, sandbox_id)?; + self.lifecycle_event_fences.clear_stop(sandbox_id); + self.lifecycle_event_fences.begin_start(sandbox_id); let result = Box::pin(self.start_sandbox_with_lifecycle_fence( - &resolved_id, - sandbox_name, + sandbox_id, &generation, launch_authentication, durable_sandbox, )) .await; - self.lifecycle_event_fences.finish_start(&resolved_id); + self.lifecycle_event_fences.finish_start(sandbox_id); span_status.finish(result) } async fn start_sandbox_with_lifecycle_fence( &self, sandbox_id: &str, - sandbox_name: &str, generation: &openshell_core::sandbox_generation::SandboxGenerationId, launch_authentication: &[u8], _durable_sandbox: Option<&DriverSandbox>, ) -> Result { self.verify_network_trust()?; - let Some(container) = self - .find_managed_container_summary(sandbox_id, sandbox_name) - .await? - else { + let Some(container) = self.find_managed_container_summary(sandbox_id).await? else { return Ok(false); }; let Some(target) = summary_container_target(&container) else { @@ -2797,14 +2728,9 @@ impl DockerComputeDriver { Ok(()) } - async fn pending_snapshot( - &self, - sandbox_id: &str, - sandbox_name: &str, - ) -> Result, Status> { + async fn pending_snapshot(&self, sandbox_id: &str) -> Option { let pending = self.pending.lock().await; - let id = pending_sandbox_record_id(&pending, sandbox_id, sandbox_name)?; - Ok(id.and_then(|id| pending.get(&id).map(|record| record.sandbox.clone()))) + pending.get(sandbox_id).map(|record| record.sandbox.clone()) } async fn pending_snapshot_map(&self) -> HashMap { @@ -2820,16 +2746,9 @@ impl DockerComputeDriver { pending.remove(sandbox_id); } - async fn remove_pending_sandbox( - &self, - sandbox_id: &str, - sandbox_name: &str, - ) -> Result, Status> { + async fn remove_pending_sandbox(&self, sandbox_id: &str) -> Option { let mut pending = self.pending.lock().await; - let Some(id) = pending_sandbox_record_id(&pending, sandbox_id, sandbox_name)? else { - return Ok(None); - }; - Ok(pending.remove(&id)) + pending.remove(sandbox_id) } async fn fail_pending_sandbox( @@ -2866,12 +2785,8 @@ impl DockerComputeDriver { self.publish_sandbox_snapshot(snapshot); } - async fn publish_container_snapshot( - &self, - sandbox_id: &str, - sandbox_name: &str, - ) -> Result<(), Status> { - if let Some(sandbox) = self.get_sandbox_snapshot(sandbox_id, sandbox_name).await? { + async fn publish_container_snapshot(&self, sandbox_id: &str) -> Result<(), Status> { + if let Some(sandbox) = self.get_sandbox_snapshot(sandbox_id).await? { self.publish_sandbox_snapshot(sandbox); } Ok(()) @@ -3060,14 +2975,8 @@ impl DockerComputeDriver { async fn find_managed_container_summary( &self, sandbox_id: &str, - sandbox_name: &str, ) -> Result, Status> { - let mut label_filter_values = Vec::new(); - if !sandbox_id.is_empty() { - label_filter_values.push(format!("{LABEL_SANDBOX_ID}={sandbox_id}")); - } else if !sandbox_name.is_empty() { - label_filter_values.push(format!("{LABEL_SANDBOX_NAME}={sandbox_name}")); - } + let label_filter_values = vec![format!("{LABEL_SANDBOX_ID}={sandbox_id}")]; let filters = managed_container_label_filters(&self.config.sandbox_namespace, label_filter_values); @@ -3089,15 +2998,10 @@ impl DockerComputeDriver { let namespace_matches = labels .get(LABEL_SANDBOX_NAMESPACE) .is_some_and(|value| value == &self.config.sandbox_namespace); - let id_matches = sandbox_id.is_empty() - || labels - .get(LABEL_SANDBOX_ID) - .is_some_and(|value| value == sandbox_id); - let name_matches = sandbox_name.is_empty() - || labels - .get(LABEL_SANDBOX_NAME) - .is_some_and(|value| value == sandbox_name); - namespace_matches && id_matches && name_matches + let id_matches = labels + .get(LABEL_SANDBOX_ID) + .is_some_and(|value| value == sandbox_id); + namespace_matches && id_matches }); let selected = matches.next(); if matches.next().is_some() { @@ -3522,19 +3426,13 @@ impl ComputeDriver for DockerComputeDriver { request: Request, ) -> Result, Status> { let request = request.into_inner(); - require_sandbox_identifier(&request.sandbox_id, &request.name)?; + require_sandbox_id(&request.sandbox_id)?; let sandbox = self - .get_sandbox_snapshot(&request.sandbox_id, &request.name) + .get_sandbox_snapshot(&request.sandbox_id) .await? .ok_or_else(|| Status::not_found("sandbox not found"))?; - if !request.sandbox_id.is_empty() && request.sandbox_id != sandbox.id { - return Err(Status::failed_precondition( - "sandbox_id did not match the fetched sandbox", - )); - } - Ok(Response::new(GetSandboxResponse { sandbox: Some(sandbox), })) @@ -3588,7 +3486,6 @@ impl ComputeDriver for DockerComputeDriver { otel.name = "docker.stop_sandbox", otel.status_code = tracing::field::Empty, sandbox.id = %request.get_ref().sandbox_id, - sandbox.name = %request.get_ref().name, ) )] async fn stop_sandbox( @@ -3596,37 +3493,22 @@ impl ComputeDriver for DockerComputeDriver { request: Request, ) -> Result, Status> { let span_status = openshell_otel::ErrorStatusGuard::current(); - let mut request = request.into_inner(); - require_sandbox_identifier(&request.sandbox_id, &request.name)?; + let request = request.into_inner(); + require_sandbox_id(&request.sandbox_id)?; - let Some(id) = self - .resolve_lifecycle_id(&request.sandbox_id, &request.name) - .await? - else { - return Err(Status::not_found("sandbox not found")); - }; - request.sandbox_id = id; let _lifecycle = self .image_update_gates .gate_for(&request.sandbox_id) .lock_owned() .await; self.lifecycle_event_fences - .request_stop(&request.sandbox_id, &request.name); - if let Err(error) = self - .stop_sandbox_inner(&request.sandbox_id, &request.name) - .await - { - self.lifecycle_event_fences - .clear_stop(&request.sandbox_id, &request.name); + .request_stop(&request.sandbox_id); + if let Err(error) = self.stop_sandbox_inner(&request.sandbox_id).await { + self.lifecycle_event_fences.clear_stop(&request.sandbox_id); return Err(error); } - if let Err(error) = self - .publish_container_snapshot(&request.sandbox_id, &request.name) - .await - { - self.lifecycle_event_fences - .clear_stop(&request.sandbox_id, &request.name); + if let Err(error) = self.publish_container_snapshot(&request.sandbox_id).await { + self.lifecycle_event_fences.clear_stop(&request.sandbox_id); return Err(error); } span_status.finish(Ok(Response::new(StopSandboxResponse {}))) @@ -3640,7 +3522,6 @@ impl ComputeDriver for DockerComputeDriver { if !Box::pin(Self::start_sandbox( self, &request.sandbox_id, - &request.name, &request.generation_id, &request.launch_authentication, request.sandbox.as_ref(), @@ -3649,8 +3530,7 @@ impl ComputeDriver for DockerComputeDriver { { return Err(Status::not_found("sandbox not found")); } - self.publish_container_snapshot(&request.sandbox_id, &request.name) - .await?; + self.publish_container_snapshot(&request.sandbox_id).await?; Ok(Response::new(StartSandboxResponse::default())) } @@ -3661,7 +3541,6 @@ impl ComputeDriver for DockerComputeDriver { otel.name = "docker.delete_sandbox", otel.status_code = tracing::field::Empty, sandbox.id = %request.get_ref().sandbox_id, - sandbox.name = %request.get_ref().name, ) )] async fn delete_sandbox( @@ -3669,27 +3548,17 @@ impl ComputeDriver for DockerComputeDriver { request: Request, ) -> Result, Status> { let span_status = openshell_otel::ErrorStatusGuard::current(); - let mut request = request.into_inner(); - require_sandbox_identifier(&request.sandbox_id, &request.name)?; + let request = request.into_inner(); + require_sandbox_id(&request.sandbox_id)?; - let Some(id) = self - .resolve_lifecycle_id(&request.sandbox_id, &request.name) - .await? - else { - return Ok(Response::new(DeleteSandboxResponse { deleted: false })); - }; - request.sandbox_id = id; let _lifecycle = self .image_update_gates .gate_for(&request.sandbox_id) .lock_owned() .await; let event_sandbox_id = request.sandbox_id.clone(); - let deleted = self - .delete_sandbox_inner(&request.sandbox_id, &request.name) - .await?; - self.lifecycle_event_fences - .remove(&event_sandbox_id, &request.name); + let deleted = self.delete_sandbox_inner(&request.sandbox_id).await?; + self.lifecycle_event_fences.remove(&event_sandbox_id); if deleted && !event_sandbox_id.is_empty() { let _ = self.events.send(WatchSandboxesEvent { payload: Some(watch_sandboxes_event::Payload::Deleted( @@ -3818,30 +3687,6 @@ fn pending_sandbox_snapshot( } } -fn pending_sandbox_record_id( - pending: &HashMap, - sandbox_id: &str, - sandbox_name: &str, -) -> Result, Status> { - if !sandbox_id.is_empty() { - return Ok(pending - .get(sandbox_id) - .map(|record| record.sandbox.id.clone())); - } - - let mut matches = pending - .values() - .filter(|record| !sandbox_name.is_empty() && record.sandbox.name == sandbox_name) - .map(|record| record.sandbox.id.clone()); - let first = matches.next(); - if first.is_some() && matches.next().is_some() { - return Err(Status::failed_precondition(format!( - "multiple pending Docker sandboxes are named '{sandbox_name}'; use sandbox_id" - ))); - } - Ok(first) -} - fn provisioning_condition() -> DriverCondition { DriverCondition { r#type: "Ready".to_string(), @@ -6567,16 +6412,12 @@ fn build_container_create_body_for_image( }) } -/// Reject driver requests that arrive with neither a sandbox id nor a -/// sandbox name. Without this guard, downstream label filters degenerate -/// to "match every managed container in the namespace", which would let -/// `delete_sandbox`/`stop_sandbox`/`get_sandbox` pick an arbitrary -/// sandbox out of the set the driver manages. -fn require_sandbox_identifier(sandbox_id: &str, sandbox_name: &str) -> Result<(), Status> { - if sandbox_id.is_empty() && sandbox_name.is_empty() { - return Err(Status::invalid_argument( - "sandbox_id or sandbox_name is required", - )); +/// Reject driver requests that arrive without a sandbox id. Drivers locate a +/// sandbox by id only: names are unique per workspace, not across the driver, +/// and an empty id would make the label filters match every managed container. +fn require_sandbox_id(sandbox_id: &str) -> Result<(), Status> { + if sandbox_id.is_empty() { + return Err(Status::invalid_argument("sandbox_id is required")); } Ok(()) } diff --git a/crates/openshell-driver-docker/src/tests.rs b/crates/openshell-driver-docker/src/tests.rs index c86e2d0..ab1f8f9 100644 --- a/crates/openshell-driver-docker/src/tests.rs +++ b/crates/openshell-driver-docker/src/tests.rs @@ -1058,7 +1058,6 @@ async fn start_sandbox_span_does_not_capture_launch_authentication() { test_driver_with_config(runtime_config()) .start_sandbox( "sandbox-1", - "sandbox", "invalid-generation", b"secret-launch-authentication", None, @@ -1151,8 +1150,7 @@ async fn tracing_direct_start_exports_a_docker_start_span() { let driver = test_driver_with_config(runtime_config()); Box::pin( - DockerComputeDriver::start_sandbox(&driver, "", "", "", &[], None) - .with_subscriber(subscriber), + DockerComputeDriver::start_sandbox(&driver, "", "", &[], None).with_subscriber(subscriber), ) .await .expect_err("missing identifier should fail"); @@ -3438,19 +3436,16 @@ fn docker_info_reports_wsl2_rejects_plain_linux() { } #[test] -fn require_sandbox_identifier_rejects_when_id_and_name_are_empty() { - // Regression test: `delete_sandbox` (and the other identifier-keyed - // RPCs) must refuse requests where both the id and the name are - // empty. Otherwise the empty filters fed to - // `find_managed_container_summary` match the first managed container +fn require_sandbox_id_rejects_an_empty_id() { + // Regression test: `delete_sandbox` (and the other id-keyed RPCs) must + // refuse requests with an empty id. Otherwise the empty filter fed to + // `find_managed_container_summary` matches the first managed container // in the namespace, allowing an arbitrary sandbox to be deleted. - let err = require_sandbox_identifier("", "").unwrap_err(); + let err = require_sandbox_id("").unwrap_err(); assert_eq!(err.code(), tonic::Code::InvalidArgument); - assert!(err.message().contains("sandbox_id or sandbox_name")); + assert!(err.message().contains("sandbox_id")); - require_sandbox_identifier("sbx-1", "").expect("id-only is accepted"); - require_sandbox_identifier("", "demo").expect("name-only is accepted"); - require_sandbox_identifier("sbx-1", "demo").expect("id and name is accepted"); + require_sandbox_id("sbx-1").expect("non-empty id is accepted"); } #[test] @@ -4103,22 +4098,6 @@ fn pending_sandbox_snapshot_uses_docker_namespace_and_starting_condition() { assert_eq!(snapshot.name, "demo"); assert_eq!(snapshot.namespace, "docker-dev"); assert!(snapshot.spec.is_none()); - let pending = HashMap::from([( - snapshot.id.clone(), - PendingSandboxRecord { - sandbox: snapshot.clone(), - task: None, - }, - )]); - assert_eq!( - pending_sandbox_record_id(&pending, "sbx-123", "wrong-name").unwrap(), - Some("sbx-123".to_string()) - ); - assert_eq!( - pending_sandbox_record_id(&pending, "", "demo").unwrap(), - Some("sbx-123".to_string()) - ); - let status = snapshot.status.expect("status"); assert!(!status.deleting); assert_eq!(status.name, "demo"); @@ -4129,32 +4108,99 @@ fn pending_sandbox_snapshot_uses_docker_namespace_and_starting_condition() { assert_eq!(status.conditions[0].message, "Docker container is starting"); } -#[test] -fn pending_lookup_is_id_authoritative_and_rejects_ambiguous_names() { +#[tokio::test] +async fn pending_lookup_matches_the_id_only_and_ignores_names() { + let driver = test_driver_with_config(runtime_config()); let mut alpha = test_sandbox(); alpha.id = "sbx-alpha".to_string(); alpha.workspace = "workspace-alpha".to_string(); let mut beta = alpha.clone(); beta.id = "sbx-beta".to_string(); beta.workspace = "workspace-beta".to_string(); - let pending = [alpha, beta] - .into_iter() - .map(|sandbox| { - ( + { + let mut pending = driver.pending.lock().await; + for sandbox in [alpha, beta] { + pending.insert( sandbox.id.clone(), PendingSandboxRecord { sandbox, task: None, }, - ) - }) - .collect(); + ); + } + } + // Both sandboxes are named "demo"; only the id selects one of them. + assert_eq!( + driver.pending_snapshot("sbx-alpha").await.unwrap().id, + "sbx-alpha" + ); assert_eq!( - pending_sandbox_record_id(&pending, "sbx-alpha", "demo").unwrap(), - Some("sbx-alpha".to_string()) + driver.pending_snapshot("sbx-beta").await.unwrap().id, + "sbx-beta" ); - assert!(pending_sandbox_record_id(&pending, "", "demo").is_err()); + assert!(driver.pending_snapshot("demo").await.is_none()); + assert!(driver.pending_snapshot("").await.is_none()); + + assert!(driver.remove_pending_sandbox("demo").await.is_none()); + assert_eq!( + driver + .remove_pending_sandbox("sbx-beta") + .await + .unwrap() + .sandbox + .id, + "sbx-beta" + ); + assert!(driver.pending_snapshot("sbx-alpha").await.is_some()); +} + +#[tokio::test] +async fn lifecycle_requests_reject_an_empty_id() { + let driver = test_driver_with_config(runtime_config()); + // The name is deprecated and ignored: it must not stand in for the id. + let errors = [ + ComputeDriver::get_sandbox( + &driver, + Request::new(GetSandboxRequest { + sandbox_id: String::new(), + name: "demo".to_string(), + }), + ) + .await + .unwrap_err(), + ComputeDriver::stop_sandbox( + &driver, + Request::new(StopSandboxRequest { + sandbox_id: String::new(), + name: "demo".to_string(), + }), + ) + .await + .unwrap_err(), + ComputeDriver::start_sandbox( + &driver, + Request::new(StartSandboxRequest { + name: "demo".to_string(), + ..Default::default() + }), + ) + .await + .unwrap_err(), + ComputeDriver::delete_sandbox( + &driver, + Request::new(DeleteSandboxRequest { + sandbox_id: String::new(), + name: "demo".to_string(), + }), + ) + .await + .unwrap_err(), + ]; + for error in errors { + assert_eq!(error.code(), tonic::Code::InvalidArgument); + assert!(error.message().contains("sandbox_id")); + } } #[test] @@ -4420,12 +4466,11 @@ fn lifecycle_fence_rejects_polled_exit_from_before_restart() { fences.finish_start("sandbox-1"); assert!(!fences.start_in_progress("sandbox-1")); - fences.request_stop("sandbox-1", "demo"); - assert!(fences.stop_requested("sandbox-1", "")); - assert!(fences.stop_requested("", "demo")); - fences.clear_stop("sandbox-1", "demo"); - assert!(!fences.stop_requested("sandbox-1", "demo")); - fences.request_stop("sandbox-1", "demo"); + fences.request_stop("sandbox-1"); + assert!(fences.stop_requested("sandbox-1")); + fences.clear_stop("sandbox-1"); + assert!(!fences.stop_requested("sandbox-1")); + fences.request_stop("sandbox-1"); fences.record_previous_exit("sandbox-1", Some("2026-08-12T16:39:13Z")); assert_eq!( @@ -4461,10 +4506,9 @@ fn lifecycle_fence_rejects_polled_exit_from_before_restart() { Some(&new_exit), )); - fences.remove("sandbox-1", "demo"); + fences.remove("sandbox-1"); assert!(fences.previous_exit("sandbox-1").is_none()); - assert!(!fences.stop_requested("sandbox-1", "")); - assert!(!fences.stop_requested("", "demo")); + assert!(!fences.stop_requested("sandbox-1")); } fn exited_sandbox_with_ready_reason(reason: &str) -> DriverSandbox { diff --git a/crates/openshell-driver-podman/src/grpc.rs b/crates/openshell-driver-podman/src/grpc.rs index 5318b3f..b542583 100644 --- a/crates/openshell-driver-podman/src/grpc.rs +++ b/crates/openshell-driver-podman/src/grpc.rs @@ -677,7 +677,7 @@ mod tests { &service, Request::new(DeleteSandboxRequest { sandbox_id: String::new(), - name: "demo".to_string(), + name: String::new(), }), ) .await @@ -716,7 +716,7 @@ mod tests { &service, Request::new(DeleteSandboxRequest { sandbox_id: sandbox_id.to_string(), - name: "demo".to_string(), + name: String::new(), }), ) .await diff --git a/crates/openshell-driver-vm/src/driver.rs b/crates/openshell-driver-vm/src/driver.rs index 69a0f76..4a325dd 100644 --- a/crates/openshell-driver-vm/src/driver.rs +++ b/crates/openshell-driver-vm/src/driver.rs @@ -1078,35 +1078,6 @@ struct SandboxRecord { deleting: bool, } -/// Resolve a lifecycle request to a registry key. -/// -/// A non-empty `sandbox_id` is authoritative: resolution uses that id alone and -/// never falls back to the name, so a request for an already-removed sandbox -/// reports absence instead of matching a same-named sandbox in another -/// workspace. Only a caller that supplies no id resolves by name, and because -/// sandbox names are unique per workspace rather than globally, a name matching -/// more than one record is rejected instead of decided by iteration order. -fn resolve_record_id( - registry: &HashMap, - sandbox_id: &str, - sandbox_name: &str, -) -> Result, Status> { - if !sandbox_id.is_empty() { - return Ok(registry.get_key_value(sandbox_id).map(|(id, _)| id.clone())); - } - - let mut matches = registry - .iter() - .filter(|(_, record)| record.snapshot.name == sandbox_name); - let first = matches.next().map(|(id, _)| id.clone()); - if matches.next().is_some() { - return Err(Status::failed_precondition(format!( - "sandbox_name {sandbox_name} matched more than one sandbox; supply sandbox_id" - ))); - } - Ok(first) -} - #[derive(Debug, Clone, Copy, PartialEq, Eq, serde::Serialize, serde::Deserialize)] enum OverlayPreparation { Fresh, @@ -2353,13 +2324,11 @@ impl VmDriver { Ok(()) } - pub async fn stop_sandbox(&self, sandbox_id: &str, sandbox_name: &str) -> Result<(), Status> { - if !sandbox_id.is_empty() { - validate_sandbox_id(sandbox_id)?; - } + pub async fn stop_sandbox(&self, sandbox_id: &str) -> Result<(), Status> { + validate_sandbox_id(sandbox_id)?; let record_id = { let registry = self.registry.lock().await; - resolve_record_id(®istry, sandbox_id, sandbox_name)? + registry.get_key_value(sandbox_id).map(|(id, _)| id.clone()) } .ok_or_else(|| Status::not_found("sandbox not found"))?; @@ -2435,20 +2404,19 @@ impl VmDriver { pub async fn start_sandbox( &self, sandbox_id: &str, - sandbox_name: &str, generation_id: &str, launch_authentication: Vec, ) -> Result<(), Status> { - if !sandbox_id.is_empty() { - validate_sandbox_id(sandbox_id)?; - } + validate_sandbox_id(sandbox_id)?; let generation = openshell_core::sandbox_generation::SandboxGenerationId::parse( generation_id.to_string(), ) .map_err(|error| Status::invalid_argument(error.to_string()))?; let (record_id, state_dir, already_running) = { let registry = self.registry.lock().await; - let id = resolve_record_id(®istry, sandbox_id, sandbox_name)? + let id = registry + .get_key_value(sandbox_id) + .map(|(id, _)| id.clone()) .ok_or_else(|| Status::not_found("sandbox not found"))?; let record = registry .get(&id) @@ -2498,7 +2466,7 @@ impl VmDriver { // during startup recovery represents a new gateway session, so // restart the VM before installing it rather than leaving the old // supervisor connected with invalid credentials. - self.stop_sandbox(&record_id, sandbox_name).await?; + self.stop_sandbox(&record_id).await?; } remove_runtime_generation_material(&state_dir) @@ -2553,22 +2521,15 @@ impl VmDriver { otel.name = "vm.teardown", otel.status_code = tracing::field::Empty, sandbox.id = %sandbox_id, - sandbox.name = %sandbox_name, ) )] - pub async fn delete_sandbox( - &self, - sandbox_id: &str, - sandbox_name: &str, - ) -> Result { + pub async fn delete_sandbox(&self, sandbox_id: &str) -> Result { let span_status = openshell_otel::ErrorStatusGuard::current(); - if !sandbox_id.is_empty() { - validate_sandbox_id(sandbox_id)?; - } + validate_sandbox_id(sandbox_id)?; let record_id = { let registry = self.registry.lock().await; - resolve_record_id(®istry, sandbox_id, sandbox_name)? + registry.get_key_value(sandbox_id).map(|(id, _)| id.clone()) }; let Some(record_id) = record_id else { @@ -2633,26 +2594,13 @@ impl VmDriver { span_status.finish(Ok(DeleteSandboxResponse { deleted: true })) } - pub async fn get_sandbox( - &self, - sandbox_id: &str, - sandbox_name: &str, - ) -> Result, Status> { - if !sandbox_id.is_empty() { - validate_sandbox_id(sandbox_id)?; - } + pub async fn get_sandbox(&self, sandbox_id: &str) -> Result, Status> { + validate_sandbox_id(sandbox_id)?; let registry = self.registry.lock().await; - let sandbox = if sandbox_id.is_empty() { - registry - .values() - .find(|record| record.snapshot.name == sandbox_name) - .map(|record| record.snapshot.clone()) - } else { - registry - .get(sandbox_id) - .map(|record| record.snapshot.clone()) - }; + let sandbox = registry + .get(sandbox_id) + .map(|record| record.snapshot.clone()); Ok(sandbox) } @@ -5371,23 +5319,11 @@ impl ComputeDriver for VmDriver { request: Request, ) -> Result, Status> { let request = request.into_inner(); - if request.sandbox_id.is_empty() && request.name.is_empty() { - return Err(Status::invalid_argument( - "sandbox_id or sandbox_name is required", - )); - } - let sandbox = self - .get_sandbox(&request.sandbox_id, &request.name) + .get_sandbox(&request.sandbox_id) .await? .ok_or_else(|| Status::not_found("sandbox not found"))?; - if !request.sandbox_id.is_empty() && request.sandbox_id != sandbox.id { - return Err(Status::failed_precondition( - "sandbox_id did not match the fetched sandbox", - )); - } - Ok(Response::new(GetSandboxResponse { sandbox: Some(sandbox), })) @@ -5416,8 +5352,7 @@ impl ComputeDriver for VmDriver { request: Request, ) -> Result, Status> { let request = request.into_inner(); - self.stop_sandbox(&request.sandbox_id, &request.name) - .await?; + self.stop_sandbox(&request.sandbox_id).await?; Ok(Response::new(StopSandboxResponse {})) } @@ -5428,7 +5363,6 @@ impl ComputeDriver for VmDriver { let request = request.into_inner(); self.start_sandbox( &request.sandbox_id, - &request.name, &request.generation_id, request.launch_authentication, ) @@ -5441,9 +5375,7 @@ impl ComputeDriver for VmDriver { request: Request, ) -> Result, Status> { let request = request.into_inner(); - let response = self - .delete_sandbox(&request.sandbox_id, &request.name) - .await?; + let response = self.delete_sandbox(&request.sandbox_id).await?; Ok(Response::new(response)) } @@ -8944,13 +8876,15 @@ mod tests { .await .is_err() ); - client - .delete_sandbox(request_with_traceparent(DeleteSandboxRequest { - sandbox_id: String::new(), - name: String::new(), - })) - .await - .unwrap(); + assert!( + client + .delete_sandbox(request_with_traceparent(DeleteSandboxRequest { + sandbox_id: String::new(), + name: String::new(), + })) + .await + .is_err() + ); let watch = client .watch_sandboxes(request_with_traceparent(WatchSandboxesRequest {})) .await @@ -9169,11 +9103,7 @@ mod tests { driver.restore_persisted_sandboxes().await; - let restored = driver - .get_sandbox(&sandbox.id, &sandbox.name) - .await - .unwrap() - .unwrap(); + let restored = driver.get_sandbox(&sandbox.id).await.unwrap().unwrap(); let status = restored.status.as_ref().unwrap(); assert_eq!(status.conditions[0].reason, reason); let identity = status @@ -9253,7 +9183,7 @@ mod tests { driver.restore_persisted_sandboxes().await; let restored = driver - .get_sandbox(&sandbox.id, &sandbox.name) + .get_sandbox(&sandbox.id) .await .unwrap() .expect("inactive sandbox remains manageable"); @@ -9277,13 +9207,7 @@ mod tests { .unwrap(), owner ); - assert!( - driver - .delete_sandbox(&sandbox.id, &sandbox.name) - .await - .unwrap() - .deleted - ); + assert!(driver.delete_sandbox(&sandbox.id).await.unwrap().deleted); assert!( !state_dir.exists(), "explicit delete removes retained state" @@ -9541,7 +9465,7 @@ mod tests { let _dispatch = tracing::dispatcher::set_default(&traced.dispatch); let driver = test_driver_with_extensions(LifecycleExtensionRegistry::new()); - assert!(driver.delete_sandbox("../invalid", "").await.is_err()); + assert!(driver.delete_sandbox("../invalid").await.is_err()); let spans = traced.exporter.get_finished_spans().unwrap(); let deletion = spans @@ -10809,12 +10733,7 @@ mod tests { let (fresh_authentication, _) = test_launch_authentication("fresh"); let err = driver - .start_sandbox( - &sandbox.id, - &sandbox.name, - "g0000000000000001", - fresh_authentication, - ) + .start_sandbox(&sandbox.id, "g0000000000000001", fresh_authentication) .await .expect_err("start without an image should fail"); @@ -10832,7 +10751,7 @@ mod tests { "failed start must retain its terminal marker" ); let restored = driver - .get_sandbox(&sandbox.id, &sandbox.name) + .get_sandbox(&sandbox.id) .await .unwrap() .expect("failed start must retain its stopped registry record"); @@ -10891,7 +10810,7 @@ mod tests { ); driver - .start_sandbox(&sandbox.id, &sandbox.name, "g0000000000000001", Vec::new()) + .start_sandbox(&sandbox.id, "g0000000000000001", Vec::new()) .await .expect("matching already-running start must remain an idempotent no-op"); @@ -11090,11 +11009,11 @@ mod tests { }, ); if delete { - let response = driver.delete_sandbox(id, "").await.unwrap(); + let response = driver.delete_sandbox(id).await.unwrap(); assert!(response.deleted); assert!(!state_dir.exists()); } else { - driver.stop_sandbox(id, "").await.unwrap(); + driver.stop_sandbox(id).await.unwrap(); assert!(state_dir.join(SANDBOX_STOPPED_FILE).exists()); } assert!( @@ -11216,7 +11135,6 @@ mod tests { let error = driver .start_sandbox( &sandbox.id, - &sandbox.name, "g0000000000000001", br#"{"secret-marker-that-must-not-be-logged":true}"#.to_vec(), ) @@ -12658,7 +12576,7 @@ mod tests { .await; let err = driver - .delete_sandbox("sandbox-123", "sandbox-123") + .delete_sandbox("sandbox-123") .await .expect_err("state dir cleanup should fail for a file path"); assert!(err.message().contains("not a directory")); @@ -12680,7 +12598,7 @@ mod tests { } let response = driver - .delete_sandbox("sandbox-123", "sandbox-123") + .delete_sandbox("sandbox-123") .await .expect("delete retry should succeed once cleanup works"); assert!(response.deleted); @@ -12734,7 +12652,7 @@ mod tests { } let response = driver - .delete_sandbox("sandbox-123", "sandbox-123") + .delete_sandbox("sandbox-123") .await .expect("delete should handle accepted-but-not-started sandboxes"); assert!(response.deleted); @@ -14425,7 +14343,7 @@ while :; do sleep 0.05; done"#, let beta = insert_named_record(&driver, "vm-beta", "demo", "beta").await; driver - .stop_sandbox("vm-beta", "demo") + .stop_sandbox("vm-beta") .await .expect("stop by id should be accepted"); @@ -14447,7 +14365,7 @@ while :; do sleep 0.05; done"#, insert_named_record(&driver, "vm-beta", "demo", "beta").await; let response = driver - .delete_sandbox("vm-beta", "demo") + .delete_sandbox("vm-beta") .await .expect("delete by id should be accepted"); @@ -14469,7 +14387,7 @@ while :; do sleep 0.05; done"#, insert_named_record(&driver, "vm-beta", "demo", "beta").await; let first = driver - .delete_sandbox("vm-beta", "demo") + .delete_sandbox("vm-beta") .await .expect("the first delete should be accepted"); assert!(first.deleted); @@ -14478,7 +14396,7 @@ while :; do sleep 0.05; done"#, // ordinary caller behavior. The id is gone from the registry by now, and // resolving it by name instead would destroy the sandbox in `alpha`. let second = driver - .delete_sandbox("vm-beta", "demo") + .delete_sandbox("vm-beta") .await .expect("a repeated delete should be accepted"); @@ -14500,19 +14418,14 @@ while :; do sleep 0.05; done"#, let alpha = insert_named_record(&driver, "vm-alpha", "demo", "alpha").await; let stop_error = driver - .stop_sandbox("vm-absent", "demo") + .stop_sandbox("vm-absent") .await .expect_err("a supplied id that is not registered must not resolve by name"); assert_eq!(stop_error.code(), Code::NotFound); let (start_authentication, _) = test_launch_authentication("absent"); let start_error = driver - .start_sandbox( - "vm-absent", - "demo", - "g0000000000000001", - start_authentication, - ) + .start_sandbox("vm-absent", "g0000000000000001", start_authentication) .await .expect_err("a supplied id that is not registered must not resolve by name"); assert_eq!(start_error.code(), Code::NotFound); @@ -14524,30 +14437,29 @@ while :; do sleep 0.05; done"#, } #[tokio::test] - async fn a_name_only_request_matching_two_sandboxes_is_rejected() { + async fn lifecycle_requests_reject_an_empty_id() { let temp = tempfile::tempdir().unwrap(); let driver = resolution_test_driver(temp.path()); let alpha = insert_named_record(&driver, "vm-alpha", "demo", "alpha").await; let beta = insert_named_record(&driver, "vm-beta", "demo", "beta").await; - // Without an id the driver has nothing to disambiguate with: the request - // carries no workspace, and picking by iteration order would stop or - // delete an arbitrary one of the two. + // Two sandboxes share the name "demo" in different workspaces. Without + // an id the driver has nothing to select one with, and must not guess. for error in [ - driver.stop_sandbox("", "demo").await.unwrap_err(), + driver.get_sandbox("").await.unwrap_err(), + driver.stop_sandbox("").await.unwrap_err(), driver .start_sandbox( "", - "demo", "g0000000000000001", test_launch_authentication("ambiguous").0, ) .await .unwrap_err(), - driver.delete_sandbox("", "demo").await.unwrap_err(), + driver.delete_sandbox("").await.unwrap_err(), ] { - assert_eq!(error.code(), Code::FailedPrecondition); - assert!(error.message().contains("matched more than one sandbox")); + assert_eq!(error.code(), Code::InvalidArgument); + assert_eq!(error.message(), "sandbox id is required"); } let registry = driver.registry.lock().await; @@ -14557,21 +14469,6 @@ while :; do sleep 0.05; done"#, assert!(!beta.join(SANDBOX_STOPPED_FILE).exists()); } - #[tokio::test] - async fn a_name_only_request_still_resolves_a_unique_name() { - let temp = tempfile::tempdir().unwrap(); - let driver = resolution_test_driver(temp.path()); - let alpha = insert_named_record(&driver, "vm-alpha", "demo", "alpha").await; - insert_named_record(&driver, "vm-beta", "other", "beta").await; - - driver - .stop_sandbox("", "demo") - .await - .expect("an unambiguous name-only stop should still resolve"); - - assert!(alpha.join(SANDBOX_STOPPED_FILE).exists()); - } - // ── VM mount config tests ────────────────────────────────────────── fn mount_test_config(enable_bind_mounts: bool) -> VmDriverConfig { From 1dbce295adbed5c06fe4c1f72b9ab7e76baf5f57 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 4 Dec 2026 11:49:32 +0100 Subject: [PATCH 2/3] build: pin OpenShell to the head of the id-only lifecycle PR Move every OpenShell git dependency to bdd5233a98, the head of ai-openshell/openshell#3611, so the drivers build against the proto that deprecates the request `name` field. Re-pin to the merge commit once that PR lands. Signed-off-by: Evan Lezar --- Cargo.lock | 28 ++++++++++++++-------------- Cargo.toml | 20 ++++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e9288fe..ae69109 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2562,7 +2562,7 @@ dependencies = [ [[package]] name = "openshell-core" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "async-trait", "base64 0.22.1", @@ -2608,7 +2608,7 @@ dependencies = [ [[package]] name = "openshell-crypto" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "aws-lc-rs", "jsonwebtoken", @@ -2667,7 +2667,7 @@ dependencies = [ [[package]] name = "openshell-driver-launch" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "http", "prost", @@ -2727,7 +2727,7 @@ dependencies = [ [[package]] name = "openshell-driver-sdk" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "http", "libc", @@ -2799,7 +2799,7 @@ dependencies = [ [[package]] name = "openshell-extension-core" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "h2", "hyper", @@ -2814,7 +2814,7 @@ dependencies = [ [[package]] name = "openshell-isolation-interface" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "openshell-core", "serde", @@ -2826,7 +2826,7 @@ dependencies = [ [[package]] name = "openshell-ocsf" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "jiff 1.0.3", "serde", @@ -2840,7 +2840,7 @@ dependencies = [ [[package]] name = "openshell-otel" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "async-trait", "bytes", @@ -2872,7 +2872,7 @@ dependencies = [ [[package]] name = "openshell-otel-test-support" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "bytes", "http", @@ -2896,7 +2896,7 @@ dependencies = [ [[package]] name = "openshell-policy" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "hickory-proto", "miette", @@ -2911,7 +2911,7 @@ dependencies = [ [[package]] name = "openshell-policy-schema" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "miette", "noyalib", @@ -2924,7 +2924,7 @@ dependencies = [ [[package]] name = "openshell-sandbox-backend" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "async-trait", "bytes", @@ -2956,7 +2956,7 @@ dependencies = [ [[package]] name = "openshell-spiffe" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "async-trait", "base64 0.22.1", @@ -2968,7 +2968,7 @@ dependencies = [ [[package]] name = "openshell-vfio" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=9972314fa89320860e734f533e08d6994407d5fe#9972314fa89320860e734f533e08d6994407d5fe" +source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" dependencies = [ "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index 057ab6a..d0ed01b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,16 +16,16 @@ repository = "https://github.com/NVIDIA/OpenShell" # OpenShell platform crates, pinned to one commit of ai-openshell/openshell: a main commit (v0.1.11 plus later changes). # It has the driver launch protocol and SDK (PR 5914), which the drivers here build on, and the # openshell-container-runtime crate (PR 6023). -openshell-core = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe", default-features = false } -openshell-isolation-interface = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-sandbox-backend = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-otel = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-driver-sdk = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-driver-launch = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-otel-test-support = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-policy = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-vfio = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe" } -openshell-crypto = { git = "https://github.com/ai-openshell/openshell", rev = "9972314fa89320860e734f533e08d6994407d5fe", default-features = false, features = ["aws-lc"] } +openshell-core = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5", default-features = false } +openshell-isolation-interface = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-sandbox-backend = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-otel = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-driver-sdk = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-driver-launch = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-otel-test-support = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-policy = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-vfio = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } +openshell-crypto = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5", default-features = false, features = ["aws-lc"] } openshell-container-runtime = { path = "crates/openshell-container-runtime" } tokio = { version = "1.53.3", features = ["full"] } From 3b6d8eae3239c5a1891a8ee910398581fab0dbc9 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Fri, 4 Dec 2026 13:03:30 +0100 Subject: [PATCH 3/3] build: re-pin OpenShell to the reworked id-only lifecycle PR head Move every OpenShell git dependency to bbb10834c8, the new head of ai-openshell/openshell#3611 after it was force-pushed. Signed-off-by: Evan Lezar --- Cargo.lock | 28 ++++++++++++++-------------- Cargo.toml | 20 ++++++++++---------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ae69109..6f015b7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2562,7 +2562,7 @@ dependencies = [ [[package]] name = "openshell-core" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "async-trait", "base64 0.22.1", @@ -2608,7 +2608,7 @@ dependencies = [ [[package]] name = "openshell-crypto" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "aws-lc-rs", "jsonwebtoken", @@ -2667,7 +2667,7 @@ dependencies = [ [[package]] name = "openshell-driver-launch" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "http", "prost", @@ -2727,7 +2727,7 @@ dependencies = [ [[package]] name = "openshell-driver-sdk" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "http", "libc", @@ -2799,7 +2799,7 @@ dependencies = [ [[package]] name = "openshell-extension-core" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "h2", "hyper", @@ -2814,7 +2814,7 @@ dependencies = [ [[package]] name = "openshell-isolation-interface" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "openshell-core", "serde", @@ -2826,7 +2826,7 @@ dependencies = [ [[package]] name = "openshell-ocsf" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "jiff 1.0.3", "serde", @@ -2840,7 +2840,7 @@ dependencies = [ [[package]] name = "openshell-otel" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "async-trait", "bytes", @@ -2872,7 +2872,7 @@ dependencies = [ [[package]] name = "openshell-otel-test-support" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "bytes", "http", @@ -2896,7 +2896,7 @@ dependencies = [ [[package]] name = "openshell-policy" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "hickory-proto", "miette", @@ -2911,7 +2911,7 @@ dependencies = [ [[package]] name = "openshell-policy-schema" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "miette", "noyalib", @@ -2924,7 +2924,7 @@ dependencies = [ [[package]] name = "openshell-sandbox-backend" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "async-trait", "bytes", @@ -2956,7 +2956,7 @@ dependencies = [ [[package]] name = "openshell-spiffe" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "async-trait", "base64 0.22.1", @@ -2968,7 +2968,7 @@ dependencies = [ [[package]] name = "openshell-vfio" version = "0.0.0" -source = "git+https://github.com/ai-openshell/openshell?rev=bdd5233a982674bb6cea615df70b85411dbcdcc5#bdd5233a982674bb6cea615df70b85411dbcdcc5" +source = "git+https://github.com/ai-openshell/openshell?rev=bbb10834c874a57a034a01b2b117e79b6e3c1ab8#bbb10834c874a57a034a01b2b117e79b6e3c1ab8" dependencies = [ "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index d0ed01b..0c25989 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,16 +16,16 @@ repository = "https://github.com/NVIDIA/OpenShell" # OpenShell platform crates, pinned to one commit of ai-openshell/openshell: a main commit (v0.1.11 plus later changes). # It has the driver launch protocol and SDK (PR 5914), which the drivers here build on, and the # openshell-container-runtime crate (PR 6023). -openshell-core = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5", default-features = false } -openshell-isolation-interface = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-sandbox-backend = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-otel = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-driver-sdk = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-driver-launch = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-otel-test-support = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-policy = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-vfio = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5" } -openshell-crypto = { git = "https://github.com/ai-openshell/openshell", rev = "bdd5233a982674bb6cea615df70b85411dbcdcc5", default-features = false, features = ["aws-lc"] } +openshell-core = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8", default-features = false } +openshell-isolation-interface = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-sandbox-backend = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-otel = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-driver-sdk = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-driver-launch = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-otel-test-support = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-policy = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-vfio = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8" } +openshell-crypto = { git = "https://github.com/ai-openshell/openshell", rev = "bbb10834c874a57a034a01b2b117e79b6e3c1ab8", default-features = false, features = ["aws-lc"] } openshell-container-runtime = { path = "crates/openshell-container-runtime" } tokio = { version = "1.53.3", features = ["full"] }