Skip to content

Commit 15abc80

Browse files
committed
refactor(vm): use sandbox backend protocol
Signed-off-by: Drew Newberry <anewberry@nvidia.com>
1 parent 2aff48d commit 15abc80

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎Cargo.lock‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/openshell-driver-vm/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ required-features = ["compute-driver"]
2222
[dependencies]
2323
openshell-core = { path = "../openshell-core", default-features = false }
2424
openshell-isolation-interface = { path = "../openshell-isolation-interface" }
25+
openshell-sandbox-backend = { path = "../openshell-sandbox-backend" }
2526
openshell-otel = { path = "../openshell-otel", optional = true }
2627
openshell-policy = { path = "../openshell-policy", optional = true }
2728
openshell-driver-podman = { path = "../openshell-driver-podman", optional = true }

‎crates/openshell-driver-vm/src/driver.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ use openshell_core::proto::compute::v1::{
5959
use openshell_core::proto_struct::{
6060
deserialize_optional_non_empty_string_list, struct_to_json_value,
6161
};
62-
use openshell_isolation_interface::boundary_protocol::{
62+
use openshell_sandbox_backend::boundary_protocol::{
6363
BoundaryConfig, BoundaryListener, BoundaryTopology, GatewayVerificationKey,
6464
SandboxTlsClientConfig, SandboxTlsMaterial, SandboxTlsServerConfig, SandboxTransport,
6565
generate_sandbox_tls_material,

‎crates/openshell-driver-vm/src/isolation/mod.rs‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
//! VM claims; `openshell-isolation-interface` and `openshell-sandbox` provide
99
//! the common control and boundary behavior.
1010
11-
use openshell_isolation_interface::boundary_protocol::{
12-
BoundaryConfig, BoundaryListener, BoundaryTopology, GatewayVerificationKey,
13-
SandboxTlsClientConfig, SandboxTlsServerConfig, SandboxTransport,
14-
};
1511
use openshell_isolation_interface::contract::{
1612
BackendError, DriverFenceEvidence, ResolvedWorkloadIdentity,
1713
};
14+
use openshell_sandbox_backend::boundary_protocol::{
15+
BoundaryConfig, BoundaryListener, BoundaryTopology, GatewayVerificationKey,
16+
SandboxTlsClientConfig, SandboxTlsServerConfig, SandboxTransport,
17+
};
1818
use std::collections::{BTreeMap, HashMap};
1919

2020
/// Driver-owned inputs that bind one VM generation to one supervisor boundary.
@@ -97,7 +97,7 @@ impl VmBoundarySpec {
9797
#[cfg(test)]
9898
mod tests {
9999
use super::*;
100-
use openshell_isolation_interface::boundary_protocol::{
100+
use openshell_sandbox_backend::boundary_protocol::{
101101
SandboxTlsClientConfig, SandboxTlsServerConfig, SandboxTransport,
102102
generate_sandbox_tls_material,
103103
};

0 commit comments

Comments
 (0)