Skip to content

feat(gateway): resolve the live workload for a sandbox generation - #6059

Open
shiju-nv wants to merge 1 commit into
shiju-nv/sandbox-spiffe-provider-identityfrom
feat/6049-gateway-provider-launch/shiju-nv
Open

shiju-nv wants to merge 1 commit into
shiju-nv/sandbox-spiffe-provider-identityfrom
feat/6049-gateway-provider-launch/shiju-nv

Conversation

@shiju-nv

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

Copy link
Copy Markdown
Collaborator

Summary

Resolve a provider grant against the live workload for the sandbox's current generation. The gateway asks the compute driver for that workload over the existing driver channel. A supervisor can serve several sandboxes without its own PID becoming their common identity.

Related Issue

Part of #6049. This builds on the private workload-reference RPC in #6050. The broker uses the returned handle in #6061. Compare this change against #6050.

Changes

  • Negotiate the optional compute-driver capability on Linux and construct the reference client only when the driver advertises it.
  • Check the sandbox ID, current generation, lifecycle phase and any stored runtime identity after the driver replies. Capture the process on the gateway host and compare its boot ID, PID namespace and start time with the reply.
  • Return a live process handle to the caller. Grants after a restart or gateway recovery resolve the current workload again.

Release Notes

This supplies the gateway side of the local driver contract. The SPIRE exchange and operator settings follow in the next two PRs.

Testing

  • The gateway unit test passed for a matching live generation, a superseded generation and a sandbox entering the stopping phase.
  • The server library and its test targets compiled with the new client.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • The resolver documents the caller's liveness and reauthorization obligations

@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 feat/6049-supervisor-workload-assertions/shiju-nv 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-gateway-provider-launch/shiju-nv branch 2 times, most recently from 6c824e7 to e0d1639 Compare November 28, 2026 23:36
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-provider-launch/shiju-nv branch from e0d1639 to 594bd13 Compare November 29, 2026 04:35
@shiju-nv shiju-nv changed the title feat(gateway): bind provider launches to replayable driver operations feat(gateway): name each supervisor launch in its launch bundle Nov 29, 2026
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-provider-launch/shiju-nv branch from 594bd13 to 08acac6 Compare December 4, 2026 11:30
@shiju-nv
shiju-nv requested a review from a team as a code owner December 4, 2026 11:30
@shiju-nv shiju-nv changed the title feat(gateway): name each supervisor launch in its launch bundle feat(gateway): resolve the live workload for a sandbox generation Dec 4, 2026
@shiju-nv
shiju-nv removed this pull request from stack #6060 December 4, 2026 11:35
@shiju-nv
shiju-nv changed the base branch from feat/6049-supervisor-workload-assertions/shiju-nv to shiju-nv/sandbox-spiffe-provider-identity December 4, 2026 11:36
Re-read the sandbox after the driver replies so a stop or generation change invalidates an in-flight lookup. Hold a pidfd while the caller obtains a grant.

Signed-off-by: Shiju <shiju@nvidia.com>
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-provider-launch/shiju-nv branch from 08acac6 to 13fde4c Compare December 4, 2026 11:37
@shiju-nv
shiju-nv added this pull request to stack #6232 December 4, 2026 11:38

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