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

Implement TAP 4 (the map file) #430

Closed
wants to merge 272 commits into from
Closed

Implement TAP 4 (the map file) #430

wants to merge 272 commits into from

Conversation

vladimir-v-diaz
Copy link
Contributor

This is an implementation of TAP 4 (the map file). A MultiRepoUpdater class is added that reads map.json, determines which repository URL to use for a requested target file, and returns the updater object and targetinfo for the requested target file. The client is free to use the updater object to download the target file corresponding to the targetinfo. An example is provided below:

multi_repo_updater = tuf.client.updater.MultiRepoUpdater("path/to/map.json")
targetinfo, my_updater = multi_repo_updater.get_one_valid_targetinfo("foo.tgz")

# save the `foo.tgz` target file to "path/to/destination".
my_updater.download_target(targetinfo, "path/to/destination")

The client can also access the updater objects for each repository...

pypi_updater = multi_repo_updater.repository_names_to_updaters['pypi']
pypi_updater.download_target(...)

@awwad PIease have a look at this PR and let me know if it supports everything needed to create Uptane repositories. The repository tools behave as they currently do, but they now support the creation of multiple repositories within the same Python process.

vladimir-v-diaz and others added 24 commits October 11, 2017 11:27
Remove example metadata and link to /tests metadata from METADATA.md
Add ecdsa-sha2-nistp256 to specification
Move specification and delete obsolete directory
Our crypto library dropped multi-library support and no longer uses PyCrypto.
We use pyup.io to make sure all of our dependencies are up to date.
@coveralls
Copy link

coveralls commented Oct 13, 2017

Coverage Status

Coverage increased (+0.7%) to 98.595% when pulling 4126fc8 on tap4 into 40aaf93 on develop.

@vladimir-v-diaz
Copy link
Contributor Author

Closing this pull request in favor of #504.

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

Successfully merging this pull request may close these issues.