Bump github.com/lestrrat-go/jwx/v2 from 2.0.19 to 2.0.21
Bumps github.com/lestrrat-go/jwx/v2 from 2.0.19 to 2.0.21.
Release notes
Sourced from github.com/lestrrat-go/jwx/v2's releases.
v2.0.21 07 Mar 2024
[Security]
[jwe] Added
jwe.Settings(jwe.WithMaxDecompressBufferSize(int64))to specify the maximum size of a decompressed JWE payload. The default value is 10MB. If you are compressing payloads greater than this and want to decompress it during a call tojwe.Decrypt, you need to explicitly set a value large enough to hold that data.The same option can be passed to
jwe.Decryptto control this behavior on a per-message basis.[jwe] Added documentation stating that
jwe.WithMaxBufferSizeoption will be renamed in future versions, i.e. v3v2.0.20 20 Feb 2024
[New Features]
- [jwe] Added
jwe.Settings(WithMaxBufferSize(int64))to set the maximum size of internal buffers. The default value is 256MB. Most users do not need to change this value.- [jws] Allow
jws.WithCompact()andjws.WithJSON()to be passed tojws.Parse()andjws.Verify(). These options control the expected serialization format for the JWS message.- [jwt] Add
jwt.WithCompactOnly()to specify that only compact serialization can be used forjwt.Parse(). Previously, by virtue ofjws.Parse()allowing either JSON or Compact serialization format,jwt.Parse()also alloed JSON serialization where as RFC7519 explicitly states that only compact serialization should be used. For backward compatibility the default behavior is not changed, but you can set this global option for jwt:jwt.Settings(jwt.WithCompactOnly(true))[Miscellaneous]
- Internal key conversions should now allow private keys to be used in place of public keys. This would allow you to pass private keys where public keys are expected.
Changelog
Sourced from github.com/lestrrat-go/jwx/v2's changelog.
v2.0.21 07 Mar 2024 [Security]
[jwe] Added
jwe.Settings(jwe.WithMaxDecompressBufferSize(int64))to specify the maximum size of a decompressed JWE payload. The default value is 10MB. If you are compressing payloads greater than this and want to decompress it during a call tojwe.Decrypt, you need to explicitly set a value large enough to hold that data.The same option can be passed to
jwe.Decryptto control this behavior on a per-message basis.[jwe] Added documentation stating that
jwe.WithMaxBufferSizeoption will be renamed in future versions, i.e. v3v2.0.20 20 Feb 2024 [New Features]
- [jwe] Added
jwe.Settings(WithMaxBufferSize(int64))to set the maximum size of internal buffers. The default value is 256MB. Most users do not need to change this value.- [jws] Allow
jws.WithCompact()andjws.WithJSON()to be passed tojws.Parse()andjws.Verify(). These options control the expected serialization format for the JWS message.- [jwt] Add
jwt.WithCompactOnly()to specify that only compact serialization can be used forjwt.Parse(). Previously, by virtue ofjws.Parse()allowing either JSON or Compact serialization format,jwt.Parse()also alloed JSON serialization where as RFC7519 explicitly states that only compact serialization should be used. For backward compatibility the default behavior is not changed, but you can set this global option for jwt:jwt.Settings(jwt.WithCompactOnly(true))[Miscellaneous]
- Internal key conversions should now allow private keys to be used in place of public keys. This would allow you to pass private keys where public keys are expected.
Commits
611d914Merge pull request #1091 from lestrrat-go/develop/v2551073bfix keyset suboption documentation (#1090)cdfaccfsilence linter17e2da9Update Changesd43f2ceMerge pull request from GHSA-hj3v-m684-v259778ed27Bump golang.org/x/crypto from 0.19.0 to 0.21.0 (#1086)38d258eBump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#1084)ffcb990Update httprc to v1.0.5 (#1088)c3b3a17Merge branch 'develop/v2' into v2ace7a77Update Changes- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 22.55%. Comparing base (
619cd9c) to head (4a2d3f8).
Additional details and impacted files
@@ Coverage Diff @@
## master #1392 +/- ##
=======================================
Coverage 22.55% 22.55%
=======================================
Files 40 40
Lines 4758 4758
=======================================
Hits 1073 1073
Misses 3607 3607
Partials 78 78
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.