Skip to content

Conversation

@mtrmac
Copy link
Contributor

@mtrmac mtrmac commented Nov 29, 2025

... instead of digests, making this comparison completely resistant to cryptographic hash function collisions.

This also means we don't ignore v2s1 signatures in the comparison; that is unlikely to matter (given decreasing support for v2s1), but only skipping the copy if the destination exactly matches the source, including that signature, is more correct.

(Note that we still return copySingleImageResult.manifestDigest; this PR does not change that part.)

Cc: @lsm5

... instead of digests, making this comparison completely
resistant to cryptographic hash function collisions.

This also means we don't ignore v2s1 signatures in the comparison;
that is unlikely to matter (given decreasing support for v2s1),
but only skipping the copy if the destination _exactly_ matches
the source, including that signature, is more correct.

(Note that we still return copySingleImageResult.manifestDigest;
this PR does not change that part.)

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@github-actions github-actions bot added the image Related to "image" package label Nov 29, 2025
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Nov 29, 2025
@podmanbot
Copy link

✅ A new PR has been created in buildah to vendor these changes: containers/buildah#6550

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

image Related to "image" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants