ajnart / homarr

Customizable browser's home page to interact with your homeserver's Docker containers (e.g. Sonarr/Radarr)
https://homarr.dev
MIT License
6.18k stars 284 forks source link

Add the ability to store access logs to a file #2080

Open PenguinDLL opened 4 months ago

PenguinDLL commented 4 months ago

Description

Utilities like fail2ban could be using in conjunction with Homarr if it were possible to print failed login attempts in a log file.

At the moment, failed login attempts are not even in the logs (unless I missconfigured my container) whereas successful login attempts are written to the logs.

So the idea would be 1) add a "failed login attempt from ip xxx.xxx.xxx.xxx" when some host fails to login 2) add a config file where we can define an option such as

[log]
drivers = console,file
logfile = /app/log/homarr.log

That way we don't have to use docker log and can easily configure a fail2ban filter and jail using the defined logfile.

Strictly speaking, the logfile is not even necessary if docker is configured to output logs to syslog or journald. Having at least the failed login attempts inside the logs would be great for security.

Please tick the boxes

github-actions[bot] commented 4 months ago

Hi 👋. Thank you for submitting your first issue to Homarr. Please ensure that you've provided all nessesary information. You can use the three dots > Edit button to update your post with additional images and information. Depending on the current volume of requests, the team should get in conact with you shortly.

github-actions[bot] commented 1 month ago

Hello 👋, this issue has been open for 60 days without activity. We mark issues to help prioritise and close dead issues. Can you confirm that this issue is still relevant on the latest version? I'll remove the stale label as soon as there is further activity on this issue. Thank you 🙏

HeyItsJono commented 2 weeks ago

Would also really appreciate this feature!

appiekap653 commented 2 days ago

👍