Cannot find remote user: Bad credentials

Hi, I used to have drone running well for some time, but recently decided to upgrade to version 1.
Our setup uses a front controller (nginx-ingress) that handles tls and forwards to drone.
But now the login flow is broken, and I am forwarded to this after successful authentication with GitHub:


I find these messages in the log:

“msg”:“cannot find remote user: Bad credentials”

I am pretty sure that X-Forwarded-For headers are set, but I am guessing there is no authorization header set or passed through. Any idea how I can debug this? Again, this setup was working fine until the upgrade.