-
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
Payload Mediatype and certificate thumbprint annotation constants are not exported for API consumers #398
Comments
That's a good idea. |
I'm working on set of tools that can sign and verify signed custom oci objects (among other things). We're using notation as a library for one of the signature formats. Despite performing sign/verify through the API, we want to maintain compatibility with the Notation CLI for performing those functions, and thus wish to stick close to the spec. The constants referred to here are marked as MUST items, so we'd rather not redefine them in our code. |
This issue requires a revisit since general developers should not re-invent the wheel for signing and verification. @c-grund I can understand that you need |
@c-grund May I know if this issue is still critical for your scenario? |
Sorry for the delay in response. I've moved on to a new project, but when I last worked with this scenario, I believe we got away from needing to use |
It is no longer an issue for the user. If there is more ask from the customers or users in future for the similar feature, then we will open a new issue and discuss. Closing the issue as per the discussion on 11/11 |
What is not working as expected?
The constants defined in
internal/envelope/envelope.go
are not exported, and therefore not available for consumers of the sign and verify API. Since these are required values per the specification, programs that wish to work with notation signatures must duplicate these constants.
What did you expect to happen?
These constants should be available through a public
notation-go
ornotation-core-go
exportHow can we reproduce it?
Attempt to access these required constant values from external code.
Describe your environment
Linux/Go 1.22
What is the version of your notation-go Library?
notation-go v1.1.0
notation-core-go v1.0.2
The text was updated successfully, but these errors were encountered: