-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When applying a chunked layer with a tar-split, compute its uncompres…
…sed digest This will allow c/image to validate the uncompressed digest against the config's RootFS.DiffID value (ensuring that the layer's contents are the same when pulled via TOC and traditionally); and the uncompressed digest will be used as a layer ID, ensuring users see the traditional layer and image IDs they are used to. This doesn't work for layers without a tar-split (all estargz, and old zstd:chunked layers); for those, we fall back to traditional pulls. Alternatively, for EXTREMELY restricted use cases, add an "insecure_allow_unpredictable_image_contents" option to storage.conf. This option allows partial pulls of estargz and old zstd:chunked layers, and skips the costly uncompressed digest computation. It is then up to the user to worry about images where the tar representaiton and the TOC representation don't match, and about unpredictable image IDs. Signed-off-by: Miloslav Trmač <[email protected]>
- Loading branch information
Showing
4 changed files
with
133 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters