go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.3k stars 5.51k forks source link

Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER] #32490

Closed sebastian-sauer closed 1 week ago

sebastian-sauer commented 1 week ago

Description

Analysing our gitea log files we see a lot of the following log messages:

routers/web/web.go:121:func9() [E] Failed to verify user: user does not exist [uid: 0, name: OAUTH_USER]

It looks like this is a log in web.go:

log.Error("Failed to verify user: %v", err)

Having an error in the logs for every wrong auth attempt could explode the log files and hide other important messages.

Additional question: is the OAUTH_USER a special user?

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Binary + MariaDb

Database

MySQL/MariaDB

wxiaoguang commented 1 week ago

What are the logs around it? Is there any one trying to use "OAUTH_USER" as user name to try to login?

sebastian-sauer commented 1 week ago

I only got the error logs for this system and nearly the only output we get is this log message logged multiple times.

But while digging through some other issues i think this is a duplicate of the following issue:

https://github.com/go-gitea/gitea/issues/31470