-
Notifications
You must be signed in to change notification settings - Fork 84
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
Misleading error message when trust store is not configured #699
Comments
cc: @iamsamirzon |
@yizha1 - The above message needs changes. Error: the trust store '${truststore name}' of type ca/signingAuthority doesn't exist. Use command "notation cert add" to create and add trusted certificates to the trust store |
In our current design, we log errors that are triggered during the signature verification process. Each signature may cause a unique error due to its association with a different trust store. We lack a comprehensive check of all configurations before initiating signature verification, which means these errors are only logged when processing each individual signature. The challenge arises when dealing with multiple signatures. If a single signature causes an error, we can easily output that to the user. But what happens when multiple signatures trigger different trust store errors? How should we report these errors? Should we only output one error, or should we provide a detailed error report for each signature? We need to define our UX strategy for handling these scenarios. Also discussed with @yizha1 and @priteshbandi, we acknowledge that it might not be feasible to implement these improvements prior to version 1.0.0 due to the need for substantial refactoring. |
@shizhMSFT @sajayantony @iamsamirzon Any comments on #699 (comment)? It seems we cannot fix it by v1, since it requires refactoring work. We can add these scenarios to troubleshooting guide for v1 release, that users need to enable |
After reviewing the |
@priteshbandi @iamsamirzon @FeynmanZhou @shizhMSFT @JeyJeyGao Since we cannot solve this issue ultimately in v1. I suggest adding additional text
It should be a very simple fix, but it will help users to find the details of this error. Any comments? |
I think it's acceptable to remind users to use |
Well, I will say we can just document the "-v" reference in our quick start guide, Vs changing code. |
@iamsamirzon I created an issue to document the failure cases in troubleshooting guide. But it's a good point that in quick start, we can mention that users can use |
What is the areas you experience the issue in?
Notation CLI
What is not working as expected?
I didn't configure trust store and run
notation verify
command directly. The error message was too general and misleading, see the followingWith
-v
flag used, the detailed reason was shown.What did you expect to happen?
The proposed error messages could be
How can we reproduce it?
notation verify $image
commandDescribe your environment
Windows WSL2
What is the version of your Notation CLI or Notation Library?
Notation v1.0.0-rc.7
The text was updated successfully, but these errors were encountered: