16 from Docker Hub Immutable Tags: The Image That Shipped Before It Was Signed
Sign before the names: a release is done when its digest is signed, not when its tags exist
By Vladimir Mikhalev Docker Captain · CNCF Ambassador · IBM Champion
An immutability rule and a signature guard the same promise from two sides: the rule keeps a name from moving, the signature says which build the name was made for. A workflow that pushes names first and signs second breaks that promise whenever anything fails in between.
The fix is an order, not a tag rule: build to a digest, sign it, find the signature on the registry, and only then let a name point at it.
- 1
List every tag every trigger emits, against the rule
Render the metadata action's tags for each event the workflow can receive and test each one against the repository's immutability rule, read back from Docker Hub rather than from memory. A tag a second trigger could emit for a commit a first trigger already published is a refusal waiting for a release day. Owner: platform engineer, with security signing off on the rule.
- 2
A release emits only tags nobody holds
Before it pushes, the release run asks Docker Hub whether each immutable tag already exists, and it drops the per-commit tag on release builds: the release is named by its version, and the commit is in the provenance.
- 3
Install the signer before anything is pushed
A signer that fails to install after the push leaves names on an image nobody signed. Install and check it first.
- 4
Push by digest, with no name
The build goes to the registry by digest only. A digest nobody has named is not a release yet, and one that is never signed stays nameless.
- 5
Sign and attest the digest, then find the signature on the registry
Sign keyless, under the run's own identity, and read the signature back from Docker Hub before going on. A reader verifies against the exact workflow file and ref and GitHub's issuer, because a pattern naming only the repository accepts any workflow in it.
- 6
Move the names last, in one command
Put every tag on the signed digest in one docker buildx imagetools create, with its prefer-index option off: left on, as it is by default, it wraps a single-platform manifest in a new index under a digest nobody signed. If signing failed, no tag moves and every tag stays on the last signed image.
- 7
Judge a publish by its signature, and say so when it is missing
After every publish, look for the signature tag beside the pushed digest: 200 is signed, 404 is not signed, anything else (a 429) is not checked, and both failures stop the run with different words. Cosign 2 stores the signature as that tag and cosign 3 as an OCI referrer, so the check changes when the pin does. A release whose image has no signature says it in the first line of its release page. Owner: SRE.
What shows it works
The runs and releases behind each step.
- The run of 26 September 2026: Docker Hub refuses the per-commit tag after the three version tags are out, and nothing is signed.
- The weekly run of 2 November 2026 and the kubectl run of 5 November 2026: the same order publishes unsigned images with no tag collision.
- Release v2.2.1: the note on the unsigned release, and the signed patch release.
- Release v2.3.2, 15 November 2026: cosign installed first, the build pushed by digest, signed, attested and read back from Docker Hub, the names moved last.
- The first publish from main on that order and the first scheduled os-shell run on it, 16 November 2026: the new digest sat unsigned with no name for about twenty seconds in one and about a minute in the other.
A release is judged by whether its signature appeared, never by whether its version did.
The long version is the post Docker Hub Immutable Tags. Docker, Immutable tags and docker buildx imagetools create; GitHub, the starter workflow for publishing a Docker image; Sigstore, Verifying signatures; all checked November 2026.