Skip to content

Conversation

@lsm5
Copy link
Member

@lsm5 lsm5 commented Nov 23, 2025

validateBlobAgainstDigest verifies that the provided blob matches the exepcted digest. If expected digest itself is invalid or unusable, it rejects the blob. Callers don't need to pre-validate the expected digest.

This enables skopeo copy to work with sha512-digested images.

Creating separate PR per https://github.com/containers/container-libs/pull/475/files#r2551441932

`validateBlobAgainstDigest` verifies that the provided blob matches
the exepcted digest. If expected digest itself is invalid or unusable,
it rejects the blob. Callers don't need to pre-validate the expected
digest.

This enables `skopeo copy` to work with sha512-digested images.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
@github-actions github-actions bot added the image Related to "image" package label Nov 23, 2025
podmanbot pushed a commit to podmanbot/buildah that referenced this pull request Nov 23, 2025
@podmanbot
Copy link

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

@lsm5
Copy link
Member Author

lsm5 commented Nov 23, 2025

@mtrmac PTAL

Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mtrmac mtrmac merged commit 0984e11 into containers:main Nov 25, 2025
25 checks passed
@lsm5 lsm5 deleted the digest-redux-image branch November 25, 2025 13:53
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.

3 participants