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 the ability to specify certificate identity via a regular expression #236

Merged
merged 2 commits into from
Jul 24, 2024

Conversation

steiza
Copy link
Member

@steiza steiza commented Jul 18, 2024

Summary

Fixes #234

Cosign allows you to verify bundles signed with a certificate by providing a regular expression to match the certificate identity. Previously, sigstore-go required you to specify the exact certificate identity. This change adds support for sigstore-go to match the certificate identity with a regular expression.

Release Note

  • Allows specifying certificate identity with a regular expression, for verifying bundles
  • Breaking change: additional string argument to verify.NewShortCertificateIdentity() and verify.NewCertificateIdentity()

Documentation

N/A

For #234

Signed-off-by: Zach Steindler <steiza@github.com>
@steiza steiza requested a review from a team July 18, 2024 00:25
cmd/sigstore-go/main.go Outdated Show resolved Hide resolved
examples/oci-image-verification/main.go Outdated Show resolved Hide resolved
pkg/verify/certificate_identity.go Outdated Show resolved Hide resolved
pkg/verify/certificate_identity.go Outdated Show resolved Hide resolved
pkg/verify/certificate_identity.go Outdated Show resolved Hide resolved
Signed-off-by: Zach Steindler <steiza@github.com>
Copy link
Contributor

@haydentherapper haydentherapper left a comment

Choose a reason for hiding this comment

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

Thanks!

@steiza steiza merged commit a808341 into main Jul 24, 2024
11 checks passed
@steiza steiza deleted the identity-regex branch July 24, 2024 12:39
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.

Verify certificates by issuer regex
3 participants