You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e6d5206
Browse filesBrowse the repository at this point in the historyBrowse files
settings, logs, watch streams, and relay forwarding.
12
16
- Serve HTTP endpoints for health, WebSocket tunnels, and edge-auth flows.
@@ -314,7 +318,9 @@ identity inspection without client-side token decoding.
314
318
Sandbox secrets are gateway-signed JWTs bound to a single sandbox ID. Docker,
315
319
Podman, and VM drivers deliver the initial token through supervisor-only
316
320
runtime material; Kubernetes supervisors exchange a projected ServiceAccount
317
-
token through `IssueSandboxToken`. The gateway delegates that opaque credential
321
+
token through `RegisterSupervisor` to receive their runtime assignment and
322
+
in-memory authentication bundle. `IssueSandboxToken` remains available for
323
+
existing bootstrap clients. The gateway delegates that opaque credential
318
324
to the selected compute driver's `AuthenticateSandbox` RPC. A capable driver is
319
325
trusted to return the authenticated sandbox ID, while the gateway still requires
320
326
a matching durable sandbox record before minting a JWT. The Kubernetes driver
@@ -397,6 +403,11 @@ The storage schema is intentionally narrow:
397
403
398
404
Public RPC contracts and durable protobuf formats have separate ownership. The `openshell.v1.OpenShell` service's request and response roots, streaming flags, and transitive message closure come from the public descriptor set generated by `openshell-core`. The `public_and_durable_schema_inventories_are_complete` test in `openshell-server` owns the counts and fingerprints and requires this inventory to be reviewed whenever it changes. Compute-driver, credential-driver, gateway-interceptor, and supervisor-middleware services are compiled contracts for internal extension boundaries.
399
405
406
+
`RegisterSupervisor` adds request and response messages to the public closure.
407
+
Its assignment response carries initial runtime credentials but is not persisted
408
+
as a protobuf storage root. Warm-pool selection and synchronization extend the
409
+
internal compute-driver contract; neither changes the durable schema inventory.
410
+
400
411
`ReportEndpointStatus` is a sandbox-authenticated public gateway RPC. Its request, response, and `EndpointObservation` messages belong only to the public closure. `EndpointStatus` and `EndpointResult` also belong to the durable closure because `Sandbox.status.endpoint_statuses` persists them. The repeated status field uses a new wire tag; stored sandboxes without it decode with an empty endpoint list and retain their lifecycle fields. A fixed payload encoded with the earlier sandbox schema verifies that no database rewrite is required.
401
412
402
413
Allow and deny append requests carry `L7RuleTarget` to declare the rule, endpoint, and complete affected scope. The removed `host` and `port` fields remain reserved by number and name, and requests without a target are rejected. These mutation requests are not persisted formats.
@@ -548,6 +559,20 @@ revisions commit in one database transaction. SQLite serializes this operation
548
559
with an immediate transaction, while Postgres locks the sandbox row. A failed
549
560
resource-version check or revision insert rolls back the entire operation.
550
561
562
+
Warm allocation intent and its exclusive target reservation commit in one
563
+
transaction. The `allocation_claims` table keys ownership by configured driver,
564
+
namespace, and physical UID; the owner is a sandbox provisioning attempt and
565
+
runtime generation. A uniqueness conflict rolls back the sandbox write and
566
+
allows immediate selection of another target. Reservations have no TTL and
567
+
survive ambiguous driver outcomes and gateway restart. Only fenced or reclaimed
568
+
allocations release ownership; deleting the owning sandbox cascades its claims.
569
+
The driver's resource CAS still arbitrates physical assignment and retirement.
570
+
Creates with attached providers hold the gateway-wide sandbox lock from provider
571
+
validation through the sandbox and reservation commit, including reservation
572
+
retries. They release it before submitting creation to the driver. Allocation
573
+
completion and recovery then acquire their own synchronization and lifecycle
574
+
locks.
575
+
551
576
SQLite is the default local store; Postgres is supported for deployments that
552
577
need an external database or multi-replica coordination. Both backends expose
553
578
the same `Store` API and the same logical schema. Backend differences stay
0 commit comments