Skip to content

Commit cea2097

Browse files
committed
fix(mxc): downgrade missing sandbox_token to debug log
The gateway mints `sandbox_token` only when a sandbox-JWT issuer is configured. There is no in-sandbox supervisor on MXC (supervisor-removal design — D1/D4), so no component ever consumes the token; requiring it on the driver side blocks the demo's `--disable-tls` smoke gateway with a spurious `invalid_argument`. Log the absence and proceed instead. Signed-off-by: Jamie King <[email protected]>
1 parent 039b0ba commit cea2097

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,19 @@ impl MxcComputeBackend {
249249

250250
self.validate_sandbox_create(sandbox)?;
251251

252+
// `sandbox_token` is minted by the gateway only when the sandbox-JWT
253+
// issuer is configured. On MXC there is no in-sandbox supervisor that
254+
// would ever consume it (the supervisor-removal design — D1/D4), so an
255+
// absent token must not block create. Log it and move on.
252256
if sandbox
253257
.spec
254258
.as_ref()
255259
.map_or(true, |s| s.sandbox_token.is_empty())
256260
{
257-
return Err(tonic::Status::invalid_argument("sandbox_token is required"));
261+
tracing::debug!(
262+
sandbox = %sandbox.name,
263+
"no sandbox_token minted (no supervisor consumer on MXC)"
264+
);
258265
}
259266

260267
let sandbox_name = sandbox.name.clone();

0 commit comments

Comments
 (0)