-
Notifications
You must be signed in to change notification settings - Fork 58
sign and verify with Rekorv2 #1414
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
Conversation
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
Signed-off-by: Ramon Petgrave <ramon.petgrave64@gmail.com>
I'm combing through this PR now: I think instead of working on top of this I will take specific commits (at least rekov2-client...jku:sigstore-python:sign-with-rekorv2 is the working branch |
public_key=v2.PublicKey( | ||
raw_bytes=bundle.signing_certificate.public_key().public_bytes( | ||
encoding=serialization.Encoding.DER, | ||
format=serialization.PublicFormat.SubjectPublicKeyInfo, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks strange to me: if the bundle contains a signing certificate, we should expect the signature to contain that (and not just the public key of the certificate), right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've used the certificate in my PR, I think it looks ok
I think I have an updated version in #1432 -- @ramonpetgrave64 there might still be something we want here, but I'm going to close this one for clarity for now. |
Client support for Rekor V2: sigstore-python #289
Summary
This PR, in favor of #1387
Pending #1400
Enables signing and verifying with Rekorv2 via a trust-config.
Testing
Unit tests should pass, but are currently using somewhat hacky method of paramaterizing fixtures to use either staging or the embedded tust_config.
TODO:
Release Note
Documentation