Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New digest algorithms: sha256+gunzip, sha256+unzstd #925

Closed
AkihiroSuda opened this issue Jun 8, 2022 · 1 comment
Closed

New digest algorithms: sha256+gunzip, sha256+unzstd #925

AkihiroSuda opened this issue Jun 8, 2022 · 1 comment

Comments

@AkihiroSuda
Copy link
Member

https://github.com/opencontainers/image-spec/blob/v1.0.2/descriptor.md#registered-algorithms

I suggest adding new algorithms sha256+gunzip and sha256+unzstd.
These algorithms compute the digest after uncompressing the blob.
The digests are stable regardless to the parameters of the compression algorithm (e.g., deflate block size) and should be useful for reproducible image building.

@jonjohnsonjr
Copy link
Contributor

X-ref: opencontainers/distribution-spec#235

IMO we should not add this as a new digest algorithm, but have manifests reference the uncompressed content and leave compression as an implementation detail of transport/storage.

@AkihiroSuda AkihiroSuda closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants