Skip to content

include client IPs in failed login logs - #6884

Open
crazy-max wants to merge 1 commit into
plausible:masterfrom
crazy-max:log-client-ip-login-failures
Open

crazy-max wants to merge 1 commit into
plausible:masterfrom
crazy-max:log-client-ip-login-failures

Conversation

@crazy-max

Copy link
Copy Markdown

Changes

Include the resolved client IP in failed login logs so security tools can detect and block repeated authentication failures. Existing messages identify the attempted account but omit the request's source address.

This covers password failures, 2FA verification and recovery-code failures, and login throttling, including SSO. The existing logging setting, message text, and HTTP responses are preserved.

Tests

  • Automated tests have been added

The focused tests pass in both Community Edition (8 tests) and Enterprise Edition (10 tests). Formatting checks also pass.

Changelog

  • Entry has been added to changelog

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

Security tools need client IP addresses alongside authentication failures
to detect and block repeated login attempts. Existing failure messages
identify the attempted account but omit the request's source address.

Append the resolved source IP to failed login logs for passwords, 2FA,
and SSO throttling. Preserve the existing logging setting, message text,
and HTTP responses.
@CLAassistant

CLAassistant commented Nov 14, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants