Page MenuHomePhabricator

Login from new device: Ensure login-fail-new has IP and user agent data
Closed, ResolvedPublic

Description

Summary

The logging code in LoginNotify does not record IP and user agent for login-fail-new events.

Technical notes

  • We need to modify LoginNotify.php#sendNotice to include the IP and user agent.

Acceptance criteria

  • login-fail-new messages in Logstash have IP and user agent.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
kostajh renamed this task from Login from new device: Ensure log message is generated regardless of confirmed email status to Login from new device: Ensure login-fail-new has IP and user agent data.Mar 27 2025, 10:44 AM
kostajh updated the task description. (Show Details)

Change #1131667 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/LoginNotify@master] LoginNotify#sendNotice: Add IP and UA to log message

https://gerrit.wikimedia.org/r/1131667

Change #1131667 merged by jenkins-bot:

[mediawiki/extensions/LoginNotify@master] LoginNotify#sendNotice: Add IP and UA to log message

https://gerrit.wikimedia.org/r/1131667

Change #1131803 had a related patch set uploaded (by SBassett; author: Kosta Harlan):

[mediawiki/extensions/LoginNotify@wmf/1.44.0-wmf.22] LoginNotify#sendNotice: Add IP and UA to log message

https://gerrit.wikimedia.org/r/1131803

Change #1131803 merged by jenkins-bot:

[mediawiki/extensions/LoginNotify@wmf/1.44.0-wmf.22] LoginNotify#sendNotice: Add IP and UA to log message

https://gerrit.wikimedia.org/r/1131803

Mentioned in SAL (#wikimedia-operations) [2025-03-27T20:07:18Z] <sbassett@deploy1003> Started scap sync-world: Backport for [[gerrit:1131782|GlobalContributions: Add API query module (T390156)]], [[gerrit:1131803|LoginNotify#sendNotice: Add IP and UA to log message (T390141)]]

Mentioned in SAL (#wikimedia-operations) [2025-03-27T20:39:53Z] <sbassett@deploy1003> Started scap sync-world: Backport for [[gerrit:1131803|LoginNotify#sendNotice: Add IP and UA to log message (T390141)]], [[gerrit:1131782|GlobalContributions: Add API query module (T390156)]]

Change #1131813 had a related patch set uploaded (by Reedy; author: Kosta Harlan):

[mediawiki/extensions/LoginNotify@REL1_43] LoginNotify#sendNotice: Add IP and UA to log message

https://gerrit.wikimedia.org/r/1131813

Change #1131813 merged by jenkins-bot:

[mediawiki/extensions/LoginNotify@REL1_43] LoginNotify#sendNotice: Add IP and UA to log message

https://gerrit.wikimedia.org/r/1131813