Repository navigation
fix: improve error for missing unsigned pkg deploy flag - #1560
Conversation
|
| return policy, err | ||
| } | ||
|
|
||
| return bundle.VerificationPolicy{}, errors.New("bundle signature verification is enabled but no public key or keyless verification policy is configured; configure one to verify this bundle, or if the bundle is unsigned, re-run with --skip-signature-verification") |
There was a problem hiding this comment.
I don't think this message is any more helpful that the one before.
If a bundle is unsigned you literally can't provide a keyless verification policy so the first line of the message is not helpful and very confusing (and the origination of this ticket).
If a bundle is unsigned the only way you can deploy it is with --skip-signature-verification. please rework this message to be more clear. We should detect if the bundle is unsigned and then display a message like the following:
| return bundle.VerificationPolicy{}, errors.New("bundle signature verification is enabled but no public key or keyless verification policy is configured; configure one to verify this bundle, or if the bundle is unsigned, re-run with --skip-signature-verification") | |
| return bundle.VerificationPolicy{}, errors.New("bundle is not signed, if you wish to deploy this unsigned bundle re-run with --skip-signature-verification") |
Description
When deploying an unsigned package, inform user that
--skip-signature-verificationmust be provided on the command line if absent. The corresponding issue is for Bundles Next only....
Related Issue
Fixes CLI-314
Type of change
Checklist before merging
How This Was Tested