Log format of failed authentications #868

Closed
opened 2026-02-20 08:05:47 -05:00 by deekerman · 0 comments
Owner

Originally created by @fredrikekre on GitHub (Nov 20, 2020).

Log format of failed authentications

The log format of failed log ins differ from succesful logins, and more importantly, they differ from what is documented in the wiki (https://github.com/dani-garcia/bitwarden_rs/wiki/Fail2Ban-Setup#pre-requisite).

Current output:

$ docker-compose logs bitwarden | grep User
bitwarden    | [2020-11-20 10:54:52.147][error][ERROR] Username or password is incorrect. Try again. IP: XX.XX.XX.XX. Username: example@email.com.
bitwarden    | [2020-11-20 10:55:15.178][bitwarden_rs::api::identity][INFO] User example@email.com logged in successfully. IP: XX.XX.XX.XX

Expected output:

$ docker-compose logs bitwarden | grep User
bitwarden    | [2020-11-20 10:54:52.147][bitwarden_rs::api::identity][ERROR] Username or password is incorrect. Try again. IP: XX.XX.XX.XX. Username: example@email.com.
bitwarden    | [2020-11-20 10:55:15.178][bitwarden_rs::api::identity][INFO] User example@email.com logged in successfully. IP: XX.XX.XX.XX

My environment

  • Bitwarden_rs version: 1.17.0
  • Install method: docker
Originally created by @fredrikekre on GitHub (Nov 20, 2020). ### Log format of failed authentications The log format of failed log ins differ from succesful logins, and more importantly, they differ from what is documented in the wiki (https://github.com/dani-garcia/bitwarden_rs/wiki/Fail2Ban-Setup#pre-requisite). Current output: ``` $ docker-compose logs bitwarden | grep User bitwarden | [2020-11-20 10:54:52.147][error][ERROR] Username or password is incorrect. Try again. IP: XX.XX.XX.XX. Username: example@email.com. bitwarden | [2020-11-20 10:55:15.178][bitwarden_rs::api::identity][INFO] User example@email.com logged in successfully. IP: XX.XX.XX.XX ``` Expected output: ``` $ docker-compose logs bitwarden | grep User bitwarden | [2020-11-20 10:54:52.147][bitwarden_rs::api::identity][ERROR] Username or password is incorrect. Try again. IP: XX.XX.XX.XX. Username: example@email.com. bitwarden | [2020-11-20 10:55:15.178][bitwarden_rs::api::identity][INFO] User example@email.com logged in successfully. IP: XX.XX.XX.XX ``` ### My environment * Bitwarden_rs version: 1.17.0 * Install method: docker
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#868
No description provided.