Skip to content

feat(podman): support provider workload identity - #6063

Open
shiju-nv wants to merge 1 commit into
feat/6049-docker-provider-identity/shiju-nvfrom
feat/6049-podman-provider-identity/shiju-nv
Open

shiju-nv wants to merge 1 commit into
feat/6049-docker-provider-identity/shiju-nvfrom
feat/6049-podman-provider-identity/shiju-nv

Conversation

@shiju-nv

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

Copy link
Copy Markdown
Collaborator

Summary

Let the Podman driver start supervisors that a Workload API issuer can bind to one sandbox launch. This is layer 6 of 8 in the stack that starts at #6050. Without a launch identity in the launch bundle the driver behaves as before.

Related Issue

Part of #6049

Changes

  • The driver labels the supervisor container with the launch SPIFFE ID from its launch bundle, after checking that the bundle's identities belong to the sandbox. The workload container carries the label with an empty value, so an image or template label cannot set it.
  • The driver advertises openshell.compute.provider-workload-identity when the mode is selected, the Workload API socket is configured, the supervisor can reach the gateway over HTTPS or numeric loopback, and a probe shows that the supervisor image supports the mode. A managed driver needs the gateway's selection. A standalone driver qualifies from its socket setting. Every launch also runs the probe as the workload user and requires the socket to be visible.
  • A start whose launch differs from the supervisor's replaces only the supervisor. The driver prepares what can fail first, then removes the old supervisor and creates the new one with the current proxy credentials and gateway CA. The workload container and its volumes stay.
  • A start converges on retry. It restarts the right supervisor if it is stopped, creates one if none exists, and replaces one that carries another launch.

The trust refresh of a running pair keeps its existing rename and restore.

Release Notes

Every new Podman workload container carries the openshell.ai/provider-launch-spiffe-id label with an empty value. A standalone Podman driver with provider_spiffe_workload_api_socket set pulls the supervisor image and runs one probe container at startup.

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 feat/6049-docker-provider-identity/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-podman-provider-identity/shiju-nv branch from a0846a5 to d5eb110 Compare November 28, 2026 21:43
@shiju-nv
shiju-nv force-pushed the feat/6049-podman-provider-identity/shiju-nv branch from d5eb110 to 7770130 Compare November 28, 2026 23:36
Let the Podman driver start supervisors that a Workload API issuer can
bind to one sandbox launch.

- The driver labels the supervisor container with the launch SPIFFE ID
  from its launch bundle, after checking that the bundle's identities
  belong to the sandbox. The workload container carries the label with
  an empty value, so an image or template label cannot set it.
- The driver advertises provider workload identity when the mode is
  selected, the Workload API socket is configured, the supervisor can
  reach the gateway over HTTPS or numeric loopback, and a probe shows
  that the supervisor image supports the mode. A managed driver needs
  the gateway's selection. A standalone driver qualifies from its socket
  setting. Every launch also runs the probe as the workload user and
  requires the socket to be visible.
- A start whose launch differs from the supervisor's replaces only the
  supervisor. The driver prepares what can fail first, then removes the
  old supervisor and creates the new one with the current proxy
  credentials and gateway CA. The workload container and its volumes
  stay. A start that finds the right supervisor stopped restarts it,
  and a start that finds none creates it, so a retry finishes a
  replacement that failed.

Without a launch identity in the bundle the driver behaves as before.
The trust refresh of a running pair keeps its rename and restore.

Signed-off-by: Shiju <shiju@nvidia.com>
@shiju-nv
shiju-nv force-pushed the feat/6049-podman-provider-identity/shiju-nv branch from 7770130 to 8ee80ec Compare November 29, 2026 04:35
@shiju-nv shiju-nv changed the title feat(podman): support verified provider workload identity feat(podman): support provider workload identity Nov 29, 2026

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