Skip to content
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

Merged
merged 1 commit into from
Jul 23, 2021
Merged

Add "cosign attest" command! #458

merged 1 commit into from
Jul 23, 2021

Conversation

dlorenc
Copy link
Member

@dlorenc dlorenc commented Jul 20, 2021

Signed-off-by: Dan Lorenc dlorenc@google.com

@dlorenc dlorenc changed the title Add "cosign attest" command! WIP: Add "cosign attest" command! Jul 20, 2021
@dlorenc
Copy link
Member Author

dlorenc commented Jul 20, 2021

TODO:

  • Tests
  • Verification
  • Docs

@dlorenc dlorenc force-pushed the attest branch 7 times, most recently from 1fc0459 to 4b41a7c Compare July 21, 2021 20:52
@dlorenc dlorenc changed the title WIP: Add "cosign attest" command! Add "cosign attest" command! Jul 21, 2021
@dlorenc
Copy link
Member Author

dlorenc commented Jul 21, 2021

Dropping the WIP here, basic attest and verify-attestation flows are in, working, and documented!

@cpanato cpanato added this to the v1.0.0 milestone Jul 22, 2021
@dlorenc dlorenc force-pushed the attest branch 3 times, most recently from b2defbe to 2d9b7a1 Compare July 22, 2021 19:40
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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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")

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 125 to 128
remoteOpts := []remote.Option{
remote.WithAuthFromKeychain(authn.DefaultKeychain),
remote.WithContext(ctx),
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
remoteOpts := []remote.Option{
remote.WithAuthFromKeychain(authn.DefaultKeychain),
remote.WithContext(ctx),
}
remoteOpts := DefaultRegistryClientOpts(ctx)

Comment on lines 111 to 114
RegistryClientOpts: []remote.Option{
remote.WithAuthFromKeychain(authn.DefaultKeychain),
remote.WithContext(ctx),
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
RegistryClientOpts: []remote.Option{
remote.WithAuthFromKeychain(authn.DefaultKeychain),
remote.WithContext(ctx),
},
RegistryClientOpts: DefaultRegistryClientOpts(ctx),

Signed-off-by: Dan Lorenc <dlorenc@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants