-
Notifications
You must be signed in to change notification settings - Fork 21
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
Verify required fields in Sigstore Bundle #317
Conversation
@@ -38,7 +36,16 @@ public class BundleFactory { | |||
public static String createBundle(KeylessSigningResult signingResult) { | |||
Bundle bundle = BundleFactoryInternal.createBundleBuilder(signingResult).build(); | |||
try { | |||
return JSON_PRINTER.print(bundle); | |||
String jsonBundle = BundleFactoryInternal.JSON_PRINTER.print(bundle); |
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 moved the static field to a different class so protobuf does not leak to the public API
Can we merge this and release |
oh hey sorry, I'm still on leave, but I have some time today to maybe get a bunch of things done in bulk. |
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.
lgtm mostly, lemme know what you think of the comments?
sigstore-java/src/main/java/dev/sigstore/bundle/BundleVerifierInternal.java
Show resolved
Hide resolved
sigstore-java/src/main/java/dev/sigstore/bundle/BundleVerifierInternal.java
Outdated
Show resolved
Hide resolved
sigstore-java/src/main/java/dev/sigstore/bundle/BundleVerifierInternal.java
Outdated
Show resolved
Hide resolved
Previously, message_signature.signature was missing, and there was no check to capture that. Signed-off-by: Vladimir Sitnikov <sitnikov.vladimir@gmail.com>
Summary
Previously, message_signature.signature was missing, and there was no check to capture that.
The key non-test code here is
setSignature(ByteString.copyFrom(signingResult.getSignature()))
inBundleFactoryInternal
.Release Note
NONE
Documentation
NONE