-
Notifications
You must be signed in to change notification settings - Fork 43
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
application/jose+json is not supported #353
Comments
@phbelitz I'm trying to troubleshoot the issue, could you try adding a single line in your code under |
@Two-Hearts yes, awesome. I guess i should import the |
@phbelitz Yes, since we support two signature formats at the moment. You should also import COSE as well. |
What is not working as expected?
After integrating
notation-go
into a Kubernetes admission controller and trying to verify the imageghcr.io/deislabs/ratify/notary-image:signed
, verification fails withunable to parse the digital signature, error : signature envelope format with media type \"application/jose+json\" is not supported
.What did you expect to happen?
notation-go
should support signature formats it itself created and successfully validate the signature ofghcr.io/deislabs/ratify/notary-image:signed
.How can we reproduce it?
The image
ghcr.io/deislabs/ratify/notary-image:signed
was used and for verification the following certificate:Here a shortened version of the code I used (took away lots of the error handling and surrounding logic):
Describe your environment
Running inside a
distroless/base-debian11
container. The code was compiled to a binary using Go 1.19. The container itself is running inside a Kubernetes cluster as an admission controller.What is the version of your notation-go Library?
github.com/notaryproject/notation-go v1.0.0
The text was updated successfully, but these errors were encountered: