From 1358794c2d217143660e01665ed416a2a2291bb9 Mon Sep 17 00:00:00 2001 From: Shiju Date: Sun, 29 Nov 2026 04:24:27 +0530 Subject: [PATCH] feat(compute): add provider workload identity contract Add the contract that the gateway and a compute driver share to give each dedicated supervisor a SPIFFE identity for provider grants. - A capability, openshell.compute.provider-workload-identity, for a driver that gives each dedicated supervisor a Workload API socket and marks it with its launch SPIFFE ID. - The launch bundle can carry the stable sandbox SPIFFE ID and the launch SPIFFE ID. The launch ID is the stable ID followed by /launch/, so it changes when the gateway issues a new generation. - validate_provider_launch_identity lets a driver check that both IDs belong to the sandbox and generation it is starting. - ConfigureRequest gains a flag that tells a managed driver the mode is selected. - Label and probe constants shared by the supervisor and the drivers. Nothing uses the contract yet. Existing call sites only initialize the new fields. Signed-off-by: Shiju --- crates/openshell-core/src/driver_utils.rs | 165 ++++++++++++++++++ .../openshell-core/src/extension_protocol.rs | 27 +-- crates/openshell-core/src/jwt.rs | 12 ++ crates/openshell-driver-docker/src/tests.rs | 2 + crates/openshell-driver-podman/src/driver.rs | 2 + .../openshell-driver-podman/src/isolation.rs | 2 + crates/openshell-driver-vm/src/driver.rs | 2 + crates/openshell-gateway/src/launcher.rs | 1 + .../openshell-server/src/auth/sandbox_jwt.rs | 5 + .../src/persistence/mutation_lock_pg_tests.rs | 4 + crates/openshell-server/src/ssh_identity.rs | 2 + crates/openshell-spiffe/src/lib.rs | 29 ++- .../src/backend_setup/tests.rs | 2 + .../src/legacy_startup_regression_tests.rs | 2 + crates/openshell-supervisor/src/lib.rs | 2 + crates/openshell-supervisor/src/main.rs | 2 + proto/driver_launch.proto | 3 + 17 files changed, 248 insertions(+), 16 deletions(-) diff --git a/crates/openshell-core/src/driver_utils.rs b/crates/openshell-core/src/driver_utils.rs index 12ac8019be..e19abff651 100644 --- a/crates/openshell-core/src/driver_utils.rs +++ b/crates/openshell-core/src/driver_utils.rs @@ -8,6 +8,61 @@ use std::path::{Path, PathBuf}; use crate::proto::compute::v1::DriverSandbox; +/// Check that a launch bundle's provider identities belong to this sandbox launch. +/// +/// The stable ID must end in this gateway and sandbox. The launch ID must be +/// that stable ID followed by `/launch/`, so it changes exactly +/// when the gateway issues a new runtime generation. A driver calls this +/// before it marks a supervisor with the launch ID. +#[cfg(feature = "jwt")] +#[allow(clippy::result_large_err)] +pub fn validate_provider_launch_identity( + sandbox_id: &str, + generation_id: &str, + authentication: &crate::jwt::SandboxLaunchAuthentication, +) -> Result<(), tonic::Status> { + let invalid = + || tonic::Status::invalid_argument("provider identity does not match the sandbox launch"); + let supervisor = &authentication.supervisor; + if supervisor.runtime_generation.as_str() != generation_id { + return Err(invalid()); + } + let sandbox_path = format!( + "/gateway/{}/sandbox/{sandbox_id}", + authentication.gateway_id + ); + let prefix = supervisor + .provider_spiffe_id + .as_deref() + .and_then(|id| id.strip_suffix(&sandbox_path)) + .ok_or_else(invalid)?; + let prefix = openshell_spiffe::SandboxSpiffeIdPrefix::parse(prefix).map_err(|_| invalid())?; + let expected = prefix + .supervisor_launch_spiffe_id(&authentication.gateway_id, sandbox_id, generation_id) + .map_err(|_| invalid())?; + if supervisor.provider_launch_spiffe_id.as_deref() != Some(expected.as_str()) { + return Err(invalid()); + } + Ok(()) +} + +/// Gateway alias available inside a sandbox VM. +pub const VM_HOST_GATEWAY_ALIAS: &str = "host.openshell.internal"; + +/// Gateway hostnames that VM host supervisors rewrite to numeric loopback. +pub const VM_HOST_LOOPBACK_ALIASES: &[&str] = &[ + VM_HOST_GATEWAY_ALIAS, + "host.containers.internal", + "host.docker.internal", +]; + +/// Supervisor command that reports whether it can see a Workload API socket. +pub const PROVIDER_WORKLOAD_IDENTITY_PROBE: &str = "provider-workload-identity-probe"; + +/// Exit statuses for the provider probe with a socket path argument. +pub const PROVIDER_WORKLOAD_SOCKET_PROBE_PRESENT: i32 = 70; +pub const PROVIDER_WORKLOAD_SOCKET_PROBE_UNAVAILABLE: i32 = 71; + // --------------------------------------------------------------------------- // Sandbox container/pod label keys (openshell.ai/ namespace) // --------------------------------------------------------------------------- @@ -34,6 +89,9 @@ pub const LABEL_SANDBOX_WORKSPACE: &str = "openshell.ai/sandbox-workspace"; /// Label carrying the gateway identity on managed namespaces. pub const LABEL_GATEWAY_ID: &str = "openshell.ai/gateway-id"; +/// SPIFFE ID registered for one driver-owned supervisor launch. +pub const LABEL_PROVIDER_LAUNCH_SPIFFE_ID: &str = "openshell.ai/provider-launch-spiffe-id"; + /// Label selector that matches all OpenShell-managed resources which carry a /// sandbox ID label. Used by list and watch operations to exclude foreign /// resources from the same namespace. @@ -743,6 +801,24 @@ pub fn validate_provider_spiffe_unix_socket(path: &Path) -> Result<(), String> { Ok(()) } +/// Check that an absolute path resolves to a Unix socket in the current filesystem. +pub fn provider_spiffe_socket_visible(path: &Path) -> bool { + #[cfg(unix)] + { + use std::os::unix::fs::FileTypeExt as _; + + path.is_absolute() + && path + .metadata() + .is_ok_and(|meta| meta.file_type().is_socket()) + } + #[cfg(not(unix))] + { + let _ = path; + false + } +} + /// Return the guest/container path for a projected provider SPIFFE socket. pub fn projected_provider_spiffe_socket_path(path: &Path) -> Result { validate_provider_spiffe_unix_socket(path)?; @@ -1550,4 +1626,93 @@ mod tests { }) .expect("an intercepting proxy's CA is meaningful without an https:// proxy URL"); } + + #[cfg(feature = "jwt")] + #[test] + fn provider_launch_identity_binds_generation_sandbox_and_launch() { + use crate::jwt::{ + CredentialEpoch, SandboxLaunchAuthentication, SecretJwt, SessionRotation, + SupervisorAuthBundle, + }; + use crate::sandbox_generation::SandboxGenerationId; + use crate::sandbox_session::SandboxSessionId; + + let sandbox = "spiffe://example.test/gateway/gateway/sandbox/sandbox-a"; + let authentication = SandboxLaunchAuthentication { + supervisor: SupervisorAuthBundle { + session_id: SandboxSessionId::new(), + runtime_generation: SandboxGenerationId::parse("generation").unwrap(), + session_rotation: SessionRotation::new(1).unwrap(), + auth_epoch: CredentialEpoch::new(1).unwrap(), + gateway_token: SecretJwt::parse("gateway-token").unwrap(), + gateway_expires_at: 0, + sandbox_token: SecretJwt::parse("sandbox-token").unwrap(), + sandbox_expires_at: 0, + provider_spiffe_id: Some(sandbox.to_string()), + provider_launch_spiffe_id: Some(format!("{sandbox}/launch/generation")), + ssh_host_private_key: None, + traces_otlp_headers: None, + ocsf_otlp_headers: None, + agent_otlp_headers: None, + otlp_tls: Vec::new(), + traces_otlp_tls: None, + ocsf_otlp_tls: None, + agent_otlp_tls: None, + }, + gateway_id: "gateway".to_string(), + verification_keys: Vec::new(), + }; + validate_provider_launch_identity("sandbox-a", "generation", &authentication).unwrap(); + + let with_launch = |launch: Option| { + let mut changed = authentication.clone(); + changed.supervisor.provider_launch_spiffe_id = launch; + changed + }; + for (case, sandbox_id, generation_id, bundle) in [ + ( + "another generation", + "sandbox-a", + "other-generation", + authentication.clone(), + ), + ( + "another sandbox", + "sandbox-b", + "generation", + authentication.clone(), + ), + ( + "no launch identity", + "sandbox-a", + "generation", + with_launch(None), + ), + ( + "a launch identity of another sandbox", + "sandbox-a", + "generation", + with_launch(Some( + "spiffe://example.test/gateway/gateway/sandbox/sandbox-b/launch/generation" + .to_string(), + )), + ), + ( + "a launch identity for another generation", + "sandbox-a", + "generation", + with_launch(Some(format!("{sandbox}/launch/earlier-generation"))), + ), + ( + "a launch identity with extra segments", + "sandbox-a", + "generation", + with_launch(Some(format!("{sandbox}/launch/generation/extra"))), + ), + ] { + let error = + validate_provider_launch_identity(sandbox_id, generation_id, &bundle).unwrap_err(); + assert_eq!(error.code(), tonic::Code::InvalidArgument, "{case}"); + } + } } diff --git a/crates/openshell-core/src/extension_protocol.rs b/crates/openshell-core/src/extension_protocol.rs index 1d6d57960b..a9515af295 100644 --- a/crates/openshell-core/src/extension_protocol.rs +++ b/crates/openshell-core/src/extension_protocol.rs @@ -47,6 +47,11 @@ pub const COMPUTE_SUSPEND_RESUME: &str = "openshell.compute.suspend-resume"; pub const COMPUTE_UPDATE_SANDBOX_CONFIGURATION: &str = "openshell.compute.update-sandbox-configuration"; +/// Driver gives each dedicated supervisor a Workload API socket and marks it +/// with the launch SPIFFE ID from its launch bundle. A start whose bundle +/// names a different launch replaces the supervisor. +pub const COMPUTE_PROVIDER_WORKLOAD_IDENTITY: &str = "openshell.compute.provider-workload-identity"; + /// Capability for supervisor middleware that implements HTTP hooks. /// /// A service selects HTTP hooks for all of its HTTP bindings by @@ -160,6 +165,7 @@ pub fn gateway_metadata(family: ExtensionFamily) -> PeerMetadata { supported_capabilities.push(COMPUTE_LAUNCH_AUTHENTICATION.to_string()); supported_capabilities.push(COMPUTE_ISOLATION_BACKEND.to_string()); supported_capabilities.push(COMPUTE_UPDATE_SANDBOX_CONFIGURATION.to_string()); + supported_capabilities.push(COMPUTE_PROVIDER_WORKLOAD_IDENTITY.to_string()); } ExtensionFamily::SupervisorMiddleware => { supported_capabilities.push(SUPERVISOR_MIDDLEWARE_HTTP_HOOKS.to_string()); @@ -458,20 +464,15 @@ mod tests { use super::*; #[test] - fn compute_gateway_advertises_both_optional_extensions() { + fn compute_gateway_advertises_optional_extensions() { let gateway = gateway_metadata(ExtensionFamily::Compute); - assert!( - gateway - .supported_capabilities - .iter() - .any(|c| c == COMPUTE_ISOLATION_BACKEND) - ); - assert!( - gateway - .supported_capabilities - .iter() - .any(|c| c == COMPUTE_UPDATE_SANDBOX_CONFIGURATION) - ); + for capability in [ + COMPUTE_ISOLATION_BACKEND, + COMPUTE_UPDATE_SANDBOX_CONFIGURATION, + COMPUTE_PROVIDER_WORKLOAD_IDENTITY, + ] { + assert!(has_capability(&gateway.supported_capabilities, capability)); + } } fn compatible() -> (PeerMetadata, PeerMetadata) { diff --git a/crates/openshell-core/src/jwt.rs b/crates/openshell-core/src/jwt.rs index 84ffe98ec0..cae9fed81e 100644 --- a/crates/openshell-core/src/jwt.rs +++ b/crates/openshell-core/src/jwt.rs @@ -499,6 +499,12 @@ mod session { pub gateway_expires_at: i64, pub sandbox_token: SecretJwt, pub sandbox_expires_at: i64, + /// Exact provider identity selected by the gateway for this supervisor. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub provider_spiffe_id: Option, + /// SPIFFE ID the issuer assigns to this supervisor launch. + #[serde(default, skip_serializing_if = "Option::is_none")] + pub provider_launch_spiffe_id: Option, /// Never delivered to the workload. Missing only in older bundles. #[serde(default, skip_serializing_if = "Option::is_none")] pub ssh_host_private_key: Option, @@ -1787,6 +1793,8 @@ mod tests { gateway_expires_at: pair.gateway.expires_at, sandbox_token: pair.sandbox.token, sandbox_expires_at: pair.sandbox.expires_at, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, @@ -1935,6 +1943,8 @@ mod tests { gateway_expires_at: pair.gateway.expires_at, sandbox_token: pair.sandbox.token, sandbox_expires_at: pair.sandbox.expires_at, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: headers("traces"), ocsf_otlp_headers: headers("ocsf"), @@ -1974,6 +1984,8 @@ mod tests { gateway_expires_at: pair.gateway.expires_at, sandbox_token: pair.sandbox.token, sandbox_expires_at: pair.sandbox.expires_at, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: Some(SecretSshHostKey::new( "private-ssh-host-key".to_string(), )), diff --git a/crates/openshell-driver-docker/src/tests.rs b/crates/openshell-driver-docker/src/tests.rs index c86e2d068b..4248145235 100644 --- a/crates/openshell-driver-docker/src/tests.rs +++ b/crates/openshell-driver-docker/src/tests.rs @@ -63,6 +63,8 @@ pub fn test_launch_authentication() -> Vec { gateway_expires_at: i64::MAX, sandbox_token: SecretJwt::parse("sandbox.token.value").unwrap(), sandbox_expires_at: i64::MAX, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-driver-podman/src/driver.rs b/crates/openshell-driver-podman/src/driver.rs index a263bcf7d2..d4000c15c2 100644 --- a/crates/openshell-driver-podman/src/driver.rs +++ b/crates/openshell-driver-podman/src/driver.rs @@ -2704,6 +2704,8 @@ mod tests { gateway_expires_at: i64::MAX, sandbox_token: SecretJwt::parse("sandbox.token.value").unwrap(), sandbox_expires_at: i64::MAX, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-driver-podman/src/isolation.rs b/crates/openshell-driver-podman/src/isolation.rs index f9fc790588..7a40ba62ad 100644 --- a/crates/openshell-driver-podman/src/isolation.rs +++ b/crates/openshell-driver-podman/src/isolation.rs @@ -470,6 +470,8 @@ mod tests { gateway_expires_at: i64::MAX, sandbox_token: SecretJwt::parse("sandbox.token.value").unwrap(), sandbox_expires_at: i64::MAX, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-driver-vm/src/driver.rs b/crates/openshell-driver-vm/src/driver.rs index 69a0f766ad..eb939c85bc 100644 --- a/crates/openshell-driver-vm/src/driver.rs +++ b/crates/openshell-driver-vm/src/driver.rs @@ -11265,6 +11265,8 @@ mod tests { gateway_expires_at: 1, sandbox_token: SecretJwt::parse(format!("sandbox-{label}")).expect("sandbox token"), sandbox_expires_at: 1, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-gateway/src/launcher.rs b/crates/openshell-gateway/src/launcher.rs index f50183592c..1b5d09edd1 100644 --- a/crates/openshell-gateway/src/launcher.rs +++ b/crates/openshell-gateway/src/launcher.rs @@ -872,6 +872,7 @@ impl<'a> ConfigureInputs<'a> { .admission .and_then(|policy| serde_json::to_string(policy).ok()) .unwrap_or_default(), + verified_provider_workload_identity: None, } } } diff --git a/crates/openshell-server/src/auth/sandbox_jwt.rs b/crates/openshell-server/src/auth/sandbox_jwt.rs index 5d37d6c8a5..49f06b8356 100644 --- a/crates/openshell-server/src/auth/sandbox_jwt.rs +++ b/crates/openshell-server/src/auth/sandbox_jwt.rs @@ -264,6 +264,8 @@ impl SandboxSessionJwtAuthority { gateway_expires_at: pair.gateway.expires_at, sandbox_token: pair.sandbox.token, sandbox_expires_at: pair.sandbox.expires_at, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, @@ -616,6 +618,9 @@ mod tests { let first = authority .mint_persisted_launch("sandbox-a", &identity) .unwrap(); + // The session authority leaves the provider identities unset. + assert!(first.supervisor.provider_spiffe_id.is_none()); + assert!(first.supervisor.provider_launch_spiffe_id.is_none()); let mut annotations = std::collections::HashMap::new(); identity.write(&mut annotations); let mut reloaded = diff --git a/crates/openshell-server/src/persistence/mutation_lock_pg_tests.rs b/crates/openshell-server/src/persistence/mutation_lock_pg_tests.rs index 636fff35b8..6aedbbe5f1 100644 --- a/crates/openshell-server/src/persistence/mutation_lock_pg_tests.rs +++ b/crates/openshell-server/src/persistence/mutation_lock_pg_tests.rs @@ -89,6 +89,8 @@ async fn postgres_concurrent_sandbox_creates_with_ssh_identity_do_not_exhaust_lo gateway_expires_at: 0, sandbox_token: SecretJwt::parse("sandbox-token").unwrap(), sandbox_expires_at: 0, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, @@ -211,6 +213,8 @@ fn ssh_launch_authentication() -> openshell_core::jwt::SandboxLaunchAuthenticati gateway_expires_at: 0, sandbox_token: SecretJwt::parse("sandbox-token").unwrap(), sandbox_expires_at: 0, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-server/src/ssh_identity.rs b/crates/openshell-server/src/ssh_identity.rs index 5b6b0ee4c7..3a569d5e97 100644 --- a/crates/openshell-server/src/ssh_identity.rs +++ b/crates/openshell-server/src/ssh_identity.rs @@ -85,6 +85,8 @@ mod tests { gateway_expires_at: 0, sandbox_token: SecretJwt::parse("sandbox-token").unwrap(), sandbox_expires_at: 0, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-spiffe/src/lib.rs b/crates/openshell-spiffe/src/lib.rs index 07ea123e43..334a58fea8 100644 --- a/crates/openshell-spiffe/src/lib.rs +++ b/crates/openshell-spiffe/src/lib.rs @@ -87,8 +87,7 @@ pub fn trust_domain(subject: &str) -> Option<&str> { /// Longest SPIFFE ID the SPIFFE specification permits. const MAX_SPIFFE_ID_BYTES: usize = 2048; -/// Operator-configured prefix of the stable SPIFFE IDs the gateway requests -/// for sandboxes using shared supervision. +/// Operator-configured prefix of stable sandbox SPIFFE IDs. /// /// A sandbox's ID is `/gateway//sandbox/`. /// Both IDs must already be valid SPIFFE path segments; nothing is encoded, @@ -142,6 +141,24 @@ impl SandboxSpiffeIdPrefix { } Ok(id) } + + /// Build the SPIFFE ID for one supervisor launch. + pub fn supervisor_launch_spiffe_id( + &self, + gateway_id: &str, + sandbox_id: &str, + launch_id: &str, + ) -> Result { + if !is_spiffe_path_segment(launch_id) { + return Err("supervisor launch ID must be a valid SPIFFE path segment".into()); + } + let sandbox = self.sandbox_spiffe_id(gateway_id, sandbox_id)?; + let id = format!("{sandbox}/launch/{launch_id}"); + if id.len() > MAX_SPIFFE_ID_BYTES { + return Err("supervisor launch SPIFFE ID exceeds 2048 bytes".into()); + } + Ok(id) + } } /// A JWT-SVID verified for a sandbox's stable SPIFFE ID and one audience. @@ -151,7 +168,7 @@ pub struct SandboxJwtSvid { pub spiffe_id: String, /// The signed token. It is a credential and never printed. pub token: String, - /// The verified `exp` claim, in Unix seconds. + /// When the verified identity expires for the grant, in Unix seconds. pub expires_at: i64, } @@ -297,6 +314,12 @@ mod tests { prefix.sandbox_spiffe_id("gw", "4f1c2b3a-9d8e").unwrap(), "spiffe://example.org/openshell/gateway/gw/sandbox/4f1c2b3a-9d8e" ); + assert_eq!( + prefix + .supervisor_launch_spiffe_id("gw", "4f1c2b3a-9d8e", "launch-1") + .unwrap(), + "spiffe://example.org/openshell/gateway/gw/sandbox/4f1c2b3a-9d8e/launch/launch-1" + ); for invalid in [ "spiffe://Example.org", "spiffe://example.org/", diff --git a/crates/openshell-supervisor/src/backend_setup/tests.rs b/crates/openshell-supervisor/src/backend_setup/tests.rs index 0f5b2ec5e2..3bfd32ba82 100644 --- a/crates/openshell-supervisor/src/backend_setup/tests.rs +++ b/crates/openshell-supervisor/src/backend_setup/tests.rs @@ -158,6 +158,8 @@ impl TestSetup { gateway_expires_at: 0, sandbox_token: SecretJwt::parse("test-sandbox-token").unwrap(), sandbox_expires_at: i64::MAX, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-supervisor/src/legacy_startup_regression_tests.rs b/crates/openshell-supervisor/src/legacy_startup_regression_tests.rs index b3c56facda..3378a0c94b 100644 --- a/crates/openshell-supervisor/src/legacy_startup_regression_tests.rs +++ b/crates/openshell-supervisor/src/legacy_startup_regression_tests.rs @@ -271,6 +271,8 @@ async fn config_push_regression_legacy_gateway_never_observes_ready_before_workl gateway_expires_at: 0, sandbox_token: openshell_core::jwt::SecretJwt::parse("test-sandbox-token").unwrap(), sandbox_expires_at: 0, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-supervisor/src/lib.rs b/crates/openshell-supervisor/src/lib.rs index 3ec4035113..2a5d361256 100644 --- a/crates/openshell-supervisor/src/lib.rs +++ b/crates/openshell-supervisor/src/lib.rs @@ -4817,6 +4817,8 @@ mod tests { sandbox_token: openshell_core::jwt::SecretJwt::parse("test-sandbox-token") .expect("token"), sandbox_expires_at: 0, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: None, ocsf_otlp_headers: None, diff --git a/crates/openshell-supervisor/src/main.rs b/crates/openshell-supervisor/src/main.rs index b455799f1e..906b8874be 100644 --- a/crates/openshell-supervisor/src/main.rs +++ b/crates/openshell-supervisor/src/main.rs @@ -1283,6 +1283,8 @@ mod tests { gateway_expires_at: 0, sandbox_token: SecretJwt::parse("test-sandbox-token").unwrap(), sandbox_expires_at: 0, + provider_spiffe_id: None, + provider_launch_spiffe_id: None, ssh_host_private_key: None, traces_otlp_headers: secret("lane=traces"), ocsf_otlp_headers: secret("lane=ocsf"), diff --git a/proto/driver_launch.proto b/proto/driver_launch.proto index c05fe0e775..5fba813ff1 100644 --- a/proto/driver_launch.proto +++ b/proto/driver_launch.proto @@ -59,6 +59,9 @@ message ConfigureRequest { // resource labels to the gateway. Empty means the defaults. A typed // `resource_admission_policy` is reserved for a later protocol version. string resource_admission_policy_json = 7; + // Whether the gateway selected verified provider workload identity. + // Managed Docker and Podman require an explicit true to qualify for this mode. + optional bool verified_provider_workload_identity = 8; } message ConfigureResponse {}