external-auth-server: EAS stops working every two weeks

We installed external-auth-server a couple of months back to authorize requests using Firebase tokens. The service seems to be working fine when it is first started, but somewhere around two weeks time, verifying starts to fail.

external-auth-server-6f57d4ddc6-xtblv external-auth-server {"level":"info","message":"starting verify pipeline","service":"external-auth-server","timestamp":"2022-08-16T21:37:30.592Z"}
external-auth-server-6f57d4ddc6-xtblv external-auth-server {"level":"info","message":"starting verify for plugin: firebase_jwt","service":"external-auth-server","timestamp":"2022-08-16T21:37:30.592Z"}
external-auth-server-6f57d4ddc6-xtblv external-auth-server {"level":"info","message":"end verify pipeline with status: 401","service":"external-auth-server","timestamp":"2022-08-16T21:37:30.593Z"}

Requests might not happen every day, the previous request was five days earlier and that succeeded.

I tried increasing the log verbosity to verbose to see if something is seen there, but because I don’t have a better way to trigger the issue than to wait, it might take two weeks to find out if that shows anything. In the mean while, are there any ideas what I could do to debug the problem?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (14 by maintainers)

Most upvoted comments

Go ahead and close it down yeah and we can close this now as well.

Thanks for the report and patience getting it fixed! Not to mention the code to fix it!

Ah ok, well that seems like it would likely be safe to cache until max-age then. I’ll snap a new release and then we can sit and wait 😄

I just pushed an update to the next tag (it’s mutable so make sure your servers pull the most recent content). Give that a try and we’ll see how it goes.