-
Notifications
You must be signed in to change notification settings - Fork 55
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
Examples: Add a minimal example of bundle sign/verify #410
Conversation
examples/bundle/main.rs
Outdated
println!( | ||
"Created signature bundle {} with identity {}", | ||
&bundle_path, email |
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'd love to print something that would contain the correct verification command:
Signed README.md. To verify use
$ cargo run --example bundle verify --identity name@example.com --issuer https://github.com/login/oauth README.md
But that's not currently possible since the issuer does not seem to be exposed (#409).
This uses * sigstore::bundle to sign and verify * sigstore::oauth to get a signing token Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
Don't use display() when creating a new path, instead use PathBuf.set_file_name() Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
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.
Thanks!
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.
thanks!
Summary
Add example of
sigstore::bundle
use to make it more visible that sigstore-rs does make it easy to use the new bundle format (as well as to automatically update the trust root). More specifically the example usesFixes #406
Release Note
sigstore::bundle
use-->
Documentation
See included README.md and
--help
output