You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
auth: cache empty HIBP ranges and JWKS key sets #15703
Once utopia-php/cache stores empty values, two callers in appwrite/appwrite cache an empty answer that is refetched today:
src/Appwrite/Auth/Validator/PasswordPwned.php:115: a HIBP range with no breached hashes is [], so every password check with that prefix calls HIBP. After: cached for CACHE_TTL (1h).
src/Appwrite/Auth/OIDC/Jwks.php:46: a JWKS with no usable RSA keys is [], so every ID-token login fetches it again. After: cached for 6h. An unknown kid still forces a refetch, at most once per 60s (:53-60).
No code change is needed. Add regression tests showing each empty answer is fetched once for two lookups.
#15705 also fixes HIBP::range(): a 200 response with no SUFFIX:COUNT entry now throws GENERAL_PWNED_PASSWORDS_UNAVAILABLE instead of being read, and cached, as "no breaches".
Activity
ArnabChatterjee20k commentedon Nov 17, 2026
#15705 also fixes
HIBP::range(): a 200 response with noSUFFIX:COUNTentry now throwsGENERAL_PWNED_PASSWORDS_UNAVAILABLEinstead of being read, and cached, as "no breaches".