Skip to content

Commit ce59971

Browse files
committed
docs: focus service forwarding guidance on user actions
Signed-off-by: Shiju <shiju@nvidia.com>
1 parent a8d2d7f commit ce59971

4 files changed

Lines changed: 12 additions & 29 deletions

File tree

‎crates/openshell-sdk/README.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,6 @@ These helpers use the raw client's authentication slot. They do not perform OIDC
215215

216216
## Next minor API migration
217217

218-
This source-breaking API change targets the next minor release and must not be backported into the `0.1.x` patch series.
219-
220218
Raw `SandboxStatus` adds optional `ingress_admission`, and raw `CreateSandboxRequest` adds `forward_ports`. Compute-driver `ValidateSandboxCreateResponse` also adds optional `ingress_admission`. Complete generated Rust literals must initialize optional descriptors to `None` and ports to an empty vector, or use `..Default::default()`.
221219

222-
Legacy wire payloads retain their field identities and decode the new fields as absent or empty. Upgrade gateway writers together because older writers can drop the admitted record. With a driver that negotiates ingress admission, the gateway rejects forwarding without that record until the sandbox is recreated with admitted ports. Legacy drivers that do not negotiate admission can still omit it.
220+
Upgrade gateway replicas together. If forwarding reports missing admission after an upgrade, recreate the sandbox with the required service ports.

‎docs/extensibility/isolation-backends.mdx‎

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,8 @@ TCP, or vsock endpoint. The driver provisions the resource and delivers the
4040
backend's trusted launch metadata to the supervisor.
4141

4242
Compute drivers that advertise `openshell.compute.ingress-admission` return
43-
an immutable ingress envelope from `ValidateSandboxCreate`: unsupported,
44-
isolated loopback, or explicitly admitted shared-host loopback, with all ports
45-
or an exact port set. The gateway checks create-time forwarding and exposure
46-
requests before provisioning and retains the envelope in sandbox status.
47-
Forwarding clients check it before opening local listeners; the gateway also
48-
checks live TCP relays and HTTP service routing before reusing connections.
49-
The isolation backend remains responsible for enforcing the target connection.
50-
Legacy absence is distinct from missing evidence under the negotiated contract.
43+
the supported forwarding scope and allowed ports from `ValidateSandboxCreate`.
44+
The isolation backend must enforce those limits when connecting to a service.
5145

5246
## Who Owns What
5347

@@ -63,8 +57,5 @@ workload behavior, refer to [Runtimes](/how-it-works/sandboxes/runtimes).
6357

6458
## Release compatibility
6559

66-
These API changes target the next minor release and must not be backported into the `0.1.x` patch series. Upgrade gateway replicas together because older writers can drop the admitted ingress record.
67-
68-
If a driver negotiated ingress admission but an existing sandbox has no retained record, recreate the sandbox with its required ports. A legacy driver that does not negotiate admission can still omit the record.
69-
70-
For raw message changes, see the [SDK migration notes](https://github.com/NVIDIA/OpenShell/blob/main/crates/openshell-sdk/README.md#next-minor-api-migration).
60+
Upgrade gateway replicas together. For source compatibility changes, see the
61+
[SDK migration notes](https://github.com/NVIDIA/OpenShell/blob/main/crates/openshell-sdk/README.md#next-minor-api-migration).

‎docs/how-it-works/sandboxes/overview.mdx‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -826,14 +826,11 @@ Press `c` in the Sandboxes panel to create a sandbox. In the optional Command fi
826826
827827
## Port Forwarding
828828
829-
Compute drivers can restrict forwarding to an admitted set of ports. Declare
830-
forward ports when creating the sandbox; unadmitted targets are rejected before
831-
provisioning or opening a local listener. `openshell sandbox get <name> -o json`
832-
shows `ingress_admission` with its scope, port list and `all_ports` flag. A
833-
`shared_host_loopback` scope refers to an operator-approved host service, rather
834-
than a service isolated inside the sandbox. If an upgraded driver reports
835-
unknown or missing admission for an existing sandbox, recreate it with the
836-
required ports. A legacy driver leaves admission absent.
829+
Compute drivers can restrict which service ports you can forward. Declare the
830+
target port at creation with `--forward <port>`. Disallowed ports are rejected
831+
before a local listener opens. If forwarding reports missing admission after an
832+
upgrade, recreate the sandbox with the required port. A shared-host loopback
833+
target is an operator-approved service on the compute host.
837834
838835
Forward a local port to a running sandbox to access services inside it, such as a web server or database:
839836

‎skills/openshell-cli/SKILL.md‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -823,11 +823,8 @@ CLI forwards ignore SSH multiplexing and automatic backgrounding settings in the
823823
user's SSH config. Only background forwards are tracked by `forward list` and
824824
managed by `forward stop`; foreground forwards end when the command exits.
825825

826-
Forwarding and service exposure respect the compute driver's admitted target
827-
ports. Modern drivers reject unsupported or unadmitted ports before create
828-
provisioning or a local listener starts. Shared-host loopback scope means the
829-
target shares the compute host's network namespace; choose a different local
830-
port when the target already occupies that host port.
826+
Declare required target ports at creation with `--forward`. For shared-host
827+
loopback targets, choose a different local port if the target already uses it.
831828

832829
Manage or iterate on the sandbox:
833830

0 commit comments

Comments
 (0)