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

Istio, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-is-the-default-limit-istiod-applies-to-jwks-and-openid-discovery-responses-from-istio-1321-on

- A. 1 MiB, set by PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES
- B. 64 KiB, set by PILOT_JWT_MAX_KEY_SET_SIZE
- C. 10 MiB, set by PILOT_JWKS_RESOLVER_MAX_RESPONSE_BYTES
- D. No limit unless PILOT_JWT_ENABLE_REMOTE_JWKS is set

**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.
