Login Failure Loop

I changed my HA password and it logged me out of all devices. I cannot log back in on any of them. Logs like the one below:

2023-11-17 11:08:18.077 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 10.244.1.1 (10.244.1.1). Requested URL: '/auth/login_flow/61e77f93fb8d39250a8b50a4c2d71dd5'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0)

It’s running in a Kubernetes cluster with an NGINX reverse proxy in front. I tried a different user and it exhibits the same behavior.

My HTTP config now looks like this, and it’s still failing every time.

use_x_forwarded_for: true
trusted_proxies:
  - 192.168.1.115
  - 10.0.0.0/8

I figured out what my problem was. My NGINX reverse proxy can end up sending traffic through any of the 8 k8s hosts I have. When I removed 7 of them to send all traffic through just one, everything started working.

I’m going to update my NGINX configs to always send auth requests through just one node, and open the rest up for all other traffic.