keys: Add "fioctl keys tuf download-roots" command#541
Merged
Conversation
Member
Author
|
This is being added to help with: foundriesio/update-server#199 |
vkhoroz
approved these changes
Jul 12, 2026
vkhoroz
reviewed
Jul 12, 2026
| root, err = getRoot(factory, ver) | ||
| if err != nil { | ||
| if herr := client.AsHttpError(err); herr != nil && herr.Response.StatusCode == 404 { | ||
| break |
Member
There was a problem hiding this comment.
Maybe, write some success message at the end?
Member
Author
There was a problem hiding this comment.
Its currently outputting
$ fioctl keys tuf download-roots --prod /tmp/roots.tgz
= Adding 1.root.json
= Adding 2.root.json
= Adding 3.root.json
= Adding 4.root.json
= Adding 5.root.json
= Adding 6.root.json
= Adding 7.root.json
= Adding 8.root.json
= Adding 9.root.json
We generally (we aren't totally consistent) don't print a "success" message at the end of a command.
Downloads all versions of a Factory's TUF root.json files (CI or, with --prod, production) into a single gzip'd tarball, incrementing the version until the server returns a 404. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Signed-off-by: Andy Doan <andy@foundries.io>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Downloads all versions of a Factory's TUF root.json files (CI or, with --prod, production) into a single gzip'd tarball, incrementing the version until the server returns a 404.