Repository navigation
Commit b59f687
committed
feat(docker): support verified provider workload identity
Let the Docker driver start supervisors that a Workload API issuer can
bind to one sandbox launch, and make those starts replayable.
- The driver labels the supervisor container with the launch SPIFFE ID
and projects the configured Workload API socket into it. The workload
container never carries a launch ID, including through an image label.
The driver advertises provider workload identity and ordered provider
start when the socket is configured and the supervisor image supports
the mode.
- StartSandbox and StopSandbox run under the launch journal. A replay
inspects the engine for the exact workload and labeled supervisor and
never starts a second process for an accepted launch ID.
- A failed start is final only when Docker answered and the workload
stop and the supervisor removal are confirmed. A replay retires an
interrupted or never-healthy launch by container ID and records the
failure. An outcome Docker cannot confirm stays unknown and blocks
replacement.
- A verified create reports ready only after the supervisor is healthy.
- When a verified supervisor is lost, the driver stops the workload under
the launch lock and records the containment.
- Admitted launch work drains before the driver exits, in the managed
and the standalone binary.
Without the gateway's explicit selection the driver keeps its current
behavior, except that every new workload carries the launch label with
an empty value.
Signed-off-by: Shiju <shiju@nvidia.com>1 parent cdb376e commit b59f687
6 files changed
Lines changed: 3857 additions & 520 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
648 | 651 | | |
649 | 652 | | |
650 | 653 | | |
| |||
0 commit comments