-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add functionality for downloading and verifying OSDF artifacts from caches with MD5 hash validation - Add optional argument `--cache` for specifying the OSDF cache path. - Implement `download_and_verify_file` function to download a file, write it to disk, and verify its MD5 hash. - Identify Hash recorded in MLMD file. - If Calculated hash and recorded hash match, cmf artifact pull is successfull - If Cache is not specified or hashes don't match, pull from origin and assume it is correct * Updated documentation - Added --cache as optional argument in `cmf_client.md` - If cache or redirector URL is not specified, cmf will fetch pulls from the origin recorded in the MLMD file * Improved handling of user submitted OSDF cache URL - Parse user supplied cache to its schema+netloc only. Skip the path - Assumption is that the path from MLMD will be more accurate - cached_url is the netlocation of the supplied cache and path from the MLMD records
- Loading branch information
1 parent
239dc51
commit bf9c559
Showing
6 changed files
with
163 additions
and
38 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
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