Page MenuHomePhabricator

Automatically run maint. scripts to demote ineligible users on Wikimedia production
Closed, ResolvedPublic

Description

In T418579 and T425395, two maintenance scripts for demoting ineligible users were created. For now, they are only run manually when we expand the scope of 2FA enforcement. However, in a longer run, these scripts should be invoked autometically every now and then (e.g., once a week).

Acceptance criteria

  • demoteIneligibleUsers is automatically invoked every week
    • on all wikis (public, fishbowl and private)
    • uses log relaying to Meta-Wiki (args: --relay-log checkuser=metawiki --relay-log suppress=metawiki)
  • CentralAuth:demoteIneligibleCentralUsers is automatically invoked every week
    • only on Meta-Wiki

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1285315 had a related patch set uploaded (by Mszwarc; author: Mszwarc):

[operations/puppet@production] Periodic jobs: add demote_ineligible_users (and _central_ counterpart)

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

mszwarc changed the task status from Open to Stalled.May 8 2026, 9:29 AM

Proposed patch has been prepared, but has to wait for the maintenance script in CentralAuth to be merged and then rolled out to all wikis (actually, just to Meta-Wiki would be sufficient).

mszwarc changed the task status from Stalled to Open.Wed, May 27, 7:50 AM

The DemoteIneligibleCentralUsers script has been deployed to all wikis, so we can proceed with invoking it automatically

Change #1285315 merged by JHathaway:

[operations/puppet@production] Periodic jobs: add demote_ineligible_users (and _central_ counterpart)

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