Skip to content

chore: enable OCI artifact type for attestation manifests#437

Open
gbartolini wants to merge 1 commit intomainfrom
dev/436
Open

chore: enable OCI artifact type for attestation manifests#437
gbartolini wants to merge 1 commit intomainfrom
dev/436

Conversation

@gbartolini
Copy link
Copy Markdown
Contributor

BuildKit's default image exporter does not set artifactType or the OCI 1.1 Referrers subject backlink on attestation manifests. Setting oci-artifact=true on the image exporter adds both, so SBOM and provenance attestations become discoverable through the OCI Referrers API.

oci-mediatypes=true is redundant (BuildKit already defaults it to true when pushing to a registry, which is why the top-level index is already application/vnd.oci.image.index.v1+json) but kept for clarity.

Same fix as cloudnative-pg/cloudnative-pg#10601, mirroring cloudnative-pg/postgres-extensions-containers#198.

Closes #436

BuildKit's default image exporter does not set `artifactType` or the OCI
1.1 Referrers `subject` backlink on attestation manifests. Setting
`oci-artifact=true` on the image exporter adds both, so SBOM and
provenance attestations become discoverable through the OCI Referrers API.

`oci-mediatypes=true` is redundant (BuildKit already defaults it to true
when pushing to a registry, which is why the top-level index is already
`application/vnd.oci.image.index.v1+json`) but kept for clarity.

Same fix as cloudnative-pg/cloudnative-pg#10601, mirroring
cloudnative-pg/postgres-extensions-containers#198.

Closes #436

Signed-off-by: Gabriele Bartolini <gabriele.bartolini@enterprisedb.com>
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker-bake.hcl: emit attestation manifests as OCI artifacts (set oci-artifact=true)

1 participant