Raise failed authentication log entry to warning #1648

Closed
opened 2025-11-02 04:08:24 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Darcara on GitHub (Mar 23, 2018).

  • On Gitea version: 1.4.0+rc3
  • Database: MySQL

Description

Currently failed authentication attempts are logged as info into gitea.log.
All executed SQL queries are also logged as info into xorm.log which means increases file size and disk writes.
In order to avoid the size and write problem I have increased log level to warn, but that leaves my fail2ban without the required log lines.

Alternatively add an option to disable the xorm log, or log executed SQL queries as debug, which should be better for production servers with several active users.

As an aside it would be nice to have a log of failed password reset requests .

Originally created by @Darcara on GitHub (Mar 23, 2018). - On Gitea version: 1.4.0+rc3 - Database: MySQL ## Description Currently failed authentication attempts are logged as info into gitea.log. All executed SQL queries are also logged as info into xorm.log which means increases file size and disk writes. In order to avoid the size and write problem I have increased log level to warn, but that leaves my fail2ban without the required log lines. Alternatively add an option to disable the xorm log, or log executed SQL queries as debug, which should be better for production servers with several active users. As an aside it would be nice to have a log of failed password reset requests .
GiteaMirror added the type/proposaltype/enhancement labels 2025-11-02 04:08:24 -06:00
Author
Owner

@mckaygerhard commented on GitHub (Mar 26, 2018):

related to the #2512 fiuuu from number 2XXX to 3XXX and still not reolved.. amount of 100 issues happened!? seems gitea development features raises mor and more bugs?

@mckaygerhard commented on GitHub (Mar 26, 2018): related to the #2512 fiuuu from number 2XXX to 3XXX and still not reolved.. amount of 100 issues happened!? seems gitea development features raises mor and more bugs?
Author
Owner

@lunny commented on GitHub (Mar 30, 2018):

@Darcara As an aside it would be nice to have a log of failed password reset requests . is not resolved by #3726. Maybe you could create a new issue to describe that or I will reopen this one.

@lunny commented on GitHub (Mar 30, 2018): @Darcara `As an aside it would be nice to have a log of failed password reset requests .` is not resolved by #3726. Maybe you could create a new issue to describe that or I will reopen this one.
Author
Owner

@Darcara commented on GitHub (Mar 30, 2018):

I made #3745 and thanks for your fast work, much appreciated :)

@Darcara commented on GitHub (Mar 30, 2018): I made #3745 and thanks for your fast work, much appreciated :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1648