Skip to content

feat(supervisor): present workload assertions for provider grants - #6058

Open
shiju-nv wants to merge 1 commit into
shiju-nv/sandbox-spiffe-provider-identityfrom
feat/6049-supervisor-workload-assertions/shiju-nv
Open

shiju-nv wants to merge 1 commit into
shiju-nv/sandbox-spiffe-provider-identityfrom
feat/6049-supervisor-workload-assertions/shiju-nv

Conversation

@shiju-nv

@shiju-nv shiju-nv commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Let a dedicated supervisor prove its sandbox and launch identity when it asks the gateway for a provider access token. This is layer 2 of 8 in the stack that starts at #6050. Launch bundles without provider SPIFFE IDs keep the existing direct exchange.

Related Issue

Part of #6049

Changes

  • 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 urn:openshell:provider-grants:launch:<generation>. 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::oauth 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.
  • openshell-supervisor provider-workload-identity-probe <socket> reports whether the supervisor can see a Workload API socket, so a driver can qualify a supervisor before launch.

Release Notes

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 28, 2026
@shiju-nv
shiju-nv changed the base branch from main to shiju-nv/sandbox-spiffe-provider-identity November 28, 2026 20:43
@shiju-nv
shiju-nv added this pull request to stack #6060 November 28, 2026 20:43
@shiju-nv
shiju-nv force-pushed the feat/6049-supervisor-workload-assertions/shiju-nv branch from 7d9cea7 to d657bba Compare November 28, 2026 21:43
@shiju-nv
shiju-nv force-pushed the feat/6049-supervisor-workload-assertions/shiju-nv branch from d657bba to dd1e11f Compare November 28, 2026 23:36
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>
@shiju-nv
shiju-nv force-pushed the feat/6049-supervisor-workload-assertions/shiju-nv branch from dd1e11f to a48bc30 Compare November 29, 2026 04:35

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

state:accepted A maintainer decided OpenShell should pursue this issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant