Skip to content

chore(core): track v0.1.11-pre.2 - #34

Open
ai-openshell-sdk-typescript[bot] wants to merge 1 commit into
mainfrom
core/v0.1.11-pre.2
Open

ai-openshell-sdk-typescript[bot] wants to merge 1 commit into
mainfrom
core/v0.1.11-pre.2

Conversation

@ai-openshell-sdk-typescript

Copy link
Copy Markdown
Contributor

Move the core pin from v0.1.10 to v0.1.11-pre.2 (prerelease).

  • Core changes: v0.1.10...v0.1.11-pre.2
  • Regenerated bindings: 2 files changed, 76 insertions(+), 10 deletions(-)
  • E2E runs against quay.io/ai-openshell/gateway:0.1.11-pre.2
  • Files copied from core:
    • none changed

Proto changes

diff --git a/proto/driver_launch.proto b/proto/driver_launch.proto
new file mode 100644
index 0000000..c05fe0e
--- /dev/null
+++ b/proto/driver_launch.proto
@@ -0,0 +1,112 @@
+// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+// SPDX-License-Identifier: Apache-2.0
+
+syntax = "proto3";
+
+package openshell.driver.launch.v1;
+
+// Private gateway-to-driver launch protocol.
+//
+// The gateway starts a compute driver with only bootstrap arguments and the
+// operator's driver table on stdin. Once the driver is serving on its private
+// socket, the gateway calls GetLaunchInfo and then Configure to deliver
+// gateway-owned metadata. Until Configure succeeds, every other service the
+// driver serves returns UNAVAILABLE.
+service DriverLaunch {
+  // Identify the driver and the protocol versions and features it supports.
+  // Answers before Configure.
+  rpc GetLaunchInfo(GetLaunchInfoRequest) returns (GetLaunchInfoResponse);
+
+  // Deliver gateway-owned metadata. Succeeds at most once. A call that fails
+  // leaves the driver running and unconfigured, so the protocol lets the
+  // gateway retry. The current gateway does not: a failed Configure fails the
+  // launch and stops the driver. A request is at most 1 MiB.
+  rpc Configure(ConfigureRequest) returns (ConfigureResponse);
+
+  // Release the driver: the gateway has finished with it. The driver answers,
+  // finishes the calls in flight and exits. Until it is released, or its
+  // gateway is gone, a driver defers a stop signal that reaches it from
+  // elsewhere, such as a service manager that signals every process of the
+  // gateway's unit. That keeps the gateway's own shutdown work, such as
+  // stopping sandboxes through the driver, able to finish first.
+  rpc Shutdown(ShutdownRequest) returns (ShutdownResponse);
+}
+
+message GetLaunchInfoRequest {}
+
+message GetLaunchInfoResponse {
+  string driver_name = 1;
+  string driver_version = 2;
+  repeated uint32 protocol_versions = 3;
+  repeated string features = 4;
+}
+
+message ConfigureRequest {
+  uint32 protocol_version = 1;
+  // Features the gateway requires. The driver rejects any it does not know
+  // with FAILED_PRECONDITION.
+  repeated string required_features = 2;
+  GatewayContext gateway = 3;
+  // Unset means there is no trust bundle.
+  NetworkTrust network_trust = 4;
+  ImageOverrides image_overrides = 5;
+  Telemetry telemetry = 6;
+  // The resource admission policy: `allow_driver_config` and
+  // `resource_admission`, as the JSON of `DriverAdmissionConfig`. This is the
+  // value `GetCapabilities.resource_admission_policy` carries, without its
+  // `v1:` prefix: `protocol_version` already versions it. The gateway owns and
+  // validates it. The driver applies it until `ComputeDriver` reports resolved
+  // 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;
+}
+
+message ConfigureResponse {}
+
+message ShutdownRequest {}
+
+message ShutdownResponse {}
+
+message GatewayContext {
+  uint32 gateway_port = 1;
+  string tls_ca_path = 2;
+  string gateway_name = 3;
+  // The gateway's listener, `ip:port`. Drivers that choose how sandboxes reach
+  // the gateway from its bind address, such as Docker, use it.
+  string bind_address = 4;
+}
+
+message NetworkTrust {
+  string artifact_path = 1;
+  string digest = 2;
+  uint32 certificate_count = 3;
+}
+
+// From OPENSHELL_SANDBOX_RUNTIME_IMAGE and OPENSHELL_SUPERVISOR_IMAGE.
+message ImageOverrides {
+  optional string sandbox_runtime_image = 1;
+  optional string supervisor_image = 2;
+}
+
+message Telemetry {
+  // The driver's own exporter and the supervisors.
+  OtlpExport traces = 1;
+  // Supervisors.
+  OtlpExport ocsf = 2;
+  // Supervisors.
+  OtlpExport agent = 3;
+  CollectorTls collector = 4;
+  // Secret, in OTEL_EXPORTER_OTLP_TRACES_HEADERS format.
+  string trace_headers = 5;
+}
+
+message OtlpExport {
+  string endpoint = 1;
+  string protocol = 2;
+}
+
+message CollectorTls {
+  string ca_file = 1;
+  string cert_file = 2;
+  string key_file = 3;
+}
diff --git a/proto/openshell.proto b/proto/openshell.proto
index c01e88d..4212445 100644
--- a/proto/openshell.proto
+++ b/proto/openshell.proto
@@ -72,7 +72,9 @@ service OpenShell {
     };
   }
 
