Make dangerzone-image prepare-archive work with new buildkit versions - #1534
Make dangerzone-image prepare-archive work with new buildkit versions#1534almet wants to merge 1 commit into
dangerzone-image prepare-archive work with new buildkit versions#1534Conversation
Accept OCI image indexes as multi-arch container images In addition to Docker manifest lists. BuildKit 0.31.0 and later pushes OCI image indexes by default, which made `dangerzone-image prepare-archive` fail with `InvalidMutliArchImage` against newly published images.
|
Other than |
|
They're not affected, this only affects the "prepare-archive" codepath |
|
Look at the code, that's also the only code path I see directly into But def get_manifest(image_str: str) -> requests.Response:
"""Get manifest information for a specific tag"""
image = parse_image_location(image_str)
if image.digest:
manifest_url = f"{_url(image)}/manifests/{image.digest}"
else:
manifest_url = f"{_url(image)}/manifests/{image.tag}"
headers = {
"Accept": ACCEPT_MANIFESTS_HEADER,
}
headers.update(_get_auth_header(image))
...But I'm not sure which comment this is ultimately called in. |
|
@apyrgio for now the plan is to release with a buildkit version that regenerated the old headers, so I don't think we're run the risk download failures in this next release, but we should definitely have this in the release test plan (just as a sanity-check). |
Don't worry :-) The client provides the I validated that in practice, upgrading Dangerzone to images built with BuildKit v0.31.0 (using the new OCI Media Type, by changing We decided to pin images to BuildKit 0.30.0 for now, until we have a way to prepare images with at least one version of DZ (that will be 0.11.1). |
|
OK. Great. Thanks for the due diligence! |
Accept OCI image indexes as multi-arch container images In addition to Docker manifest lists.
BuildKit 0.31.0 and later pushes OCI image indexes by default, which made
dangerzone-image prepare-archivefail withInvalidMutliArchImageagainst newly published images.