jwt_authn: Add logic to refetch JWT on KID mismatch
Commit Message: jwt_authn: Add logic to refetch JWT on KID mismatch Additional Description: Minimal implementation driven through config to force filter to refetch JWKS when extracted JWT's KID does not match with cached JWKS's KID.
Risk Level: Low Testing: Unit/Integration Docs Changes: Done Release Notes: Done Partially fixes #14557
CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).
/wait on CI (@tyxia please remember to use wait tags to avoid PRs showing up as stale)
/wait
Seems like this needs a main merge + addressing of some comments.
@markdroth @tyxia Apologies for the delay. I've made changes as discussed, which are also documented in the API docs (code is also added for disallowing multiple fetches in parallel, just not documented).
I'll add tests for the new code if this looks good to you.
/lgtm api
@tyxia PTAL.