-
Notifications
You must be signed in to change notification settings - Fork 86
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
Adding verify blob commands #889
Conversation
Signed-off-by: Rishab Semlani <[email protected]>
Signed-off-by: Rishab Semlani <[email protected]>
Signed-off-by: Rishab Semlani <[email protected]>
Signed-off-by: Rishab Semlani <[email protected]>
Long: longMessage, | ||
Args: func(cmd *cobra.Command, args []string) error { | ||
if len(args) == 0 { | ||
return errors.New("missing signature/blob path to the artifact: use `notation blob verify --help` to see what parameters are required") |
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.
return errors.New("missing signature/blob path to the artifact: use `notation blob verify --help` to see what parameters are required") | |
return errors.New("missing signature/blob path to the artifact: use `notation blob verify --help` to see what parameters are required") |
return errors.New("missing signature/blob path to the artifact: use `notation blob verify --help` to see what parameters are required") | |
return errors.New("missing blob path: use `notation blob verify --help` to see what parameters are required") |
opts.signaturePath = args[0] | ||
opts.blobPath = args[0] |
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.
why are we adding blob path to signature path ?
if opts.maxSignatureAttempts <= 0 { | ||
return fmt.Errorf("max-signatures value %d must be a positive number", opts.maxSignatureAttempts) | ||
} |
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.
Do we need this?
return runVerify(cmd, opts) | ||
}, | ||
} | ||
command.Flags().StringArrayVar(&opts.pluginConfig, "plugin-config", nil, "{key}={value} pairs that are passed as it is to a plugin, if the verification is associated with a verification plugin, refer plugin documentation to set appropriate values") |
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.
are we missing opts.LoggingFlagOpts.ApplyFlags(command.Flags())
?
also one for signature path and policy name?
} | ||
command.Flags().StringArrayVar(&opts.pluginConfig, "plugin-config", nil, "{key}={value} pairs that are passed as it is to a plugin, if the verification is associated with a verification plugin, refer plugin documentation to set appropriate values") | ||
cmd.SetPflagUserMetadata(command.Flags(), &opts.userMetadata, cmd.PflagUserMetadataVerifyUsage) | ||
command.Flags().IntVar(&opts.maxSignatureAttempts, "max-signatures", 100, "maximum number of signatures to evaluate or examine") |
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.
Do we need this?
This PR is stale because it has been opened for 45 days with no activity. Remove stale label or comment. Otherwise, it will be closed in 30 days. |
PR closed due to no activity in the past 30 days. |
Adding verify blob commands.
Spec Pr used for ref: #811