fix: disable provenance attestations to remove unknown/unknown manife… - #2554
Open
clun wants to merge 3 commits into
Open
fix: disable provenance attestations to remove unknown/unknown manife…#2554clun wants to merge 3 commits into
clun wants to merge 3 commits into
Conversation
…sts from image index
Contributor
Unit Test Coverage Report
|
clun
requested review from
Hazel-Datastax,
amorton and
erichare
and removed request for
a team
August 19, 2026 13:12
erichare
reviewed
Aug 19, 2026
erichare
left a comment
Contributor
There was a problem hiding this comment.
@clun I might be wrong, but im not sure provenance is a parameter of the setup-buildx-action... https://github.com/docker/setup-buildx-action/blob/v4/action.yml i dont see it here. That in mind, i'm wondering if we need to instead put on the build / push steps:
env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1
See: https://docs.docker.com/build/metadata/attestations/ . let me know if you agree and happy to push changes to your PR if so
Contributor
➡️ Unit Test Coverage Delta vs Main Branch
|
Contributor
➡️ Integration Test Coverage Delta vs Main Branch (dse69-it)
|
Contributor
Integration Test Coverage Report (dse69-it)
|
Contributor
➡️ Integration Test Coverage Delta vs Main Branch (hcd-it)
|
Contributor
Integration Test Coverage Report (hcd-it)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When inspecting
stargateio/data-api:v1.0.49(and earlier releases) on Docker Hub, the image index contains four manifests instead of the expected two:linux/amd64linux/arm64unknown/unknownunknown/unknownThe two spurious
unknown/unknownentries are provenance attestation manifests automatically generated by Docker BuildKit. This causes problems for tooling and runtimes that iterate over the manifest list and do not expect non-platform entries.The same issue was previously observed and fixed in the Reaper image by disabling provenance and SBOM attestations at build time (
provenance: false,sbom: false).Root cause
docker/setup-buildx-actionenables BuildKit by default. Starting with BuildKit 0.11, multi-platform builds automatically attach two OCI artefacts to the image index:unknown/unknownwithmediaType: application/vnd.in-toto+jsonunknown/unknownNeither is requested explicitly in our workflows; they are injected by the BuildKit daemon unless explicitly suppressed.
Fix
Add
provenance: falseto everydocker/setup-buildx-actionstep. This tells BuildKit not to generate or attach attestation manifests, leaving the image index with only the intended platform-specific entries.Three steps were updated:
.github/workflows/release.yaml—publish-image-dockerhubjob.github/workflows/release.yaml—publish-image-ecrjob.github/workflows/docker-image-publish.yaml—mainjobVerification
After merging, inspect the next published image with:
The manifest list should contain exactly two entries:
linux/amd64andlinux/arm64.