No way to manually manage JWKS? #194
-
The However, it looks like there's no way to manually refetch the keys, nor does it appear that the agent will periodically refetch. Microsoft docs recommends checking for updates every 24 hours:
Can we have either (1) a way to create and manage "local" keystores (ideal for scenarios where the keys are shared via some non-http interface), or (2) a way to force a reload of the keystore? I honestly think that Jose should focus on key management and allow consumers to define how they retrieve and load the keys. Maybe a separate library could handle AIO validation for the streamlined use case. But, at the very least, there should be a way to configure/force a refetch. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The
You do not need to manually refetch because it will automatically do so when no existing key matches the selection criteria. Given good JWKS key management hygiene at the producer this is all that's needed.
I think so too, which is why the key argument for verify/decrypt functions can be an async function where you can resolve the key any way you like.
has no external network related dependencies and brings in immense value, it's as slim as possible, and you can develop your own. |
Beta Was this translation helpful? Give feedback.
The
createRemoteJWKSet
module results in aGetKeyFunction
interface which is accepted at the different decrypt/verify modules already, so you can definitely build your own.You do not need to manually refetch because it will automatically do so when no existing key matches the selection criteria. Given good JWKS key management hygiene at the producer this is all that's needed.