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

Jwks doesn't have key to match kid or alg from Jwt #4180

Open
xmath279 opened this issue Sep 7, 2024 · 2 comments
Open

Jwks doesn't have key to match kid or alg from Jwt #4180

xmath279 opened this issue Sep 7, 2024 · 2 comments

Comments

@xmath279
Copy link

xmath279 commented Sep 7, 2024

Description:

When OIDC provider rotates the keys, Envoy fails to refetch the keys and returns the following error:

Jwks doesn't have key to match kid or alg from Jwt

Repro steps:

Create a security policy with JWKS using a provider that rotates keys (for example, Zitadel). Wait for the key to expire and try the route associated with the security policy.

Environment:

Envoy Gateway 1.1.0
Envoy 1.31.0

Notes

The OpenID Connect spec specifies that the verifier should try to refetch the keys if it encounters an unknown key, see: https://openid.net/specs/openid-connect-core-1_0.html#RotateSigKeys

@xmath279 xmath279 added the triage label Sep 7, 2024
@arkodg
Copy link
Contributor

arkodg commented Sep 9, 2024

cc @zhaohuabing @denniskniep

Copy link

github-actions bot commented Nov 7, 2024

This issue has been automatically marked as stale because it has not had activity in the last 30 days.

@github-actions github-actions bot added the stale label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants