Skip to content

Commit 0a46567

Browse files
committed
Sign exclusively via sigstore-go for sign-blob
Signed-off-by: Aaron Lew <64337293+aaronlew02@users.noreply.github.com>
1 parent 934afc4 commit 0a46567

16 files changed

+254
-166
lines changed

cmd/cosign/cli/options/key.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type KeyOpts struct {
2727
KeyRef string
2828
FulcioURL string
2929
RekorURL string
30+
RekorVersion uint32
3031
IDToken string
3132
PassFunc cosign.PassFunc
3233
OIDCIssuer string

cmd/cosign/cli/options/rekor.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ import (
2020
)
2121

2222
const DefaultRekorURL = "https://rekor.sigstore.dev"
23+
const DefaultRekorVersion = 1
2324

2425
// RekorOptions is the wrapper for Rekor related options.
2526
type RekorOptions struct {
26-
URL string
27+
URL string
28+
Version uint32
2729
}
2830

2931
var _ Interface = (*RekorOptions)(nil)
@@ -32,4 +34,6 @@ var _ Interface = (*RekorOptions)(nil)
3234
func (o *RekorOptions) AddFlags(cmd *cobra.Command) {
3335
cmd.Flags().StringVar(&o.URL, "rekor-url", DefaultRekorURL,
3436
"address of rekor STL server")
37+
cmd.Flags().Uint32Var(&o.Version, "rekor-version", DefaultRekorVersion,
38+
"version of rekor API")
3539
}

0 commit comments

Comments
 (0)