Repository navigation
Conversation
|
🌿 Preview your docs: https://nvidia-preview-pr-6050.docs.buildwithfern.com/openshell |
shiju-nv
force-pushed
the
shiju-nv/sandbox-spiffe-provider-identity
branch
from
November 28, 2026 13:06
a9f4775 to
9ae1e10
Compare
shiju-nv
marked this pull request as draft
November 28, 2026 13:07
shiju-nv
force-pushed
the
shiju-nv/sandbox-spiffe-provider-identity
branch
26 times, most recently
from
November 28, 2026 16:21
5d100ba to
9ea7a4a
Compare
shiju-nv
force-pushed
the
shiju-nv/sandbox-spiffe-provider-identity
branch
from
November 28, 2026 20:33
9ea7a4a to
b8035a1
Compare
This was referenced Nov 28, 2026
This was referenced Nov 28, 2026
shiju-nv
marked this pull request as ready for review
November 28, 2026 20:55
2 of 8 tasks
shiju-nv
force-pushed
the
shiju-nv/sandbox-spiffe-provider-identity
branch
2 times, most recently
from
November 28, 2026 23:36
b68c1cf to
dec8cec
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>
shiju-nv
force-pushed
the
shiju-nv/sandbox-spiffe-provider-identity
branch
from
November 29, 2026 04:35
dec8cec to
1358794
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
Layer 1 of a stack of 8 that gives each sandbox its own SPIFFE identity for OAuth provider grants (#6049). This layer adds the contract the gateway and a compute driver share. Nothing uses it yet.
Why two identities
The stable identity,
<prefix>/gateway/<gateway-id>/sandbox/<sandbox-id>, is the subject an OAuth provider authorizes. It stays the same across restarts.That alone is not enough. A supervisor left over from an earlier start of the same sandbox would match the same issuer registration as its replacement. So each start also has a launch identity: the stable ID followed by
/launch/<runtime generation>. The gateway already issues a new runtime generation on create, start, resume and automatic restart, so the launch identity changes exactly then, and nothing new is stored.What a driver that advertises the capability does
StartSandboxandStopSandboxkeep their existing contract and stay idempotent. The compute driver proto and the driver SDK are unchanged.An earlier version of this PR added an ordered start protocol with a driver-side journal, so that a launch identity could never start a second process. It is gone. The gateway already refuses every supervisor session except the current one, so the rule here is simpler: one supervisor per sandbox at a time.
Related Issue
Part of #6049
Changes
openshell.compute.provider-workload-identity.provider_spiffe_idandprovider_launch_spiffe_id.validate_provider_launch_identitylets a driver check that both IDs belong to the sandbox and generation it is starting.ConfigureRequest.verified_provider_workload_identitytells a managed driver that the mode is selected.openshell.ai/provider-launch-spiffe-idand the supervisor probe constants, shared by the supervisor and the drivers.openshell-spiffebuilds the launch SPIFFE ID.Release Notes
Testing
Checklist