--output type=oci
should set mediaType
in the generated index.json
#4595
Labels
--output type=oci
should set mediaType
in the generated index.json
#4595
One of the OCI spec changes from CVE-2021-41190 was that
mediaType
inside anapplication/vnd.oci.image.index.v1+json
is strongly recommended (ideally it'd be "MUST" but backwards compatibility in the spec required it be less strict; opencontainers/image-spec#933). It's a small thing, but it seems that the OCI tarball output from BuildKit does not set this value at all insideindex.json
, as seen in the reproducer below. 😄Simple reproducer:
echo 'FROM hello-world' | docker buildx build --builder foo --pull --output type=oci - | tar --extract --to-stdout index.json | jq
Current output is something like:
(on
buildx
version 0.12.0 and buildkit 2d608c3)The text was updated successfully, but these errors were encountered: