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.
More medium Istio questions
- Which Istio 1.32 mesh config setting turns off the sidecar's default retry of inbound requests that were reset before reaching the application?
- After enabling ENABLE_GATEWAY_API_HTTPROUTE_AUTH on istiod, an EnvoyFilter that patches the gateway filter envoy.filters.http.rbac no longer affects ALLOW policies. Why?
- A client sidecar's Istio access log shows 503 UO for calls to a service. What rejected those requests?
- An Istio Telemetry resource filters access logs with response.code >= 500, and failed connections never appear in the logs. Which filter expression also keeps them?
- Why does Istio's egress guide use resolution: DNS rather than NONE in a ServiceEntry for an external HTTP host?
- What is the purpose of Istio's AuthorizationPolicy resource?