Article · supply-chain / docker / release-verification
Which container did we verify before routing traffic?
A local Docker rehearsal for binding a signed image to a running instance, rejecting a 200 from the wrong container and rechecking rollback authorization.
One rehearsal case started two green containers from the same image. The second returned 200. The controller read the response, compared the full container IDs and reported WRONG_CONTAINER. The shared endpoint stayed connected to blue. A successful readiness response still needs to come from the instance that would receive traffic.
Release Gate examines that decision with a fictional service called parcel-note. The local Docker rehearsal recorded on 23 November 2026 UTC covered five scenarios and started 11 containers. The 78/78 regression result belongs to a separate development run. The observations here come from the recorded Docker rehearsal.
From signature to running instance
The decision begins with a full repository@sha256:… reference. The gate checks the OCI manifest and the content it points to. Sigstore verifies the manifest signature and the signed provenance statement against separate training keys. The operator policy then checks the approved digest, source commit, workflow and test environment. The approval is tied to the exact verified reference.
On the Docker side, the image manifest digest, config digest and full container ID are recorded separately. This Engine reported the manifest digest for both image inspect .Id and container inspect .Image. The controller compared the manifest target in the exported image archive, the digest of its config bytes and the running container's manifest descriptor. Ten image bindings were recorded across the five cases. In a separate case, a mismatch between the claimed image and the running instance blocked promotion with CONTAINER_IMAGE_MISMATCH.
When the candidate returns 503
The first synthetic record was written while the shared Unix HTTP endpoint pointed to blue. The second was written through the same endpoint while the green candidate was running. Both writes returned 201. In the healthy scenario, the candidate read both records from its own API. After promotion, the shared endpoint served the same records from green.
In the 503 case, the direct candidate check returned 503, while the previous instance and the shared endpoint returned 200. The current rollback policy approved blue again. The controller kept the same blue container selected. Both records returned 200 through its private API and the shared endpoint. The CLI labels the outcome rolled_back. In this rehearsal, the failed candidate never received the shared traffic.
When rollback approval is withdrawn
In the second 503 case, the blue digest was no longer authorized by the rollback policy in effect at the decision. Blue's signature verified, and the policy returned DIGEST_NOT_APPROVED. The controller left the active instance unset. The shared endpoint returned 503 and the CLI requested an operator decision.
The two synthetic records were readable through blue's private API in a separate data check. Whether the data was readable and whether the shared endpoint served traffic were distinct observations. The controller could record identity, health, data and authorization separately.
How to read the evidence
Each case recorded the candidate's readiness response, the decision reason, the active route and the command exit code. A 200 from the wrong instance and a manifest binding mismatch appear as two separate rejection reasons. After each run, an observer separately queried its containers, volume and load tags. No run-owned resources remained in any of the five observations.
The rehearsal ran on one Linux machine, on linux/amd64, with synthetic records. Blue and green used the same volume within each run. The observation is that those two records remained readable. Production traffic, Kubernetes, a live registry, backup restoration and host failure require separate evaluation. The pinned public test keys verify signatures on synthetic provenance statements.
In examples/phase3.jsonl, lines 157–204 show the candidate 503 and the retained blue instance, and lines 263–292 cover revoked rollback approval. Lines 361–410 cover the wrong instance and lines 470–518 cover the image mismatch.