-
Notifications
You must be signed in to change notification settings - Fork 11
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 verification for CNAB bundles #17
Conversation
Signed-off-by: Radu M <[email protected]>
Signed-off-by: Radu M <[email protected]>
cmd/sign.go
Outdated
return trust.SignAndPublish(trustDir, trustServer, s.gun, s.file, tlscacert, s.rootKey) | ||
switch s.artifactType { | ||
case "plaintext": | ||
_, err := trust.SignAndPublish(trustDir, trustServer, s.gun, s.file, tlscacert, s.rootKey) |
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.
Maybe display the digest for plain text files as well?
return err | ||
} | ||
|
||
resolver := createResolver(nil) |
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.
Handle options for pushing an pulling to the registry.
|
||
relocationMap, err := remotes.FixupBundle(context.Background(), &b, n, resolver, remotes.WithEventCallback(displayEvent), | ||
remotes.WithInvocationImagePlatforms(nil), | ||
remotes.WithComponentImagePlatforms(nil)) |
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.
Handle options for pushing an pulling to the registry.
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.
Opened #18
@@ -51,30 +51,31 @@ func SignAndPublish(trustDir, trustServer, ref, file, tlscacert, rootKey string) | |||
case client.ErrRepoNotInitialized, client.ErrRepositoryNotExist: | |||
rootKeyIDs, err := importRootKey(rootKey, repo, getPassphraseRetriever()) |
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.
Ensure existing root keys are passed correctly.
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.
Opened #19
Signed-off-by: Radu M <[email protected]>
closes #14