k8wiz
Istio
Medium
Security

What does setting presence: REQUIRED on a jwtRules entry of an Istio RequestAuthentication do?

Select your answer:

Show answer and explanation

Answer: Requests without that rule's token get a 401, even if another rule's token is valid

Explanation

The presence field, added in Istio 1.32, defaults to OPTIONAL, where a missing token is allowed as long as no invalid token is present. With REQUIRED, the token must be present and valid or the request is rejected with 401 Unauthorized. Marking every rule REQUIRED enforces that all configured tokens arrive together.

Read more about Istio