-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify cosign verify-bundle example
* Remove unneeded env var * Use the README as the blob * Avoid running sigstore/cosign to verify: the sigstore-rs example should be enough
- Loading branch information
Showing
2 changed files
with
6 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,16 @@ | ||
This example shows how to verify a blob, using a bundle that was created by the | ||
`cosign sign-blob` command. | ||
|
||
### Create the artifact to be signed. | ||
```console | ||
cd examples/cosign/verify-bundle | ||
echo something > artifact.txt | ||
``` | ||
|
||
### Sign the artifact.txt file using cosign | ||
``` | ||
cosign sign-blob --bundle=artifact.bundle artifact.txt | ||
cd examples/cosign/verify-bundle | ||
cosign sign-blob --bundle=artifact.bundle README.md | ||
``` | ||
|
||
### Verify using sigstore-rs: | ||
```console | ||
cargo run --example verify-bundle -- \ | ||
--rekor-pub-key ~/.sigstore/root/targets/rekor.pub \ | ||
--bundle artifact.bundle \ | ||
artifact.txt | ||
README.md | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters