Skip to content

chore(core): track v0.1.11-pre.1 - #69

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

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

Conversation

@ai-openshell-sdk-python

Copy link
Copy Markdown
Contributor

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

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

Proto changes

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.1 and regenerate the bindings.

Signed-off-by: ai-openshell-sdk-python[bot] <354503561+ai-openshell-sdk-python[bot]@users.noreply.github.com>
@ai-openshell-sdk-python
ai-openshell-sdk-python Bot requested review from a team as code owners November 26, 2026 13:22
@ai-openshell-sdk-python ai-openshell-sdk-python 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 26, 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