Skip to content

Commit

Permalink
changelog edits: #3031 (#3148)
Browse files Browse the repository at this point in the history
This updates the changelog for
#3031 to be a `fix` and
updates the changelog text.
  • Loading branch information
abernix authored May 26, 2023
1 parent 3ed3e85 commit 42c8d52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .changesets/feat_geal_jwt_test_multiple_matching_keys.md

This file was deleted.

11 changes: 11 additions & 0 deletions .changesets/fix_geal_jwt_test_multiple_matching_keys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Evaluate multiple keys matching a JWT criteria ([Issue #3017](https://github.com/apollographql/router/issues/3017))

In some cases, multiple keys could match what a JWT asks for (both the algorithm, `alg`, and optional key identifier, `kid`). Previously, we scored each possible match and only took the one with the highest score. But even then, we could have multiple keys with the same score (e.g., colliding `kid` between multiple JWKS in tests).

The improved behavior will:

- Return a list of those matching `key` instead of the one with the highest score.
- Try them one by one until the JWT is validated, or return an error.
- If some keys were found with the highest possible score (matching `alg`, with `kid` present and matching, too), then we only test those keys.

By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/3031

0 comments on commit 42c8d52

Please sign in to comment.