k8wiz
Istio
Medium
Security

What is the default limit istiod applies to JWKS and OpenID discovery responses from Istio 1.32.1 on?

Select your answer:

Show answer and explanation

Answer: 1 MiB, set by PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES

Explanation

istiod used to read JWKS and discovery responses with no size limit, so a RequestAuthentication pointing at a huge response could get it OOM-killed (GHSA-7vw6-2xxx-fch6). It now rejects responses larger than PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES, which defaults to 1048576 bytes. Raise it on istiod if a real key set is larger.

Read more about Istio