Interview › Istio & Service Mesh
What is a RequestAuthentication policy, and how does it validate JWTs?
Istio & Service Mesh · Basic level
Answer
RequestAuthentication validates end-user or caller JWTs at the proxy. It tells Istio where to find the token and how to validate it using an issuer and JWKS. It authenticates the request token but does not by itself authorize access; AuthorizationPolicy enforces what is allowed.
Technical explanation
RequestAuthentication produces authenticated request principal information when the JWT is valid.
Invalid tokens are rejected when the policy applies, but missing-token behavior usually requires AuthorizationPolicy if a token is mandatory.
It is useful at ingress gateways and internal services that need consistent JWT validation.
Hands-on example
JWT policy sketch:
apiVersion: security.istio.io/v1
kind: RequestAuthentication
metadata:
name: app-jwt
namespace: app
spec:
selector:
matchLabels:
app: orders
jwtRules:
- issuer: https://issuer.example.com/
jwksUri: https://issuer.example.com/.well-known/jwks.jsonThen add AuthorizationPolicy requiring requestPrincipals.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Istio & Service Mesh interview questions
- What is a PeerAuthentication policy?
- What is an AuthorizationPolicy, and how do you enforce service-to-service access control?
- What is mutual TLS (mTLS), and how does Istio provide it automatically?
- What is outlier detection, and how does it eject unhealthy hosts?
- What are timeouts in Istio, and how do they interact with retries?
- How do you inject delays or aborts to test resilience with Istio?
- What is fault injection in Istio, and why would you use it?
- How does Istio do request routing based on headers or paths?