-
Notifications
You must be signed in to change notification settings - Fork 42
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 and inconsistent logs #416
Comments
@yizha1 can you move the issue to notation-go as the confusing log is generated by |
Should be a quick fix, on my list. |
It's |
This is a tricky one, firstly, this log only appears under signing scheme |
What is not working as expected?
The type of trust store is
ca
. When signature verification failed, the following logs were shown:DEBU[xxx] Validating cert chain
DEBU[xxx] Validating trust identity
DEBU[xxx] Validating expiry
DEBU[xxx] Validating authentic timestamp
DEBU[xxx] Validating revocation
DEBU[xxx] not using authentic signing time due to error retrieving AuthenticSigningTime, err: authenticSigningTime not found
DEBU[xxx] no verification impacting errors encountered while checking revocation, status is OK
INFO[xxx] payload.TargetArtifact in signature: {MediaType:application/vnd.docker.distribution.manifest.v2+json Digest:sha256:xxx Size:xxx URLs:[] Annotations:map[] Data:[] Platform: ArtifactType:}
INFO[xxx] Target artifact that want to be verified: {MediaType:application/vnd.docker.distribution.manifest.v2+json Digest:sha256:xxx Size:xxx URLs:[] Annotations:map[] Data:[] Platform: ArtifactType:}
WARN[xxx] Signature sha256:xxx failed verification with error: content descriptor mismatch
There are several problems:
WARN[***] Signature sha256:*** failed verification with error: content descriptor mismatch.
However, it is both a “WARN” and an “ERROR” (from the details). Why use “WARN” instead of “ERROR”?
DEBU[***] not using authentic signing time due to error retrieving AuthenticSigningTime, err: authenticSigningTime not found
Although it starts with “DEBU,” it discusses an issue related to “AuthenticSigningTime,” which is not actually the problem for the failure. And this log appears for any successful verification as well.
DEBU[xxx] not using authentic signing time due to error retrieving AuthenticSigningTime, err: authenticSigningTime not found
DEBU[xxx] no verification impacting errors encountered while checking revocation, status is OK
INFO[xxx] payload.TargetArtifact in signature: {MediaType:application/vnd.docker.distribution.manifest.v2+json Digest:sha256:xxx Size:xxx URLs:[] Annotations:map[] Data:[] Platform:<nil> ArtifactType:}
What did you expect to happen?
Here are my suggestions for the three problems
ERRO
. The error messagecontent descriptor mismatch
can be improved as well, but it is not the main purpose of this issue, it can be done with error message improvements.How can we reproduce it?
For the 1st problem, use
oras fetch
command to fetch a signature blob from one signed image, and then useoras attach
to attach it to a different unsigned image.For the 2nd and 3rd problems, use
notation verify
to verify any signed images, no matter if it is successful or failure.Describe your environment
Linux OS
What is the version of your Notation CLI or Notation Library?
notation v1.1.1
The text was updated successfully, but these errors were encountered: