Logging and Fail2ban support #217

Closed
opened 2026-02-04 17:53:48 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @StevenJCorreia on GitHub (Aug 20, 2022).

Hey all,

Background

I started hosting and using Planka on my home server recently and I was concerned that there was no support to expose the logs, specifically failed authentication attempts, and point Fail2ban to them in order to automatically ban people attempting to get into accounts.

Proposed Features

  • Log failed authentication attempts to a logfile
    • Invalid username/email
    • Invalid password
  • Expose a logfile directory to host machine so server admin can point Fail2ban to them
  • Update any related documentation to include feature once implemented

Implementation

I already have a working version of what is requested above, but I would like to hear others' opinions regarding this feature before a PR is opened.

Originally created by @StevenJCorreia on GitHub (Aug 20, 2022). Hey all, # Background I started hosting and using Planka on my home server recently and I was concerned that there was no support to expose the logs, specifically failed authentication attempts, and point [Fail2ban](https://www.fail2ban.org/wiki/index.php/Main_Page) to them in order to automatically ban people attempting to get into accounts. # Proposed Features - Log failed authentication attempts to a logfile - Invalid username/email - Invalid password - Expose a logfile directory to host machine so server admin can point Fail2ban to them - Update any related documentation to include feature once implemented # Implementation I already have a working version of what is requested above, but I would like to hear others' opinions regarding this feature before a PR is opened.
Author
Owner

@nickbe commented on GitHub (Aug 21, 2022):

This is simply something that was not important at the time. Please go ahead and make a pull request for this. We will review the log format then....

@nickbe commented on GitHub (Aug 21, 2022): This is simply something that was not important at the time. Please go ahead and make a pull request for this. We will review the log format then....
Author
Owner

@StevenJCorreia commented on GitHub (Aug 21, 2022):

@nickbe PR opened. (#284)

@StevenJCorreia commented on GitHub (Aug 21, 2022): @nickbe PR opened. (#284)
Author
Owner

@meltyshev commented on GitHub (Aug 23, 2022):

🙏

@meltyshev commented on GitHub (Aug 23, 2022): 🙏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#217