Repository navigation
Conversation
shiju-nv
changed the base branch from
main
to
feat/6049-gateway-verified-grants/shiju-nv
November 28, 2026 20:53
2 of 8 tasks
shiju-nv
force-pushed
the
feat/6049-docker-provider-identity/shiju-nv
branch
from
November 28, 2026 21:43
b59f687 to
46e39e7
Compare
shiju-nv
force-pushed
the
feat/6049-gateway-verified-grants/shiju-nv
branch
from
November 28, 2026 21:43
cdb376e to
2191f10
Compare
shiju-nv
force-pushed
the
feat/6049-docker-provider-identity/shiju-nv
branch
from
November 28, 2026 23:36
46e39e7 to
8e890d1
Compare
shiju-nv
force-pushed
the
feat/6049-gateway-verified-grants/shiju-nv
branch
from
November 28, 2026 23:36
2191f10 to
00c7684
Compare
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/<runtime generation>, 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 <shiju@nvidia.com>
Let a dedicated supervisor prove its sandbox and launch identity when it asks the gateway for a provider access token. - GetSandboxProviderAccessToken accepts two optional JWT-SVIDs. Shared supervisors keep omitting them. - When the launch bundle carries provider SPIFFE IDs, the supervisor fetches one JWT-SVID for the stable sandbox ID and the provider audience, and one for the launch ID and the launch audience. It sends both over TLS or numeric loopback only. - The supervisor reuses a pair for up to five seconds, stops one second before either expires, and never reuses assertions that carry a JWT ID. - The provider audience rule moves to openshell-core so the supervisor and the gateway derive it the same way. A whitespace-only configured audience now derives the issuer on the direct path too. - A probe subcommand takes a Workload API socket path and reports whether the supervisor can see it, so drivers can qualify a supervisor before launch. Bundles without provider SPIFFE IDs keep the existing direct exchange. Signed-off-by: Shiju <shiju@nvidia.com>
With provider workload identity configured, tell each dedicated supervisor which SPIFFE identities to request. - The launch bundle carries the stable sandbox SPIFFE ID and the launch SPIFFE ID. The gateway derives both from the configured prefix, its gateway ID, the sandbox ID and the sandbox's runtime generation. No new state is stored. - At startup the gateway requires the selected driver to advertise provider workload identity and names the capability when it is missing. - SpiffeWorkloadIdentityConfig holds the prefix and the gateway's Workload API socket path. Start, stop, restart and recovery are unchanged. No gateway setting enables the mode yet. Signed-off-by: Shiju <shiju@nvidia.com>
Authorize a dedicated supervisor's provider grant from its signed session and two JWT-SVIDs, then perform the OAuth exchange in the gateway. - The gateway derives the expected stable and launch SPIFFE IDs from the session's sandbox and runtime generation. It verifies both signatures against the Workload API trust bundle and requires the exact subject, a single audience, and an unexpired token for each. - The session and the provider attachment are rechecked before each OAuth exchange and before a cached or new token is returned. A stopped sandbox or a superseded generation is denied on cache hits too. - The token cache key includes the generation, the attachment epoch, the provider revision, and the resolved exchange subject. Token lifetime is capped by the session, both assertions, and the subject expiry. - Requests, cache misses, and OAuth exchanges have separate per-sandbox limits, and the gateway-wide cap scales with them, so warm grants are served while other grants wait on OAuth. - A token service timeout is shared with queued requests whatever status its response headers carried. - The stored token-exchange subject stays in the gateway, and the direct subject-exchange RPC is closed while this mode is configured. Signed-off-by: Shiju <shiju@nvidia.com>
Let the Docker driver start supervisors that a Workload API issuer can bind to one sandbox launch. - The driver labels the supervisor container with the launch SPIFFE ID from its launch bundle, after checking that the bundle's identities belong to the sandbox. The workload container carries the label with an empty value, so an image or template label cannot set it. - The driver advertises provider workload identity when the mode is selected, the Workload API socket is configured, the supervisor can reach the gateway over HTTPS or numeric loopback, and a probe shows that the supervisor image supports the mode. A managed driver needs the gateway's selection. A standalone driver qualifies from its socket setting. - A start whose launch differs from the running supervisor's replaces the supervisor. The driver already recreates the supervisor on a start. A supervisor left over from a stopped workload is now removed unless it carries the requested launch. Create, stop, delete, startup cleanup and monitoring are unchanged. Signed-off-by: Shiju <shiju@nvidia.com>
shiju-nv
force-pushed
the
feat/6049-docker-provider-identity/shiju-nv
branch
from
November 29, 2026 04:35
8e890d1 to
8ed1b3b
Compare
shiju-nv
force-pushed
the
feat/6049-gateway-verified-grants/shiju-nv
branch
from
November 29, 2026 04:35
00c7684 to
064d09f
Compare
Contributor
|
Heads-up: every file in this PR is in a path that is frozen in this repository while the Docker, Podman and VM drivers move to ai-openshell/desktop. The move is tracked in #5200, and this PR in #6167. The |
10 of 59 tasks
shiju-nv
force-pushed
the
feat/6049-gateway-verified-grants/shiju-nv
branch
from
December 4, 2026 11:37
064d09f to
2e6c1d4
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Let the Docker driver start supervisors that a Workload API issuer can bind to one sandbox launch. This is layer 5 of 8 in the stack that starts at #6050. Create, stop, delete, startup cleanup and monitoring are unchanged.
Related Issue
Part of #6049
Changes
openshell.compute.provider-workload-identitywhen the mode is selected, the Workload API socket is configured, the supervisor can reach the gateway over HTTPS or numeric loopback, and a probe shows that the supervisor image supports the mode. A managed driver needs the gateway's selection. A standalone driver qualifies from its socket setting.Release Notes
Every new Docker workload container carries the
openshell.ai/provider-launch-spiffe-idlabel with an empty value. A standalone Docker driver withprovider_spiffe_workload_api_socketset runs one probe container at startup.Testing
Checklist