Content descriptor with optional embedded data
field breaks manifest decoding
#4340
Labels
data
field breaks manifest decoding
#4340
Environment:
Description of the issue:
When an embedded
data
is present in the base image manifest's config JSON, Jib fails as it doesn't expect the field.This is an issue with the latest Debian base images, which we use at work to build custom JVM images.
But I assume this will eventually trickle down to Debian based images for several popular JDK such as Adopt, Zulu and so on.
Example of this in the recent
bookworm-slim
images:Expected behavior:
data
field is optional and should be decoded as such.It's been part of the OCI spec for content descriptors since 2021:
Kaniko and other tools using
go-containerregistry
handle it properly:Steps to reproduce:
jib-maven-plugin
Configuration:Log output:
Additional Information:
Obviously even if it succeeded, the plain Debian slim image doesn't include any JVM. This is for reproducibility illustration only.
The text was updated successfully, but these errors were encountered: