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

tuftool: Warn before downloading root.json #421

Merged
merged 2 commits into from
Oct 16, 2019
Merged

tuftool: Warn before downloading root.json #421

merged 2 commits into from
Oct 16, 2019

Conversation

sam-aws
Copy link
Contributor

@sam-aws sam-aws commented Oct 16, 2019

Issue #, if available:
Fixes #353

Description of changes:
Make the user acknowledge a warning before downloading a root.json file.

Signed-off-by: Samuel Mendoza-Jonas [email protected]

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@tjkirch
Copy link
Contributor

tjkirch commented Oct 16, 2019

When does this happen? The user has to pass some horrible-sounding flag to allow downloading root without being able to verify it, right?

@sam-aws
Copy link
Contributor Author

sam-aws commented Oct 16, 2019

When does this happen? The user has to pass some horrible-sounding flag to allow downloading root without being able to verify it, right?

This happens if calling tuftool download without providing a root.json, no horrifying flags required.

If the user doesn't provide a root.json require the
--allow-root-download flag before downloading a remote root.json, and
follow it up with a big warning.

Fixes #353

Signed-off-by: Samuel Mendoza-Jonas <[email protected]>
@sam-aws
Copy link
Contributor Author

sam-aws commented Oct 16, 2019

Updated to loudly warn the user instead and require a flag to be set.

workspaces/tuftool/src/download.rs Outdated Show resolved Hide resolved
workspaces/tuftool/src/download.rs Outdated Show resolved Hide resolved
workspaces/tuftool/src/download.rs Outdated Show resolved Hide resolved
Use AsRef<Path> for root_warning()

Co-Authored-By: Tom Kirchner <[email protected]>
@sam-aws sam-aws merged commit df4267c into develop Oct 16, 2019
@sam-aws sam-aws deleted the tuftool branch October 16, 2019 23:39
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.

tuftool download: Make use of root.json more clear
3 participants