-
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
docs: invalid signing time fail to sign prompt improvement #829
Comments
Hi @fanndu , Thanks for the suggestion. You proposal sounds reasonable to me. It makes signers understand the validity of the certificate immediately when failed to sign images with an expired certificate. Alternatively, signers can get the validity of a certificate by using /cc @notaryproject/notaryproject-notation-maintainers for inputs. |
Thanks @fanndu As a side note, besides the error message for certificate expiry, we need to verify the signature expiry error message to make sure it is clear for users. |
Hi @FeynmanZhou, Because of use default certificate, so user could't know which store type and store name, especilly when there are so many certs, as follow: And there is no cli command to show which cert is default. So i think we should show more cert info here and add new cli to show default cert info. Signing key is define in /Users/xxx/Library/Application Support/notation/signingkeys.json. It's hard for beginners to find it. |
@yizha1 I'm working on a PR to fix this. |
Thanks @fanndu, I will assign this issue to you. /cc @FeynmanZhou @shizhMSFT |
Is your feature request related to a problem?
When the signing time is not within the validity period of the certificate, the signing failure message does not have a certificate expiration date, and the user needs to run other commands to check the validity period of the certificate, which is not a good experience.
./bin/notation sign localhost:5000/gateway@sha256:b992672d71a62c0a94cd8640f7c0db62ffb9de65317100742bf44892b179445f Error: certificate-chain is invalid, certificate with subject "CN=test,O=Notary,L=Seattle,ST=WA,C=US" was not valid at signing time of 2023-11-12 08:34:48 +0000 UTC
What solution do you propose?
It is a good experience to show the certificate validity period in the prompt.
./bin/notation sign localhost:5000/gateway@sha256:b992672d71a62c0a94cd8640f7c0db62ffb9de65317100742bf44892b179445f Error: certificate-chain is invalid, certificate with subject "CN=test,O=Notary,L=Seattle,ST=WA,C=US" was invalid at signing time of 2023-11-12 08:33:33 +0000 UTC. Valid from [2023-10-25 02:40:40 +0000 UTC] to [2023-10-26 02:40:40 +0000 UTC]
What alternatives have you considered?
N/A
Any additional context?
No response
The text was updated successfully, but these errors were encountered: