Zerodha app login failures with idle backend

product-rca case · difficulty 3/5 · 20 minutes · banking · India · Zerodha

Prompt

You are a product manager at Zerodha. App login failures increased, but the backend authentication servers show no load. Find out why.

Context

Login success dropped from about 99.0% to about 93.4% this morning. The authentication servers have normal CPU, memory and latency. Work the problem as a root-cause analysis: define the metric, structure hypotheses, slice the data, pin the cause, then fix and prevent.

Clarifying questions

Is it a frontend bug? ISP issue?
There was no app release. Users report the login page spins and then times out. Support tickets seem to come from certain networks.
When did it start?
At exactly midnight, with no change in traffic volumes.

Recommendation

**Root cause:** An SSL certificate on the CDN endpoint serving the login page assets expired at midnight, so TLS handshakes failed for users routed through that endpoint (mainly two ISPs), which the app showed as login timeouts. - **Evidence:** Auth servers are healthy and their success rate is unchanged, failures happen at the asset loading step, only two ISPs are affected, Pool 2 shows a 32% handshake failure rate, and its certificate expired at the exact time that the failures began. - **Fix now:** Renew and deploy the certificate on Pool 2 immediately, and purge the affected edge caches. - **Prevent:** Automate certificate renewal, monitor certificate expiry dates with alerts well in advance (for example 30, 14 and 7 days) and add synthetic login checks from multiple ISPs. - **Track:** Client-side timeout rate, CDN latency, Error reports by ISP

Risks

Next steps