Need a solution for the Automatic Rotation of Public key in the KEYCLOAK for APISIX jwt-auth plgin. #13473
Replies: 3 comments 16 replies
-
|
Hi @chandreshreddyg17! I'm Dosu and I'm helping the APISIX team. The jwt-auth plugin does not support automatic JWKS key rotation — it requires the public key to be statically configured in each consumer credential [1]. There's a feature request for JWKS endpoint support in jwt-auth, but it hasn't been implemented yet. The recommended solution is to switch to the
An added benefit: the openid-connect plugin can validate tokens directly against Keycloak's discovery endpoint without requiring pre-registered Consumers in APISIX [4]. However, if you need consumer-level plugin configuration, you can still map claims to consumers. If you must stay on jwt-auth, the only option today is to manually update the consumer's To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
@dosu |
Beta Was this translation helpful? Give feedback.
-
|
@dosu |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have deployed APISIX in decoupled mode . I am using jwt-auth plug in to validate the token locally and Identify the consumer ,apply the plugins which are in consumer.
I gave KEYCLOAK Realm public key in the Consumer of APISIX.
My issue is that The KEYCLOAK public key automatically rotates for every 10 years. At that time the jwt tokens will not be validated.
Is there any approach or solution for this.
-Chandresh Reddy
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions