diff --git a/Cargo.lock b/Cargo.lock index 109e6df8d5..6b94d27787 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -984,9 +984,9 @@ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" [[package]] name = "chacha20" -version = "0.10.1" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" dependencies = [ "cfg-if", "cipher", @@ -1540,9 +1540,9 @@ dependencies = [ [[package]] name = "der" -version = "0.8.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71fd89660b2dc699704064e59e9dba0147b903e85319429e131620d022be411b" +checksum = "a878c850e9e421b20262e9b41f9c860e4785fa07541c266b62ff9d1ef998a80a" dependencies = [ "const-oid 0.10.2", "pem-rfc7468 1.0.0", @@ -1699,7 +1699,7 @@ version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0681a4fc24c767085329728d8dfba959af91228aa4610cca4f8ce317ba46ae0" dependencies = [ - "der 0.8.0", + "der 0.8.2", "digest 0.11.2", "elliptic-curve 0.14.1", "rfc6979 0.6.0", @@ -5293,7 +5293,7 @@ version = "0.8.0-rc.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "986d2e952779af96ea048f160fd9194e1751b4faea78bcf3ceb456efe008088e" dependencies = [ - "der 0.8.0", + "der 0.8.2", "spki 0.8.0", ] @@ -5306,7 +5306,7 @@ dependencies = [ "aes", "aes-gcm", "cbc", - "der 0.8.0", + "der 0.8.2", "pbkdf2", "rand_core 0.10.1", "scrypt", @@ -5330,7 +5330,7 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "451913da69c775a56034ea8d9003d27ee8948e12443eae7c038ba100a4f21cb7" dependencies = [ - "der 0.8.0", + "der 0.8.2", "pkcs5", "rand_core 0.10.1", "spki 0.8.0", @@ -6136,7 +6136,7 @@ dependencies = [ "curve25519-dalek 5.0.0", "data-encoding", "delegate", - "der 0.8.0", + "der 0.8.2", "digest 0.11.2", "ecdsa 0.17.0", "ed25519-dalek 3.0.0", @@ -6277,9 +6277,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.38" +version = "0.23.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69f9466fb2c14ea04357e91413efb882e2a6d4a406e625449bc0a5d360d53a21" +checksum = "0d41d731c7d2f962d1ccc364cec258de3c0e93b38c2fb3ba97ac74513048d634" dependencies = [ "aws-lc-rs", "log", @@ -6351,9 +6351,9 @@ checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" [[package]] name = "rustls-webpki" -version = "0.103.13" +version = "0.103.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" dependencies = [ "aws-lc-rs", "ring", @@ -6465,7 +6465,7 @@ checksum = "d56d437c2f19203ce5f7122e507831de96f3d2d4d3be5af44a0b0a09d8a80e4d" dependencies = [ "base16ct 1.0.0", "ctutils", - "der 0.8.0", + "der 0.8.2", "hybrid-array", "subtle", "zeroize", @@ -6888,9 +6888,9 @@ dependencies = [ [[package]] name = "spin" -version = "0.9.8" +version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" +checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e" dependencies = [ "lock_api", ] @@ -6912,7 +6912,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d9efca8738c78ee9484207732f728b1ef517bbb1833d6fc0879ca898a522f6f" dependencies = [ "base64ct", - "der 0.8.0", + "der 0.8.2", ] [[package]] @@ -7334,7 +7334,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.2", + "getrandom 0.3.4", "once_cell", "rustix 1.1.4", "windows-sys 0.61.2", @@ -8867,13 +8867,14 @@ dependencies = [ [[package]] name = "wnaf" -version = "0.14.0" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab12e7090f27e2ffd9322651492942d50c2926094af30601e1964337db39daf1" +checksum = "795ca18b3fdb5e62bf982199278341ddcf7ebf7d32e25e212ad05d496e95f6fa" dependencies = [ "ff 0.14.0", "group 0.14.0", "hybrid-array", + "primefield", ] [[package]] diff --git a/crates/openshell-driver-mxc/Cargo.toml b/crates/openshell-driver-mxc/Cargo.toml index 5907e92a84..895d7c8d4c 100644 --- a/crates/openshell-driver-mxc/Cargo.toml +++ b/crates/openshell-driver-mxc/Cargo.toml @@ -15,6 +15,7 @@ name = "openshell_driver_mxc" [dependencies] openshell-core = { path = "../openshell-core", default-features = false } +openshell-policy = { path = "../openshell-policy" } # OCSF builders + emit target used by the Windows ETW audit consumer. OS-agnostic # crate (no windows deps), so safe to depend on from all targets; only the # windows-gated `etw_consumer` module actually uses it. @@ -39,9 +40,6 @@ windows = { workspace = true } tokio = { workspace = true } # tempfile is not a workspace dependency; 3.27 is already resolved in Cargo.lock. tempfile = "3" -# Used by Windows-only integration tests to parse policy YAML into the typed -# proto. Inert on non-Windows. -openshell-policy = { path = "../openshell-policy" } # Needed by the real-wxc integration test (wxc_exec_real.rs) which builds # --config-base64 payloads without going through the async WxcExecInvoker. # base64 and serde_json are already [dependencies] but dev-dependency resolution diff --git a/crates/openshell-driver-mxc/src/grpc.rs b/crates/openshell-driver-mxc/src/grpc.rs index 004fca381f..5073c48c0d 100644 --- a/crates/openshell-driver-mxc/src/grpc.rs +++ b/crates/openshell-driver-mxc/src/grpc.rs @@ -67,14 +67,14 @@ impl ComputeDriver for ComputeDriverService { request: Request, ) -> Result, Status> { let req = request.into_inner(); - if req.sandbox_name.is_empty() { - return Err(Status::invalid_argument("sandbox_name is required")); + if req.name.is_empty() { + return Err(Status::invalid_argument("name is required")); } let sandbox = self .backend - .get_sandbox(&req.sandbox_name) + .get_sandbox(&req.name) .await - .ok_or_else(|| Status::not_found(format!("sandbox {} not found", req.sandbox_name)))?; + .ok_or_else(|| Status::not_found(format!("sandbox {} not found", req.name)))?; if !req.sandbox_id.is_empty() && req.sandbox_id != sandbox.id { return Err(Status::failed_precondition( "sandbox_id did not match the fetched sandbox", @@ -110,10 +110,10 @@ impl ComputeDriver for ComputeDriverService { request: Request, ) -> Result, Status> { let req = request.into_inner(); - if req.sandbox_name.is_empty() { - return Err(Status::invalid_argument("sandbox_name is required")); + if req.name.is_empty() { + return Err(Status::invalid_argument("name is required")); } - self.backend.stop_sandbox(&req.sandbox_name).await?; + self.backend.stop_sandbox(&req.name).await?; Ok(Response::new(StopSandboxResponse {})) } @@ -134,12 +134,12 @@ impl ComputeDriver for ComputeDriverService { if req.sandbox_id.is_empty() { return Err(Status::invalid_argument("sandbox_id is required")); } - if req.sandbox_name.is_empty() { - return Err(Status::invalid_argument("sandbox_name is required")); + if req.name.is_empty() { + return Err(Status::invalid_argument("name is required")); } let deleted = self .backend - .delete_sandbox(&req.sandbox_id, &req.sandbox_name) + .delete_sandbox(&req.sandbox_id, &req.name) .await?; Ok(Response::new(DeleteSandboxResponse { deleted })) } diff --git a/crates/openshell-driver-mxc/src/policy_map/map.rs b/crates/openshell-driver-mxc/src/policy_map/map.rs index 7cb04b102f..c1b3af94fa 100644 --- a/crates/openshell-driver-mxc/src/policy_map/map.rs +++ b/crates/openshell-driver-mxc/src/policy_map/map.rs @@ -524,10 +524,7 @@ fn report_endpoint_l7_losses(endpoint: &NetworkEndpoint, path: &str, items: &mut items, &format!("{path}.tls"), severity, - &format!( - "MXC has no OpenShell TLS inspection mode equivalent for '{}'.", - tls - ), + &format!("MXC has no OpenShell TLS inspection mode equivalent for '{tls}'."), "TLS inspection mode", "MXC network policy is host-level only.", ); @@ -563,7 +560,7 @@ fn report_endpoint_l7_losses(endpoint: &NetworkEndpoint, path: &str, items: &mut items, &format!("{path}.access"), "error", - &format!("MXC has no access preset equivalent for '{}'.", access), + &format!("MXC has no access preset equivalent for '{access}'."), "REST/WebSocket/GraphQL access preset", "MXC cannot enforce method or operation-level access.", ); diff --git a/crates/openshell-driver-mxc/tests/policy_mapper_matrix.rs b/crates/openshell-driver-mxc/tests/policy_mapper_matrix.rs index d80dfab065..6dda646bd0 100644 --- a/crates/openshell-driver-mxc/tests/policy_mapper_matrix.rs +++ b/crates/openshell-driver-mxc/tests/policy_mapper_matrix.rs @@ -452,6 +452,7 @@ fn b_tls_skip_warning() { /// endpoint.tls = "full" (any non-skip) → "error". #[test] +#[allow(deprecated)] fn b_tls_non_skip_error() { let policy = net_policy( "r", diff --git a/deny.toml b/deny.toml index 410a92e3b3..62ce9a909f 100644 --- a/deny.toml +++ b/deny.toml @@ -21,7 +21,6 @@ ignore = [ { id = "RUSTSEC-2026-0204", reason = "crossbeam-epoch pointer deref — transitive via metrics/quanta" }, { id = "RUSTSEC-2023-0071", reason = "rsa Marvin attack — transitive via spiffe, no direct exposure" }, { id = "RUSTSEC-2025-0134", reason = "rustls-pemfile unmaintained — transitive via older kube/hyper" }, - { id = "RUSTSEC-2025-0068", reason = "serde_yml unsound+unmaintained — direct dep, no maintained alternative yet" }, ] # -- Licenses ------------------------------------------------------------------