Skip to content

feat(compute): resolve a live workload process for brokered grants - #6050

Open
shiju-nv wants to merge 2 commits into
mainfrom
shiju-nv/sandbox-spiffe-provider-identity
Open

shiju-nv wants to merge 2 commits into
mainfrom
shiju-nv/sandbox-spiffe-provider-identity

Conversation

@shiju-nv

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

Copy link
Copy Markdown
Collaborator

Summary

Give the gateway a private compute-driver RPC to resolve the live workload for a sandbox generation. A shared supervisor can serve several sandboxes, so the gateway needs a way to identify the individual workload when requesting a provider grant.

Related Issue

Part of #6049. The gateway consumes this contract in #6059. Driver implementations belong in OpenShell Desktop.

Changes

  • Define the optional openshell.compute.workload-reference capability and the ComputeDriverWorkloadReferences.ResolveWorkloadReference service on the driver channel.
  • Bind the reply to the requested sandbox and generation. The process evidence includes the immutable workload ID, Linux boot ID, PID namespace, PID and process start time.
  • Add a Linux process handle that pins the observed process lifetime with a pidfd and lets the gateway check whether that process is still alive.

Release Notes

The capability is optional. A gateway can continue using existing compute drivers for their existing operations.

Testing

  • The Linux ARM64 process-lifetime test passed, including process exit.
  • The existing compute-driver compatibility target passed on Linux ARM64 and macOS ARM64, including a driver without the new service.
  • The compiled schema inventory recognizes the new private RPC and preserves the public and durable schema checks.
  • Full provider grant through a real Desktop engine and issuer belongs to the downstream integration.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Private protocol documentation updated

@github-actions github-actions Bot added the state:accepted A maintainer decided OpenShell should pursue this issue label Nov 28, 2026
@github-actions

Copy link
Copy Markdown

@shiju-nv
shiju-nv force-pushed the shiju-nv/sandbox-spiffe-provider-identity branch from a9f4775 to 9ae1e10 Compare November 28, 2026 13:06
@shiju-nv
shiju-nv marked this pull request as draft November 28, 2026 13:07
@shiju-nv
shiju-nv force-pushed the shiju-nv/sandbox-spiffe-provider-identity branch 26 times, most recently from 5d100ba to 9ea7a4a Compare November 28, 2026 16:21
@shiju-nv
shiju-nv force-pushed the shiju-nv/sandbox-spiffe-provider-identity branch from 9ea7a4a to b8035a1 Compare November 28, 2026 20:33
@shiju-nv shiju-nv changed the title feat(spiffe): verify per-sandbox provider identity across drivers feat(compute): add ordered provider start contract and launch journal Nov 28, 2026
@shiju-nv
shiju-nv added this pull request to stack #6060 November 28, 2026 20:43
@shiju-nv
shiju-nv marked this pull request as ready for review November 28, 2026 20:55
@shiju-nv
shiju-nv force-pushed the shiju-nv/sandbox-spiffe-provider-identity branch 3 times, most recently from dec8cec to 1358794 Compare November 29, 2026 04:35
@shiju-nv shiju-nv changed the title feat(compute): add ordered provider start contract and launch journal feat(compute): add provider workload identity contract Nov 29, 2026
@elezar

elezar commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Heads-up: this PR changes both files in paths that are frozen in this repository while the Docker, Podman and VM drivers move to ai-openshell/desktop, and files that stay in core. The move is tracked in #5200, and this PR in #6167.

Frozen files in this PR: crates/openshell-driver-docker/src/tests.rs, crates/openshell-driver-podman/src/driver.rs, crates/openshell-driver-podman/src/isolation.rs, crates/openshell-driver-vm/src/driver.rs.

The Frozen Paths check (#6124) fails PRs that change those files, so this PR has to be split into a core part and a desktop part that land separately. The desktop part is to be ported to desktop with your authorship preserved.

@shiju-nv
shiju-nv force-pushed the shiju-nv/sandbox-spiffe-provider-identity branch from 1358794 to 36137b2 Compare December 4, 2026 11:21
@shiju-nv shiju-nv changed the title feat(compute): add provider workload identity contract feat(compute): resolve a live workload process for brokered grants Dec 4, 2026
Signed-off-by: Shiju <shiju@nvidia.com>
@shiju-nv
shiju-nv removed this pull request from stack #6060 December 4, 2026 11:35
@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.

2 participants