Page MenuHomePhabricator

Prevent global autoblocks on a configurable list of IP addresses
Closed, ResolvedPublic2 Estimated Story Points

Description

Similar to the local block-autoblock-exemptionlist for local blocks, it should be possible to prevent global autoblocks on a configurable list of IP addresses.

This list should be global and definable such that it can be modified on wiki without the need to modify site config.

Global autoblocks should also potentially respect the local wiki's autoblock exempt list, such that they are disabled on that wiki if listed at MediaWiki:block-autoblock-exemptionlist).

Event Timeline

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

[mediawiki/extensions/GlobalBlocking@master] Create GlobalBlockLocalStatusLookup::getLocalStatusInfo

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

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

[mediawiki/extensions/GlobalBlocking@master] Locally disable global autoblocks when IP exempt from local autoblocks

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

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

[mediawiki/core@master] Test AutoblockExemptionList

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

Change #1080605 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Create GlobalBlockLocalStatusLookup::getLocalStatusInfo

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

Change #1080701 merged by jenkins-bot:

[mediawiki/core@master] Test AutoblockExemptionList

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

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

[mediawiki/extensions/GlobalBlocking@master] Update description at Special:GlobalBlockList for global autoblocks

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

Dreamy_Jazz set the point value for this task to 2.Oct 16 2024, 8:23 PM

Change #1080636 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Locally disable global autoblocks when IP exempt from local autoblocks

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

Change #1080757 merged by jenkins-bot:

[mediawiki/extensions/GlobalBlocking@master] Update description at Special:GlobalBlockList for global autoblocks

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

Suggested QA steps:

  1. Create MediaWiki:globalblocking-globalautoblock-exemptionlist and add to the page the IP address you use to access the wiki after a * character (e.g. * 1.2.3.4). If you have wgGlobalBlockingCentralWiki set (such as on beta), then create this page on the central wiki (metawiki). Otherwise, create this page on the local wiki.
  2. Create a account
  3. Globally block the account created in step 2 with global autoblocks enabled
  4. While logged in to the account created in step 2, attempt to make an edit
  5. Verification step 1: Verify that no global autoblock is created due to step 4
  6. Delete MediaWiki:globalblocking-globalautoblock-exemptionlist
  7. While logged in to the account created in step 2, attempt to make an edit
  8. Verification step 2: Verify that a global autoblock is created due to step 7
  9. Verification step 3: While logged out, attempt to make an edit and verify that you are prevented from doing so due to the global autoblock
  10. Create MediaWiki:block-autoblock-exemptionlist on the local wiki (not the central wiki) with the same content as used in step 1. This will locally disable the global autoblock.
  11. Verification step 4: While logged out, attempt to make an edit and verify that you can do so.
Djackson-ctr subscribed.

QA has been completed (global autoblocks are locally disabled if the target IP address is listed in the MediaWiki:Block-autoblock-exemptionlist).
I greatly appreciated the QA Steps @Dreamy_Jazz, thank you sir.