Right after a scheduled secret rotation, 500s spike with "password authentication failed for user app".
BeginnerTroubleshooting5xx errors
Answer
Likely causes → The DB password changed but running pods still use the old value. Kubernetes doesn't restart pods when a Secret used as env vars changes, and some apps cache credentials at startup.
Diagnose → Check the rotation event time in Secrets Manager or Vault, and compare it with pod start times and the error start time.
Fix → kubectl rollout restart deploy/api -n prod to pick up the new secret. If the new password itself is wrong, revert to the previous secret version (AWSPREVIOUS).
Prevent → Rotate with two users or two valid passwords (alternating users strategy), reload secrets without restarting (mounted files, External Secrets Operator plus Reloader), and test rotation in staging.
More on 5xx errors
Right after a release, 500s spike to 8% and logs show `java.lang.NullPointerException` in a new code path.BeginnerLong-running report exports fail with "504 Gateway Time-out" from the ALB at exactly 60 seconds.Beginnernginx logs "upstream prematurely closed connection while reading response header from upstream" and users get 502.IntermediateEvery deploy causes 10–20 seconds of 502s from the ALB, even with a rolling update.IntermediateA Node.js service behind an ALB returns a steady trickle of 502s under normal load, with no app errors at all.AdvancedThrough Istio, clients get "503 upstream connect error or disconnect/reset before headers. reset reason: connection failure".Intermediate