[PR #284] [MERGED] feat: Modified logger to log to file that supports fail2ban #974

Closed
opened 2026-02-04 21:41:39 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/plankanban/planka/pull/284
Author: @StevenJCorreia
Created: 8/21/2022
Status: Merged
Merged: 8/23/2022
Merged by: @meltyshev

Base: masterHead: master


📝 Commits (2)

  • 425b437 feat: Modified logger to log to file that supports fail2ban
  • 3b4b84a Merge branch 'plankanban:master' into master

📊 Changes

12 files changed (+425 additions, -7842 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 README.md (+73 -0)
📝 docker-start.sh (+6 -1)
📝 server/api/controllers/access-tokens/create.js (+8 -0)
📝 server/config/env/production.js (+1 -3)
📝 server/config/env/test.js (+1 -3)
📝 server/config/log.js (+18 -1)
📝 server/package-lock.json (+166 -7832)
📝 server/package.json (+3 -2)
server/test/utils/remoteAddress.test.js (+78 -0)
server/utils/logger.js (+42 -0)
server/utils/remoteAddress.js (+27 -0)

📄 Description

This PR aims to add the ability to expose Planka's logs to a logfile that can later be watched by fail2ban.

The logfile will mirror the console logs that already via sails.js with two additions:

  • Failed login attempt due to invalid username/email
  • Failed login attempt due to invalid password

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/plankanban/planka/pull/284 **Author:** [@StevenJCorreia](https://github.com/StevenJCorreia) **Created:** 8/21/2022 **Status:** ✅ Merged **Merged:** 8/23/2022 **Merged by:** [@meltyshev](https://github.com/meltyshev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`425b437`](https://github.com/plankanban/planka/commit/425b43764a3faea97ceec837cd32269f5a7b07fb) feat: Modified logger to log to file that supports fail2ban - [`3b4b84a`](https://github.com/plankanban/planka/commit/3b4b84a212bf0079a45e6572712ad1c471a8d300) Merge branch 'plankanban:master' into master ### 📊 Changes **12 files changed** (+425 additions, -7842 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `README.md` (+73 -0) 📝 `docker-start.sh` (+6 -1) 📝 `server/api/controllers/access-tokens/create.js` (+8 -0) 📝 `server/config/env/production.js` (+1 -3) 📝 `server/config/env/test.js` (+1 -3) 📝 `server/config/log.js` (+18 -1) 📝 `server/package-lock.json` (+166 -7832) 📝 `server/package.json` (+3 -2) ➕ `server/test/utils/remoteAddress.test.js` (+78 -0) ➕ `server/utils/logger.js` (+42 -0) ➕ `server/utils/remoteAddress.js` (+27 -0) </details> ### 📄 Description This PR aims to add the ability to expose Planka's logs to a logfile that can later be watched by fail2ban. The logfile will mirror the console logs that already via `sails.js` with two additions: - Failed login attempt due to invalid username/email - Failed login attempt due to invalid password --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-04 21:41:39 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#974