Istio come with out of the box ability to validate the JWT tokens that comes inside a client request header. And we were able to sucessfully use the RequestAuthentication policy.
Validate the JWT token inside the request header
Forward request with valid JWT to application code
Deny traffic with invalid JWT
My query was if we can cache the JWT tokens at the ingress gateway for improved performance. Can you provide some pointers on how this can be done.
@YangminZhu We are trying to cache the JWT tokens at the istio ingress gateway. If the token is valid, we want to cache these tokens so that the subsequent requests passing through the gateway are faster and will give better performance. The token once expired needs to be refreshed. My question was ,is this automatically handled by the Istio Ingress gateway or we need special handling. How do we handle the token refresh workflow?