-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Offline Rekor bundle generation and verification (#247)
* _cli: flag scaffolding for offline rekor verification Signed-off-by: William Woodruff <[email protected]> * _cli: more scaffolding Signed-off-by: William Woodruff <[email protected]> * sigstore: refactor RekorEntry/SET verification for offline bundles Signed-off-by: William Woodruff <[email protected]> * _cli: add envvar defaults for new flags Signed-off-by: William Woodruff <[email protected]> * README: update `sigstore verify --help` Signed-off-by: William Woodruff <[email protected]> * _cli: handle `verify --offline` correctly Signed-off-by: William Woodruff <[email protected]> * rekor/client: fix docstring The returned value here is not base64-encoded. Signed-off-by: William Woodruff <[email protected]> * _cli: Add `rekor` suffix to offline bundle flags/options Signed-off-by: William Woodruff <[email protected]> * README: update `sigstore verify` Signed-off-by: William Woodruff <[email protected]> * _verify: elaborate on the properties of a non-inclusion-proof verification Signed-off-by: William Woodruff <[email protected]> * _verify: fix comment typos, reflow comments Signed-off-by: William Woodruff <[email protected]> * Apply suggestions from code review Co-authored-by: Dustin Ingram <[email protected]> Signed-off-by: William Woodruff <[email protected]> * _cli: lint Signed-off-by: William Woodruff <[email protected]> * rekor/client: fix capitalization on Payload key Signed-off-by: William Woodruff <[email protected]> * rekor/client: fix keys Signed-off-by: William Woodruff <[email protected]> * _cli: --rekor-bundle implies --rekor-offline In other words: if a user explicitly passes a bundle filename, we never fall back on online verification. Signed-off-by: William Woodruff <[email protected]> * sigstore, test: create and use a separate RekorBundle model This makes validation a little simpler. Signed-off-by: William Woodruff <[email protected]> * sigstore, test: add offline bundle generation Signed-off-by: William Woodruff <[email protected]> * sigstore: blacken Signed-off-by: William Woodruff <[email protected]> * test: add an offline rekor test Signed-off-by: William Woodruff <[email protected]> * _cli: tweak `--rekor-offline` language slightly To emphasize that the absence of `--rekor-offline` does not always imply fully online verification. Signed-off-by: William Woodruff <[email protected]> * README: update `--help` blocks Signed-off-by: William Woodruff <[email protected]> * test: unused import Signed-off-by: William Woodruff <[email protected]> * sigstore: test Rekor entry's consistency against signing artifacts Signed-off-by: William Woodruff <[email protected]> * conftest: strip trailing whitespace from cert and sig Trailing whitespace from the signature was breaking the Rekor consistency check. Signed-off-by: William Woodruff <[email protected]> * treewide: use .rekor for offline rekor bundle files Signed-off-by: William Woodruff <[email protected]> * _verify: lint fixes Signed-off-by: William Woodruff <[email protected]> * _verify: more lint fixes Signed-off-by: William Woodruff <[email protected]> * README, _cli: `--rekor-offline` -> `--require-rekor-offline` Signed-off-by: William Woodruff <[email protected]> * Apply suggestions from code review Co-authored-by: Hayden B <[email protected]> Signed-off-by: William Woodruff <[email protected]> * _verify: clarify comments, add a long comment explaining process Signed-off-by: William Woodruff <[email protected]> * _verify: blacken Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]> Signed-off-by: William Woodruff <[email protected]> Co-authored-by: Dustin Ingram <[email protected]> Co-authored-by: Hayden B <[email protected]>
- Loading branch information
1 parent
230d9dc
commit 1730a99
Showing
15 changed files
with
471 additions
and
86 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
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
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
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
Oops, something went wrong.