Skip to content

Conversation

@schmidtw
Copy link
Member

@schmidtw schmidtw commented Feb 8, 2025

BREAKING CHANGE!

A few of the options go away in favor of leaning on the jws/jwk library and jwskeychain to provide more of that verification.

Removed:

  • RequirePolicies
  • Require
  • TrustRootCAs
  • Verifier
  • SignWith
  • SignWithRaw

Added:

  • Signer
  • NewSigner
  • SignWithX509Chain
  • SignWithKey
  • Decoder
  • NewDecoder
  • WithKeyProvider
  • WithKeySet
  • WithKeyUsed
  • WithVerifyAuto

This was done to incorporate the flexability available from the jws/jwk libraries but limit some of the things that could be configured that would break this library.

BREAKING CHANGE!

A few of the options go away in favor of leaning on the jws/jwk library
and jwskeychain to provide more of that verification.

Removed:
- RequirePolicies
- Require
- TrustRootCAs
- Verifier
- SignWith
- SignWithRaw

Added:
- Signer
- NewSigner
- SignWithX509Chain
- SignWithKey
- Decoder
- NewDecoder
- WithKeyProvider
- WithKeySet
- WithKeyUsed
- WithVerifyAuto

This was done to incorporate the flexability available from the jws/jwk
libraries but limit some of the things that could be configured that
would break this library.
@codecov
Copy link

codecov bot commented Feb 8, 2025

Codecov Report

Attention: Patch coverage is 86.15385% with 9 lines in your changes missing coverage. Please review.

Project coverage is 72.97%. Comparing base (2e734ac) to head (5fe7fe1).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
decodeopts.go 71.42% 6 Missing ⚠️
signopts.go 90.62% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
- Coverage   74.22%   72.97%   -1.25%     
==========================================
  Files          11       11              
  Lines         803      766      -37     
==========================================
- Hits          596      559      -37     
- Misses        167      169       +2     
+ Partials       40       38       -2     
Flag Coverage Δ
unittests 72.97% <86.15%> (-1.25%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

2 participants