-  // Fetch a sandbox by name.
+  // Fetch a sandbox by name. Response metadata x-openshell-direct-ssh: 1
+  // advertises support for TcpForwardInit.direct_ssh_sandbox_id for this
+  // caller. ForwardTcp authorizes each connection independently.
   rpc GetSandbox(GetSandboxRequest) returns (SandboxResponse) {
     option (openshell.options.v1.authorization) = {
       auth_mode: "bearer"
@@ -1993,11 +1995,9 @@ message CreateSshSessionRequest {
 
 // Create SSH session response.
 //
-// Fields are interpolated into an SSH `ProxyCommand` string that OpenSSH
-// executes through `/bin/sh -c` on the caller's workstation. Servers MUST
-// uphold the charset contract below; clients MUST reject responses that
-// violate it. The client's own escaping provides defense-in-depth, but
-// narrow charsets close injection vectors at the trust boundary.
+// Servers MUST uphold the charset contract below. Clients MUST validate the
+// response before using it to open a relay. Send the session token only in the
+// authenticated gateway RPCs that use it. Keep it out of SSH command lines.
 message CreateSshSessionResponse {
   reserved 8;
   reserved "expires_at_ms";
@@ -2044,6 +2044,8 @@ message ExposeServiceRequest {
   string request_id = 6;
   // Application authorization behavior. Omission resolves to STRIP.
   ServiceAuthorizationMode authorization_mode = 7;
+  // HTTP version on the loopback hop. Omission uses HTTP/1.1.
+  ServiceBackendHttpVersion backend_http_version = 8;
 }
 
 // Request to fetch an exposed sandbox service endpoint.
@@ -2112,6 +2114,8 @@ message ServiceEndpoint {
   bool domain = 6;
   // Effective application authorization behavior for ingress requests.
   ServiceAuthorizationMode authorization_mode = 7;
+  // HTTP version on the loopback hop. Omission uses HTTP/1.1.
+  ServiceBackendHttpVersion backend_http_version = 8;
 }
 
 // Service addresses. A configured address does not establish readiness.
@@ -2222,9 +2226,14 @@ message TcpForwardInit {
   oneof target {
     SshRelayTarget ssh = 5;
     TcpRelayTarget tcp = 6;
+    // Open SSH using the authenticated gateway caller. Set this to the
+    // immutable ID returned by GetSandbox and leave authorization_token empty.
+    // Use only when GetSandbox advertises x-openshell-direct-ssh: 1. A denied
+    // direct connection must not be retried with a session token.
+    string direct_ssh_sandbox_id = 8;
   }
-  // Optional target-specific authorization token. SSH targets use this as the
-  // short-lived SSH session token issued by CreateSshSession.
+  // The ssh target requires the session token issued by CreateSshSession.
+  // The tcp target accepts tokens from older clients.
   string authorization_token = 7 [(openshell.options.v1.secret) = true];
 }
 
@@ -4597,3 +4606,13 @@ message DiscoveredServiceRoute {
   uint64 declaration_revision = 7;
   google.protobuf.Timestamp expires_at = 8;
 }
+
+// HTTP version the supervisor uses to connect to a sandbox service.
+enum ServiceBackendHttpVersion {
+  // Omission uses HTTP/1.1.
+  SERVICE_BACKEND_HTTP_VERSION_UNSPECIFIED = 0;
+  // Cleartext HTTP/1.1.
+  SERVICE_BACKEND_HTTP_VERSION_HTTP1 = 1;
+  // Cleartext HTTP/2 with prior knowledge, via the supervisor app listener.
+  SERVICE_BACKEND_HTTP_VERSION_HTTP2 = 2;
+}
diff --git a/proto/sandbox.proto b/proto/sandbox.proto
index 491cc73..4699ee2 100644
--- a/proto/sandbox.proto
+++ b/proto/sandbox.proto
@@ -531,6 +531,8 @@ message SandboxServiceRoute {
   // Includes the application domain, without a scheme or port. An empty value
   // from an older gateway retains readable workspace--sandbox[--service] routing.
   string application_hostname = 6;
+  // ServiceBackendHttpVersion from the public service declaration.
+  int32 backend_http_version = 7;
 }
 
 // Connection details for one operator-registered supervisor middleware service.
diff --git a/proto/supervisor_host.proto b/proto/supervisor_host.proto
index 3195837..f0275a8 100644
--- a/proto/supervisor_host.proto
+++ b/proto/supervisor_host.proto
@@ -40,6 +40,7 @@ message HostMessage {
     HostHello hello = 1;
     HostStatus status = 2;
     HostHeartbeat heartbeat = 3;
+    RouteLookup route_lookup = 4;
   }
 }
 
@@ -51,6 +52,7 @@ message HostGatewayMessage {
     AssignmentSnapshot assignments = 3;
     HostGatewayHeartbeat heartbeat = 4;
     HostRedirect redirect = 5;
+    RouteOwner route_owner = 6;
   }
 }
 
@@ -94,6 +96,9 @@ message HostAccepted {
   // instances' sessions here so they run on the replica serving this stream.
   // Empty when the replica has no peer endpoint.
   string peer_endpoint = 3;
+  // The replica answers RouteLookup. A host sends no lookup on a stream
+  // without it, since a replica that predates lookups ends the stream on one.
+  bool route_lookups = 4;
 }
 
 // Another gateway replica should serve the host, which dials it at once. The
@@ -120,8 +125,8 @@ message AssignmentSnapshot {
   // Pool hosts only: routes whose sandbox is stopping or deleted; the host
   // stops their workloads if it still hosts them.
   repeated string stop_routes = 4;
-  // Pool hosts only: where each instance placed in the pool is supervised,
-  // so a sandbox runtime that reaches this host is redirected to its owner.
+  // Deprecated and no longer sent: a pool host asks for the owner of a route
+  // it does not own with RouteLookup instead.
   repeated RouteOwner route_directory = 5;
   // Pool hosts only: routes this host's process owns whose launch material
   // this gateway replica has not loaded yet. The host keeps supervising them
@@ -135,10 +140,18 @@ message AssignmentSnapshot {
   google.protobuf.Duration recovery_timeout = 7;
 }
 
+// A pool host asks where a route it does not own is supervised, so a sandbox
+// runtime that reached it can be redirected. The gateway answers each lookup
+// with a RouteOwner for the same route.
+message RouteLookup {
+  string route = 1;
+}
+
 // The pool member that supervises one route.
 message RouteOwner {
   string route = 1;
-  // Runtime listener address (IP:port) of the owning member.
+  // Runtime listener address (IP:port) of the owning member; empty when no
+  // live member owns the route.
   string runtime_address = 2;
 }
 

Before merging

  • CI and E2E must pass. If the SDK needs changes for this core version, push them to this branch.
  • Pre-release pins are not released; a newer pre-release proposal replaces this one.

Move the core pin from v0.1.10 to v0.1.11-pre.2 and regenerate the bindings.

Signed-off-by: ai-openshell-sdk-typescript[bot] <358786778+ai-openshell-sdk-typescript[bot]@users.noreply.github.com>
@ai-openshell-sdk-typescript ai-openshell-sdk-typescript Bot added core-bump Update proposal that moves the core pin to a newer NVIDIA/OpenShell release tag prerelease The core tag of this update proposal is a pre-release labels Nov 27, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core-bump Update proposal that moves the core pin to a newer NVIDIA/OpenShell release tag prerelease The core tag of this update proposal is a pre-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants