Page MenuHomePhabricator

Store client hint mapping rows for user account creations on loginwiki
Closed, ResolvedPublic2 Estimated Story Points

Description

CheckUser currently integrates with the CentralAuth extension such that the wiki specified in $wgCentralAuthLoginWiki has account creation logs in the CheckUser results for all accounts created on any wiki in the wikifarm.

This in effect creates a minimal Global CheckUser and is used on WMF projects to find accounts cross-wiki for LTAs (long term abusers).

Client Hints data should be collected and displayed for these events for the wiki specified in $wgCentralAuthLoginWiki so that Client Hints data can be used to compare accounts on that wiki.

Acceptance criteria
  • Account creations shown in the $wgCentralAuthLoginWiki wiki CheckUser results have Client Hints data specified.

Event Timeline

I think we can make use of copying the Client Hints data from the local wiki through a job that is queued once the user is created.

Change #1092313 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Make UserAgentClientHintsManager wiki aware for inserts

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

Change #1092314 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Add CopyClientHintsDataToCentralAuthAutoCreateWikisJob

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

Change #1092314 abandoned by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] [WIP] Add CopyClientHintsDataToCentralAuthAutoCreateWikisJob

Reason:

On further looking, this isn't fully necessary.

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

Change #1094067 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] [WIP] Store Client Hints data for autocreations

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

Change #1092313 abandoned by Dreamy Jazz:

[mediawiki/extensions/CheckUser@master] Make UserAgentClientHintsManager wiki aware for inserts

Reason:

Should no longer be needed.

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

Change #1094487 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Fix clienthints.js selenium tests

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

Change #1094505 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Set wgCheckUserLogLogins by default to true

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

Change #1094505 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Set wgCheckUserLogLogins by default to true

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

Change #1094487 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Fix clienthints.js selenium tests

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

Change #1094067 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Store Client Hints data for autocreations

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

dom_walden subscribed.

I can confirm we are adding rows to cu_useragent_clienthints and cu_useragent_clienthints_map after making an edit on the $wgCentralAuthLoginWiki wiki which created a temporary account. I confirmed that the uachm_reference_id corresponds to the correct cupe_id in cu_private_event.

Test environment: local docker CheckUser 2.5 (da1dd98) 07:21, 4 December 2024.