-
Notifications
You must be signed in to change notification settings - Fork 547
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
Add "cosign attest" command! #458
Conversation
TODO:
|
1fc0459
to
4b41a7c
Compare
Dropping the WIP here, basic |
b2defbe
to
2d9b7a1
Compare
cmd/cosign/cli/verify_attestation.go
Outdated
flagset.StringVar(&cmd.Slot, "slot", "", "security key slot to use for generated key (default: signature) (authentication|signature|card-authentication|key-management)") | ||
flagset.BoolVar(&cmd.CheckClaims, "check-claims", true, "whether to check the claims found") | ||
flagset.StringVar(&cmd.Output, "output", "json", "output the signing image information. Default JSON.") | ||
flagset.StringVar(&cmd.FulcioServer, "fulcio-server", "https://fulcio.sigstore.dev", "[EXPERIMENTAL] address of sigstore PKI server") |
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.
flagset.StringVar(&cmd.FulcioServer, "fulcio-server", "https://fulcio.sigstore.dev", "[EXPERIMENTAL] address of sigstore PKI server") | |
flagset.StringVar(&cmd.FulcioURL, "fulcio-url", "https://fulcio.sigstore.dev", "[EXPERIMENTAL] address of sigstore PKI server") |
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.
cmd/cosign/cli/attest.go
Outdated
remoteOpts := []remote.Option{ | ||
remote.WithAuthFromKeychain(authn.DefaultKeychain), | ||
remote.WithContext(ctx), | ||
} |
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.
remoteOpts := []remote.Option{ | |
remote.WithAuthFromKeychain(authn.DefaultKeychain), | |
remote.WithContext(ctx), | |
} | |
remoteOpts := DefaultRegistryClientOpts(ctx) |
cmd/cosign/cli/verify_attestation.go
Outdated
RegistryClientOpts: []remote.Option{ | ||
remote.WithAuthFromKeychain(authn.DefaultKeychain), | ||
remote.WithContext(ctx), | ||
}, |
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.
RegistryClientOpts: []remote.Option{ | |
remote.WithAuthFromKeychain(authn.DefaultKeychain), | |
remote.WithContext(ctx), | |
}, | |
RegistryClientOpts: DefaultRegistryClientOpts(ctx), |
Signed-off-by: Dan Lorenc <dlorenc@google.com>
Signed-off-by: Dan Lorenc dlorenc@google.com