Drone auth error after gitea server restart

I have deployed gitea with the official chart.
I’m using postgresql (database) / redis (cache, session, queue) and elasticsearch (search).
I’ve also a RWM pvc as storage.

Every time the gitea pods get restarted i need to restart the drone server too, otherwise it is no longer able to authenticate against gitea.

What are i’m missing here?

I can see the following warning in logs:

...dels/login_source.go:815:UserSignIn() [W] Failed to login 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' via 'Ldap Name': user does not exist [uid: 0, name: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, keyid: 0]

Is the changing oauth2.JWT_SECRET token the cause?

I’ve now created a static value. Let’s see if this helps.

Yeah, if the JWT secret changes then the token drone has is invalidated.

1 Like