-
Notifications
You must be signed in to change notification settings - Fork 199
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
Precisely determine the ID of a pulled image #2209
Conversation
83708b1
to
9f5c6e5
Compare
9f5c6e5
to
da3fcb8
Compare
> go mod edit -replace github.com/containers/common=github.com/mtrmac/common@precise-pull-id Signed-off-by: Miloslav Trmač <[email protected]>
da3fcb8
to
cdf35b8
Compare
> go mod edit -replace github.com/containers/common=github.com/mtrmac/common@precise-pull-id Signed-off-by: Miloslav Trmač <[email protected]>
This was manually tested using containers/podman#24447 (comment) , and a Podman test is running in containers/podman#24462 . Please review. Cc: @Luap99 |
Signed-off-by: Miloslav Trmač <[email protected]>
Signed-off-by: Miloslav Trmač <[email protected]>
cdf35b8
to
3291fed
Compare
The c/image PR has been merged, this is ready for review. |
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love it!
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mtrmac, vrothberg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Does this fix the zstd:chunked id changing problem? |
No |
This depends on unmerged containers/image#2609 and #2202 .Instead of computing the manifest digest of the pulled image and looking up an image by digest (which can have several matches with different contents when under attack), obtain the exact image ID directly, using a new c/image API.
Absolutely untested at this point.