Skip to content

v0.5.0

Compare
Choose a tag to compare
@steiza steiza released this 24 Jul 17:44
· 60 commits to main since this release
17ad99b

We are continuing to work down items as we move towards a v1.0.0 release. As noted in the v0.4.0 release this includes some minor interface changes as we clean things up and get feedback from people using sigstore-go in different contexts.

Because we are pre-1.0.0 these were made as breaking changes. After 1.0.0 we will provide deprecation notices and smoother migration paths. There may be more minor interface changes between now and v1.0.0.

Breaking Changes

  • In pkg/bundle/verification_content.go:

    • For bundle.Certificate and bundle.PublicKey, HasCertificate() is now called GetCertificate(); only returns *x509.Certificate instead of (x509.Certificate, bool)
  • In pkg/verify/certificate.go:

    • Change NewShortCertificateIdentity() arguments
      • Was: func NewShortCertificateIdentity(issuer, sanValue, sanType, sanRegex string)
      • Now: func NewShortCertificateIdentity(issuer, issuerRegex, sanValue, sanRegex string)
    • Change in NewSANMatcher() arguments
      • Was: func NewSANMatcher(sanValue string, sanType string, regexpStr string)
      • Now: func NewSANMatcher(sanValue string, regexpStr string)
    • Change in NewCertificateIdentity() arguments
      • Was: NewCertificateIdentity(sanMatcher SubjectAlternativeNameMatcher, extensions certificate.Extensions)
      • Now: NewCertificateIdentity(sanMatcher SubjectAlternativeNameMatcher, issuerMatcher IssuerMatcher, extensions certificate.Extensions)
        • func NewIssuserMatcher(issuerValue, regexpStr string) (IssuerMatcher, error) can help you create IssuerMatcher
  • In pkg/verify/signed_entity.go:

    • WithoutAnyObserverTimestampsInsecure() is now WithoutAnyObserverTimestampsUnsafe()

What's Changed

Full Changelog: v0.4.0...v0.5.0