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

Bump github.com/MicahParks/keyfunc from 1.5.1 to 1.7.0 #867

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 1, 2022

Bumps github.com/MicahParks/keyfunc from 1.5.1 to 1.7.0.

Release notes

Sourced from github.com/MicahParks/keyfunc's releases.

Allow JWKS JSON to be made into Given Keys

The purpose of this release is to add a function that can transform raw JWKS JSON into map[string]keyfunc.GivenKey. This supports the use case where JWKS JSON is given, but a remote resource is also needed via keyfunc.Get. The map[string]keyfunc.GivenKey can be passed via the GivenKeys field in the keyfunc.Options argument.

Thank you to @​sean-rn for this contribution!

Related issues:

Related pull requests:

Specify signing algorithm for given keys

The purpose of this release is to allow package users to specify which signing algorithms in JWT headers are required for which given keys. Keys from a remote JWK Set had their algorithm checked in release 1.5.2. For discussion, please see the related issue.

Thank you to our new contributor, @​sean-rn!

Please note the following functions have been deprecated and replaced:

  • NewGivenCustom --> NewGivenCustomWithOptions
  • NewGivenECDSA --> NewGivenECDSAWithOptions
  • NewGivenEdDSA --> NewGivenEdDSAWithOptions
  • NewGivenHMAC --> NewGivenHMACWithOptions
  • NewGivenRSA --> NewGivenRSAWithOptions

This is a consequence of not providing options for given keys in the initial implementation.

Related issues:

Related pull requests:

Handle invalid ECDSA curve in JWK

The purpose of this pull request is to add a a default switch case for ECDSA curve selection. Previously, if an invalid or empty crv JWK parameter was given for an ECDSA key, there would be a nil pointer dereference panic. You can find more information about valid crv ECDSA JWK parameters in this RFC: https://www.rfc-editor.org/rfc/rfc7518#section-6.2.1.1

Thank you to our new contributor, @​btoews!

Related pull requests:

Confirm JWK algorithm

The purpose of this release is to confirm the alg parameter in a JWK matches the alg in a JWT's header before returning that JWK's public key for signature verification. For discussion, please see the related issue.

Thank you, @​sermojohn for opening this issue!

Related issues:

... (truncated)

Commits
  • cea8844 Merge pull request #75 from MicahParks/given_keys_from_json_edits
  • ac8e1c0 Edit typo and struct literal in NewGivenKeysFromJSON
  • 8c0f8a9 Merge pull request #74 from sean-rn/given-keys-from-json
  • df26d2a Permit construction of a GivenKeys map from JSON
  • 9bc59bf Merge pull request #71 from MicahParks/given_keys_edits
  • 9a9ca87 Deprecate old given key creation function and write new ones with option argu...
  • d327d9a Merge pull request #70 from sean-rn/given-key-alg
  • 06dfbca Allow creation of GivenKeys with a required algorithm
  • 338d24e Merge pull request #67 from MicahParks/alg_check_edits
  • 655ef0c Add custom error for invalid ECDSA curve and allow test to panic
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/MicahParks/keyfunc](https://github.com/MicahParks/keyfunc) from 1.5.1 to 1.7.0.
- [Release notes](https://github.com/MicahParks/keyfunc/releases)
- [Commits](MicahParks/keyfunc@v1.5.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/MicahParks/keyfunc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 1, 2022
@suchen-sci suchen-sci merged commit 1549b71 into main Dec 5, 2022
@dependabot dependabot bot deleted the dependabot/go_modules/github.com/MicahParks/keyfunc-1.7.0 branch December 5, 2022 05:50
caoshengdong pushed a commit to caoshengdong/easegress that referenced this pull request Dec 20, 2022
)

Bumps [github.com/MicahParks/keyfunc](https://github.com/MicahParks/keyfunc) from 1.5.1 to 1.7.0.
- [Release notes](https://github.com/MicahParks/keyfunc/releases)
- [Commits](MicahParks/keyfunc@v1.5.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/MicahParks/keyfunc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants