Skip to content

Commit 46e39e7

Browse files
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 2191f10 commit 46e39e7

6 files changed

Lines changed: 3857 additions & 520 deletions

File tree

‎crates/openshell-driver-docker/src/image_update.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,9 @@ impl DockerComputeDriver {
645645
.ok_or_else(|| invalid("Docker workload labels are missing"))?;
646646
labels.insert(OPERATION_LABEL.into(), p.operation_id.clone());
647647
labels.insert(REVISION_LABEL.into(), p.revision.to_string());
648+
// The source can predate this label. An empty value keeps the new
649+
// image's label off the workload.
650+
labels.insert(LABEL_PROVIDER_LAUNCH_SPIFFE_ID.into(), String::new());
648651
let container_name = source
649652
.name
650653
.as_deref()

0 commit comments

Comments
 (0)