Skip to content

Commit 33857e5

Browse files
authored
chore(deps): upgrade OpenShell to v0.1.6 (#13961)
## Failure NemoClaw pins OpenShell v0.1.5 (`bdb956f`). v0.1.6 (`ac7f615`, 68 commits later) is the latest release. It brings: - the webpki update that stops trusting the compromised emSign authorities (CVE-2026-111943), russh 0.64.1 (CVE-2026-111061), and the Tokio, crypto-bigint, and ctutils fixes for RUSTSEC-2026-0385 to 0387; - a fix for lifecycle operations stalling on unrelated sandboxes while the gateway checks a busy sandbox's provisioning deadline; - sandboxes that open the control connection to their supervisor. ## Decision This is a plain version upgrade; no NemoClaw behavior change is intended. - **Pins:** - the Cargo revision for `openshell-core`, `openshell-sdk` and `openshell-policy`, and for the vendored SDK's `openshell-core` and `openshell-crypto`; - `versions.json`: version, revision, the gateway, supervisor and sandbox images, and the gateway chart; - the managed-gateway reference and a contract test, which carry the gateway digest. Digests come from GHCR's `0.1.6` tags. GHCR's `0.1.5` tags match the previous pins. The images carry no OCI revision label. - **Vendored SDK:** upstream changed `README.md`, `src/client.rs`, `src/config.rs`, `src/lib.rs`, `src/raw.rs`, `src/transport.rs`, `src/types.rs` and `tests/client_mock.rs`; they are copied unchanged. Every other vendored source matched upstream v0.1.5. The upstream manifest, `LICENSE` and `THIRD-PARTY-NOTICES` are unchanged, so the manifest patch that disables core telemetry stays. `NOTICE.md` records the refresh. - **Dependency graph:** `Cargo.lock` changes only the revision of the five OpenShell crates; no third-party crate is added or removed. - **Docs:** revision links and version claims, checked against v0.1.6: - all 25 linked paths exist, and the four heading anchors still match; - three line-range links into the gateway configuration reference moved with their text, 32 to 40 lines down; - `tls: terminate` and `tls: passthrough` are still rejected (`l7/mod.rs` is unchanged); - GPU filesystem additions are still applied inside the workload (`enrich_gpu_filesystem_paths` in `boundary_server.rs`). ## Upgrade notes checked - **Gateway authentication is now required:** managed Docker and Podman gateways already configure gateway JWTs with `allow_unauthenticated_users = true` (`managed/spec.rs`), and managed Kubernetes gateways configure OIDC (`kubernetes/gateway.rs`). - **Control-connection direction:** the supervisor and sandbox runtime images move together in `versions.json`, as the note requires. - **Other notes don't apply:** NemoClaw uses neither suspend and resume nor `ResumeBoundaryRequest`. ## Validation - `cargo ci` passed locally: fmt, clippy, build, test (1,745), schema, bundle and lifecycle (157). - `cargo ci live-docker` (9 tests) and `cargo ci live-kind` (7 tests) passed on linux_arm64 against the new images. - `cargo deny check licenses sources` passes. Advisories show RUSTSEC-2026-0414 in `pulldown-cmark` 0.13.4, which `v1` also has. - Kubernetes destroys still wait out the sandbox pods' termination grace period: the three-agent Live / Kind test took 79.3 s, against 81 to 85 s on v0.1.5. #13959 and NVIDIA/OpenShell#5025 stay open. - Deferred to CI: linux_amd64, macOS and Windows.
1 parent 2d647a5 commit 33857e5

25 files changed

Lines changed: 291 additions & 86 deletions

‎Cargo.lock‎

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

‎Cargo.toml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ regex = "1"
5757
url = "2"
5858
ipnet = "2"
5959
nix = { version = "0.29", features = ["signal", "term"] }
60-
openshell-core = { git = "https://github.com/NVIDIA/OpenShell", rev = "bdb956f2cd65a635f1294fccf1d138d263bf650f", default-features = false }
61-
openshell-sdk = { git = "https://github.com/NVIDIA/OpenShell", rev = "bdb956f2cd65a635f1294fccf1d138d263bf650f", default-features = false }
62-
openshell-policy = { git = "https://github.com/NVIDIA/OpenShell", rev = "bdb956f2cd65a635f1294fccf1d138d263bf650f", default-features = false }
60+
openshell-core = { git = "https://github.com/NVIDIA/OpenShell", rev = "ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47", default-features = false }
61+
openshell-sdk = { git = "https://github.com/NVIDIA/OpenShell", rev = "ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47", default-features = false }
62+
openshell-policy = { git = "https://github.com/NVIDIA/OpenShell", rev = "ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47", default-features = false }
6363
tonic = { version = "0.14", features = ["tls-ring", "tls-native-roots"] }
6464
prost = "0.14"
6565
prost-types = "0.14"

‎crates/nemoclaw-provider/src/managed/reference.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"OPENSHELL_DB_URL=sqlite:/var/lib/docker/volumes/fixture/_data/gateway.db"
2424
],
2525
"Hostname": "",
26-
"Image": "ghcr.io/nvidia/openshell/gateway@sha256:ca0bc15a045017ee20bfab682f1a561eca6e6c6ed7d021d20641da24aaa6dfb6",
26+
"Image": "ghcr.io/nvidia/openshell/gateway@sha256:f0b36dba21d282c52e498c25289658cfd6cd4f343b0069fde5609e25b002cdea",
2727
"Labels": {
2828
"nemoclaw.nvidia.com/generation": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
2929
"nemoclaw.nvidia.com/runtime-spec": "f6aac6e04af7793924489089fc4c291184a5c9676dafe423fba507ac1ac3f0e1",
@@ -36,7 +36,7 @@
3636
"Volumes": null,
3737
"WorkingDir": ""
3838
},
39-
"gatewayConfig": "[openshell]\nversion = 2\n\n[openshell.gateway]\ncompute_driver = \"docker\"\ndisable_tls = true\n\n[openshell.drivers.docker]\nnetwork_name = \"nc-68d203b0c7e6083f-network\"\nsandbox_runtime_image = \"ghcr.io/nvidia/openshell/sandbox@sha256:e9adf9ecde328122414ad2ee8c6fc5d5b389e4cf168daf4357c46f5a77d55851\"\nsupervisor_image = \"ghcr.io/nvidia/openshell/supervisor@sha256:fabcd01f656e9d23df4386f82e80b4f48b90f3452d7d5c58889007643a069161\"\n\n[openshell.gateway.gateway_jwt]\nsigning_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/signing.pem\"\npublic_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/public.pem\"\nkid_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/kid\"\ngateway_id = \"nc-68d203b0c7e6083f-gateway\"\n\n[openshell.gateway.auth]\nallow_unauthenticated_users = true\n",
39+
"gatewayConfig": "[openshell]\nversion = 2\n\n[openshell.gateway]\ncompute_driver = \"docker\"\ndisable_tls = true\n\n[openshell.drivers.docker]\nnetwork_name = \"nc-68d203b0c7e6083f-network\"\nsandbox_runtime_image = \"ghcr.io/nvidia/openshell/sandbox@sha256:1038eb5c1f191fa3c34684fd7041b891c78ec570979d487f36e06e08f91bfb63\"\nsupervisor_image = \"ghcr.io/nvidia/openshell/supervisor@sha256:ce859a7d77ee515d3fe0b3c7dc61286516f402eb1d25c761d806d9ae5ed96c0b\"\n\n[openshell.gateway.gateway_jwt]\nsigning_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/signing.pem\"\npublic_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/public.pem\"\nkid_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/kid\"\ngateway_id = \"nc-68d203b0c7e6083f-gateway\"\n\n[openshell.gateway.auth]\nallow_unauthenticated_users = true\n",
4040
"hostConfig": {
4141
"AutoRemove": false,
4242
"Binds": null,
@@ -134,7 +134,7 @@
134134
"nemoclaw.nvidia.com/runtime-spec": "f6aac6e04af7793924489089fc4c291184a5c9676dafe423fba507ac1ac3f0e1",
135135
"nemoclaw.nvidia.com/uid": "302ff5e1-088d-42ce-959f-4ff4c3570c13"
136136
},
137-
"spec": "{\"layout\":2,\"kind\":\"managed_gateway\",\"name\":\"nc-68d203b0c7e6083f-gateway\",\"owner\":\"302ff5e1-088d-42ce-959f-4ff4c3570c13\",\"generation\":\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\"gateway\":{\"endpoint\":\"http://127.0.0.1:17681\",\"engine\":\"unix:///var/run/docker.sock\",\"networkCIDR\":\"172.30.110.0/24\"},\"image\":\"ghcr.io/nvidia/openshell/gateway@sha256:ca0bc15a045017ee20bfab682f1a561eca6e6c6ed7d021d20641da24aaa6dfb6\"}"
137+
"spec": "{\"layout\":2,\"kind\":\"managed_gateway\",\"name\":\"nc-68d203b0c7e6083f-gateway\",\"owner\":\"302ff5e1-088d-42ce-959f-4ff4c3570c13\",\"generation\":\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\"gateway\":{\"endpoint\":\"http://127.0.0.1:17681\",\"engine\":\"unix:///var/run/docker.sock\",\"networkCIDR\":\"172.30.110.0/24\"},\"image\":\"ghcr.io/nvidia/openshell/gateway@sha256:f0b36dba21d282c52e498c25289658cfd6cd4f343b0069fde5609e25b002cdea\"}"
138138
},
139139
{
140140
"config": {
@@ -163,7 +163,7 @@
163163
"Volumes": null,
164164
"WorkingDir": ""
165165
},
166-
"gatewayConfig": "[openshell]\nversion = 2\n\n[openshell.gateway]\ncompute_driver = \"docker\"\ndisable_tls = true\n\n[openshell.drivers.docker]\nnetwork_name = \"nc-68d203b0c7e6083f-network\"\nsandbox_runtime_image = \"ghcr.io/nvidia/openshell/sandbox@sha256:e9adf9ecde328122414ad2ee8c6fc5d5b389e4cf168daf4357c46f5a77d55851\"\nsupervisor_image = \"ghcr.io/nvidia/openshell/supervisor@sha256:fabcd01f656e9d23df4386f82e80b4f48b90f3452d7d5c58889007643a069161\"\n\n[openshell.gateway.gateway_jwt]\nsigning_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/signing.pem\"\npublic_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/public.pem\"\nkid_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/kid\"\ngateway_id = \"nc-68d203b0c7e6083f-inference-qwen\"\n\n[openshell.gateway.auth]\nallow_unauthenticated_users = true\n",
166+
"gatewayConfig": "[openshell]\nversion = 2\n\n[openshell.gateway]\ncompute_driver = \"docker\"\ndisable_tls = true\n\n[openshell.drivers.docker]\nnetwork_name = \"nc-68d203b0c7e6083f-network\"\nsandbox_runtime_image = \"ghcr.io/nvidia/openshell/sandbox@sha256:1038eb5c1f191fa3c34684fd7041b891c78ec570979d487f36e06e08f91bfb63\"\nsupervisor_image = \"ghcr.io/nvidia/openshell/supervisor@sha256:ce859a7d77ee515d3fe0b3c7dc61286516f402eb1d25c761d806d9ae5ed96c0b\"\n\n[openshell.gateway.gateway_jwt]\nsigning_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/signing.pem\"\npublic_key_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/public.pem\"\nkid_path = \"/var/lib/docker/volumes/fixture/_data/tls/jwt/kid\"\ngateway_id = \"nc-68d203b0c7e6083f-inference-qwen\"\n\n[openshell.gateway.auth]\nallow_unauthenticated_users = true\n",
167167
"hostConfig": {
168168
"AutoRemove": false,
169169
"Binds": null,

‎crates/openshell-provider/tests/contract/gateway_storage.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::{
1616

1717
const NAME: &str = "nc-0123456789abcdef-gateway";
1818
const OWNER: &str = "302ff5e1-088d-42ce-959f-4ff4c3570c13";
19-
const IMAGE: &str = "ghcr.io/nvidia/openshell/gateway@sha256:ca0bc15a045017ee20bfab682f1a561eca6e6c6ed7d021d20641da24aaa6dfb6";
19+
const IMAGE: &str = "ghcr.io/nvidia/openshell/gateway@sha256:f0b36dba21d282c52e498c25289658cfd6cd4f343b0069fde5609e25b002cdea";
2020
const DATA_ROOT: &str = "/var/lib/docker";
2121

2222
#[derive(Default)]

‎crates/vendor/openshell-sdk/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ license = "Apache-2.0"
1111
repository = "https://github.com/NVIDIA/OpenShell"
1212

1313
[dependencies]
14-
openshell-core = { git = "https://github.com/NVIDIA/OpenShell", rev = "bdb956f2cd65a635f1294fccf1d138d263bf650f", default-features = false }
15-
openshell-crypto = { git = "https://github.com/NVIDIA/OpenShell", rev = "bdb956f2cd65a635f1294fccf1d138d263bf650f", default-features = false, features = ["aws-lc"] }
14+
openshell-core = { git = "https://github.com/NVIDIA/OpenShell", rev = "ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47", default-features = false }
15+
openshell-crypto = { git = "https://github.com/NVIDIA/OpenShell", rev = "ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47", default-features = false, features = ["aws-lc"] }
1616
async-trait = "0.1"
1717
futures = { version = "0.3" }
1818
hyper = { version = "1.6", features = ["full"] }

‎crates/vendor/openshell-sdk/NOTICE.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33

44
# OpenShell SDK Source
55

6-
Source: NVIDIA/OpenShell, `crates/openshell-sdk`, revision `bdb956f2cd65a635f1294fccf1d138d263bf650f`.
7-
Upstream: https://github.com/NVIDIA/OpenShell/tree/bdb956f2cd65a635f1294fccf1d138d263bf650f/crates/openshell-sdk
6+
Source: NVIDIA/OpenShell, `crates/openshell-sdk`, revision `ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47`.
7+
Upstream: https://github.com/NVIDIA/OpenShell/tree/ac7f615cd12d5cc49cb16eb1f5f10ffeb1e90f47/crates/openshell-sdk
88

99
The Rust sources, tests, and README are unchanged.
1010
Upstream copyright headers, the Apache-2.0 license, and third-party notices are retained.
1111

12-
Modifications on 2026-10-27 (refreshed from OpenShell v0.1.5):
12+
Modifications on 2026-10-29 (refreshed from OpenShell v0.1.6):
1313

1414
- Resolve inherited package and dependency values from the upstream workspace into this standalone manifest.
1515
- Replace the relative `openshell-core` dependency with the same Git revision and disable its default features so NemoClaw does not compile telemetry support.

‎crates/vendor/openshell-sdk/README.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ for the refreshed access token.
3434

3535
- Plaintext (local development)
3636
- Server-authenticated TLS (system roots, or a pinned private CA via `ca_cert`)
37+
- Mutual TLS via an in-memory `ClientIdentity`
3738
- OIDC bearer over HTTPS (gateways behind an OAuth2/OIDC IdP)
3839
- Cloudflare Access tunnel (hosted gateways)
3940
- Insecure TLS (development/debug; certificate verification disabled)
4041

41-
mTLS (client certificates) is not supported.
42-
4342
## Public surface
4443

4544
`OpenShellClient::connect(ClientConfig)` returns a connected client exposing
@@ -178,7 +177,7 @@ These helpers use the raw client's authentication slot. They do not perform OIDC
178177
| Module | Purpose |
179178
|---|---|
180179
| `client` | High-level `OpenShellClient` and the curated sandbox surface. |
181-
| `config` | `ClientConfig`, `AuthConfig`. |
180+
| `config` | `ClientConfig`, `AuthConfig`, `ClientIdentity`. |
182181
| `transport` | Channel construction, TLS resolution, request interceptors. |
183182
| `auth` | `EdgeAuthInterceptor` for bearer-token attachment. |
184183
| `oidc` | OIDC token handling at the transport layer. |

‎crates/vendor/openshell-sdk/src/client.rs‎

Lines changed: 78 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ use crate::pagination::{Page, Pager};
1515
use crate::raw::AuthedGrpcClient;
1616
use crate::refresh::{RefreshedToken, TokenSource};
1717
use crate::types::{
18-
DeleteOptions, DeletionResult, ExecOptions, ExecResult, Health, ListOptions, SandboxPhase,
19-
SandboxRef, SandboxSpec, SandboxTemplateCreateSpec, SandboxTemplateListOptions,
18+
DeleteOptions, DeletionResult, ExecOptions, ExecResult, Health, ListOptions, ResumeOptions,
19+
SandboxPhase, SandboxRef, SandboxSpec, SandboxTemplateCreateSpec, SandboxTemplateListOptions,
2020
SandboxWorkloadTemplate, WorkspaceRef,
2121
};
2222
use crate::{WatchEvent, WatchOptions, transport};
@@ -400,14 +400,47 @@ impl OpenShellClient {
400400
sandbox_from_response(response.sandbox)
401401
}
402402

403+
/// Suspend a ready sandbox by name, retaining its memory state.
404+
///
405+
/// Requires a compute driver and isolation backend that support suspend
406+
/// and resume. The gateway returns `FAILED_PRECONDITION` otherwise.
407+
pub async fn suspend_sandbox(&self, name: &str) -> Result<SandboxRef> {
408+
let response = self
409+
.unary(|mut grpc| {
410+
let request = proto::SuspendSandboxRequest {
411+
name: name.to_string(),
412+
workspace_scope: Some(proto::workspace_selector("default")),
413+
};
414+
async move { grpc.suspend_sandbox(request).await }
415+
})
416+
.await?;
417+
sandbox_from_response(response.sandbox)
418+
}
419+
420+
/// Resume a suspended sandbox by name in a new runtime generation.
421+
pub async fn resume_sandbox(&self, name: &str, opts: ResumeOptions) -> Result<SandboxRef> {
422+
let response = self
423+
.unary(|mut grpc| {
424+
let request = proto::ResumeSandboxRequest {
425+
name: name.to_string(),
426+
workspace_scope: Some(proto::workspace_selector("default")),
427+
restart_if_restore_fails: opts.restart_if_restore_fails,
428+
};
429+
async move { grpc.resume_sandbox(request).await }
430+
})
431+
.await?;
432+
sandbox_from_response(response.sandbox)
433+
}
434+
403435
/// Poll [`OpenShellClient::get_sandbox`] until the sandbox reaches
404436
/// [`SandboxPhase::Ready`] or successful [`SandboxPhase::Completed`], or
405437
/// until the `timeout` elapses.
406438
///
407439
/// Returns the terminal sandbox snapshot on success. Returns an
408440
/// [`SdkError::Connect`] when the timeout expires, or whatever error
409441
/// the gateway returns if the sandbox transitions into
410-
/// [`SandboxPhase::Stopped`] or [`SandboxPhase::Error`].
442+
/// [`SandboxPhase::Stopped`], [`SandboxPhase::Error`],
443+
/// [`SandboxPhase::Suspending`], or [`SandboxPhase::Suspended`].
411444
pub async fn wait_ready(&self, name: &str, timeout: Duration) -> Result<SandboxRef> {
412445
self.wait_for(name, timeout, |phase| match phase {
413446
SandboxPhase::Ready | SandboxPhase::Completed => Some(Ok(())),
@@ -417,6 +450,9 @@ impl OpenShellClient {
417450
SandboxPhase::Error => Some(Err(SdkError::connect(format!(
418451
"sandbox '{name}' entered error phase"
419452
)))),
453+
SandboxPhase::Suspending | SandboxPhase::Suspended => Some(Err(SdkError::connect(
454+
format!("sandbox '{name}' is suspended; resume it before waiting for ready"),
455+
))),
420456
_ => None,
421457
})
422458
.await
@@ -1118,6 +1154,40 @@ impl WorkspaceScopedClient {
11181154
sandbox_from_response(response.sandbox)
11191155
}
11201156

1157+
/// Suspend a ready sandbox by name in this workspace, retaining its memory state.
1158+
///
1159+
/// Requires a compute driver and isolation backend that support suspend
1160+
/// and resume. The gateway returns `FAILED_PRECONDITION` otherwise.
1161+
pub async fn suspend_sandbox(&self, name: &str) -> Result<SandboxRef> {
1162+
let response = self
1163+
.client
1164+
.unary(|mut grpc| {
1165+
let request = proto::SuspendSandboxRequest {
1166+
name: name.to_string(),
1167+
workspace_scope: Some(proto::workspace_selector(&self.workspace)),
1168+
};
1169+
async move { grpc.suspend_sandbox(request).await }
1170+
})
1171+
.await?;
1172+
sandbox_from_response(response.sandbox)
1173+
}
1174+
1175+
/// Resume a suspended sandbox by name in this workspace in a new runtime generation.
1176+
pub async fn resume_sandbox(&self, name: &str, opts: ResumeOptions) -> Result<SandboxRef> {
1177+
let response = self
1178+
.client
1179+
.unary(|mut grpc| {
1180+
let request = proto::ResumeSandboxRequest {
1181+
name: name.to_string(),
1182+
workspace_scope: Some(proto::workspace_selector(&self.workspace)),
1183+
restart_if_restore_fails: opts.restart_if_restore_fails,
1184+
};
1185+
async move { grpc.resume_sandbox(request).await }
1186+
})
1187+
.await?;
1188+
sandbox_from_response(response.sandbox)
1189+
}
1190+
11211191
/// Poll until the sandbox reaches [`SandboxPhase::Ready`] or successful
11221192
/// [`SandboxPhase::Completed`], or the timeout elapses.
11231193
pub async fn wait_ready(&self, name: &str, timeout: Duration) -> Result<SandboxRef> {
@@ -1139,6 +1209,11 @@ impl WorkspaceScopedClient {
11391209
"sandbox '{name}' entered error phase"
11401210
)));
11411211
}
1212+
SandboxPhase::Suspending | SandboxPhase::Suspended => {
1213+
return Err(SdkError::connect(format!(
1214+
"sandbox '{name}' is suspended; resume it before waiting for ready"
1215+
)));
1216+
}
11421217
_ => {}
11431218
}
11441219
if Instant::now() >= deadline {

0 commit comments

Comments
 (0)