-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: include IP and username in logging for failed attempts #119
Comments
Excellent idea and shouldn't be too hard to implement. |
I'm interested in trying to add this, but I can't seem to find any log file. The only logging that I am finding is the logging to stdout that Rocket usually does. Am I missing something obvious? |
There's #63 for logging to file, but that is currently pending some upstream changes. So this is purely about changing that single failure message to include requested information. |
The stdout now logs IP and user on failed login attempts. |
This is a useful feature, however I noticed the IP is only logged when trying to log in with a valid username and a wrong password (with the message "Username or password is incorrect"). When trying to log in with a username for which no account exists however only "Invalid user" is logged. |
That should be fixed now in b75ba21. Thanks for reporting it! |
Feature Request
Improve logging of failed login attempts
Issue
Currently, failed login attempts are logged like so:
Ideally, these log messages would include the IP address of the host attempting login, and username that was attempted. Including this information would allow for better monitoring and alerting, as well as blocking of bad actors.
Suggestion
Include IP address and username in log message.
Example:
The text was updated successfully, but these errors were encountered: