Skip to content

feat(gateway): broker provider grants for a live local workload - #6061

Open
shiju-nv wants to merge 1 commit into
feat/6049-gateway-provider-launch/shiju-nvfrom
feat/6049-gateway-verified-grants/shiju-nv
Open

shiju-nv wants to merge 1 commit into
feat/6049-gateway-provider-launch/shiju-nvfrom
feat/6049-gateway-verified-grants/shiju-nv

Conversation

@shiju-nv

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

Copy link
Copy Markdown
Collaborator

Summary

The gateway obtains a provider grant for the sandbox workload identified by its compute driver. On a Linux engine host, it sends the workload's PID to the local SPIRE Broker API and keeps a pidfd open through the OAuth exchange and token delivery. Kubernetes continues to use its Sandbox object UID.

Related Issue

Part of #6049. Depends on #6059 for the live workload lookup. #6065 supplies configuration and deployment requirements.

Changes

  • Send a process reference only over the local broker socket. Authenticate the SPIRE agent with mTLS and check that its broker and trusted Workload API sockets have the same kernel peer in the gateway's PID namespace.
  • Bind cached and newly issued grants to the workload, session, generation, attachment epoch, provider configuration and resolved subject. Recheck authorization before delivery and cap token lifetime at the applicable credential expiries.
  • Coordinate concurrent misses for a grant and reserve capacity for warm requests. Reject the legacy supervisor-side exchange when the local broker owns issuance.

Release Notes

Local broker mode serves the existing shared-supervisor grant RPC. It requires a cooperating compute driver and a SPIRE registration for the individual workload.

Testing

  • Gateway grant tests passed, including cache expiry, concurrent misses, provider reattachment, and stop or restart during an exchange.
  • All four SPIRE adapter tests passed on Linux ARM64, including the Unix peer check and the PID wire encoding.
  • A live deployment with two independently enrolled Desktop workloads and an OAuth issuer remains to be verified.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • The provider and broker interfaces document the accepted workload references

@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-gateway-provider-launch/shiju-nv November 28, 2026 20:53
@shiju-nv
shiju-nv added this pull request to stack #6060 November 28, 2026 20:53
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-verified-grants/shiju-nv branch from cdb376e to 2191f10 Compare November 28, 2026 21:43
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-verified-grants/shiju-nv branch from 2191f10 to 00c7684 Compare November 28, 2026 23:36
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-verified-grants/shiju-nv branch from 00c7684 to 064d09f Compare November 29, 2026 04:35
@shiju-nv
shiju-nv removed this pull request from stack #6060 December 4, 2026 11:35
@shiju-nv
shiju-nv force-pushed the feat/6049-gateway-verified-grants/shiju-nv branch from 064d09f to 2e6c1d4 Compare December 4, 2026 11:37
@shiju-nv shiju-nv changed the title feat(gateway): verify supervisor workload assertions for provider grants feat(gateway): broker provider grants for a live local workload Dec 4, 2026
@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