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

Add delegation #611

Merged
merged 10 commits into from
Feb 8, 2023
Merged

Add delegation #611

merged 10 commits into from
Feb 8, 2023

Conversation

kommendorkapten
Copy link
Member

@kommendorkapten kommendorkapten commented Feb 1, 2023

Summary

Fixes: #601

Some comments:
To simplify operation I made proof of possession as separate commands, as that typically happens less frequent, and with multiple keys in the delegate, it will be a pain to manage the command line options for it.

  • Add delegate
  • Verify proof of possession
  • Create the delegate targets file
  • Sign the delegate target file
  • Updates of the delegate target file (and targets)
  • Verify all e2e

Release Note

N/A

Documentation

TBD

Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

roughly looking good to me!

cmd/tuf/app/add-delegation.go Show resolved Hide resolved
cmd/tuf/app/add-delegation.go Show resolved Hide resolved
func KeyPOPSign() *ffcli.Command {
var (
flagset = flag.NewFlagSet("tuf key-pop-sign", flag.ExitOnError)
challenge = flagset.String("challenge", "", "the challenge to sign, for a delegate this is the delegate name")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes sense? It's the unique delegation rolename, which we want the signer to attest "posession" over.

as specified in the delegated role.

Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you like to move this out of draft and merge this first? I think we can split out the delegation target creation / signing to another PR

@kommendorkapten kommendorkapten marked this pull request as ready for review February 8, 2023 14:56
@kommendorkapten
Copy link
Member Author

@asraa it's done. I think It should be in a good case. And as you said, we can work on the outstanding things in a different PR.

Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

[delegations] Add delegation script to append a new delegation to a staged target file
2 participants