-
Notifications
You must be signed in to change notification settings - Fork 110
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
feat: add payload
and add-signature
commands.
#214
Conversation
Pull Request Test Coverage Report for Build 2049224869
💛 - Coveralls |
6e19e18
to
b15910d
Compare
ping @asraa (not to nag/rush, just want to make sure it's on your radar) |
Oh also CC @haydentherapper |
Let's try to review/merge/close this soon. What are we blocking on? |
I've pushed a couple commits to fix the issues mentioned; of note, I add a |
07df8d8
to
3cde0d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd also suggest updating the list of commands in the README.md file by adding their descriptions along with examples of how to use them 👍
Great idea. I've added them to the "Commands" section, along with an example of using these commands together in the "Examples" section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor comments!
No substantial changes but looks like I need a re-review, @asraa Otherwise I think this is good to go except I need one more approval from a maintainer—@trishankatdatadog any chance you could give a quick review? |
Sorry, no time 😕 Could someone else from DD take over (@ethan-lowman-dd @hosseinsia)? |
620ea67
Need quick re-reviews again |
@cedricvanrompay-datadog would you pls mind reviewing? On that note, I think it's worth nominating @znewman01 and @cedricvanrompay-datadog as additional maintainers. What do the @theupdateframework/go-tuf-maintainers think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the test that Payload
is canonicalized!
Def +1 to Zack, solid reviews, issue filing, and PRs. |
Specifically, they expect a metadata file name, *not* a role name. Added a test for each.
This completes the offline flow: ```shell tuf payload root.json > /tmp/root.json.payload tuf sign-payload --role=root /tmp/root.json.payload > /tmp/root.json.sigs tuf add-signatures --signatures /tmp/root.json.sigs root.json ``` Additional changes: - rename `add-signature` to `add-signatures` - `add-signatures` expects JSON (from `sign-payload`) rather than hex bytes
- move CLI commands to matching file names - add examples to README.md - more details for `repo.SignPayload` docs
I had to rebase on top of the delegations changes, so need new review. Very little difference from before. |
@cedricvanrompay-datadog it won't let me re-request a review for you for some reason so tagging you in manually |
Gentle ping @cedricvanrompay-datadog @asraa |
Fixes #205.