mediawiki-extensions-AbuseF.../includes
STran fe0b1cb9e9 Add user_unnamed_ip variable
After temporary accounts are enabled, filters that rely on an ip
in the `user_name` will fail (eg. `ip_in_range` and `ip_in_ranges`).
To keep these filters working:

- Expose the IP through another variable, `user_unnamed_ip`, that can be
  used instead of `user_name`.
- The variable is scoped to only reveal the IPs of temporary accounts
  and un-logged in users.
- Wikis that don't have temporary accounts enabled will be able to see
  this variable but it won't provide information that `user_name`
  wasn't already providing
- Introduce the concept of transforming variable values before writing
  to the blob store and after retrieval, as IPs need to be deleted from
  the logs eventually and can't be stored as-is in the amend-only blob
  store

Bug: T357772
Change-Id: I8c11e06ccb9e78b9a991e033fe43f5dded8f7bb2
2024-05-23 07:19:48 -07:00
..
Api Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
ChangeTags Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-30 20:45:51 +02:00
Consequences Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-30 20:45:51 +02:00
EditBox Automatically add operators to description messages 2024-05-04 07:08:33 +00:00
Filter Replace BadMethodCallException with LogicException 2023-11-16 19:10:50 +00:00
Hooks Remove custom API error code and data for blocked domains 2024-05-03 16:58:37 +02:00
LogFormatter logging: Inject services into AbuseLogHitFormatter 2024-03-29 21:53:34 +01:00
Pager Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
Parser Use modern str_starts_with() and [ ... ] syntax 2024-04-11 14:07:43 +02:00
Special Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
VariableGenerator Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
Variables Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
View Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
Watcher Migrate to IDatabase::newUpdateQueryBuilder 2024-04-15 23:07:44 +02:00
AbuseFilter.php Use actor table in AbuseFilter 2023-03-22 14:01:29 +01:00
AbuseFilterActorMigration.php Use namespaced MediaWiki\User\ActorMigrationBase 2023-08-20 01:08:09 +02:00
AbuseFilterChangesList.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterPermissionManager.php AbuseFilterPermissionManager: Add sitewide block check 2022-10-21 17:34:01 +00:00
AbuseFilterPreAuthenticationProvider.php Use namespaced classes 2023-12-10 23:03:12 +01:00
AbuseFilterServices.php BlockedDomains: Move filtering logic to a dedicated class 2023-08-06 16:27:23 +02:00
AbuseLogger.php Migrate to IDatabase::newInsertQueryBuilder/newDeleteQueryBuilder 2024-04-02 21:15:40 +02:00
AbuseLoggerFactory.php Use namespaced classes 2023-12-10 23:03:12 +01:00
ActionSpecifier.php Use ActionSpecifier to load the IP address 2022-12-17 22:52:24 +01:00
BlockAutopromoteStore.php Use namespaced classes 2023-12-10 23:03:12 +01:00
BlockedDomainFilter.php Fix Status combining MessageSpecifier and parameters array 2024-04-14 00:02:32 +00:00
BlockedDomainStorage.php Remove indirect calls to IDBAccessObject::READ_* constants 2024-01-26 09:25:35 -05:00
CentralDBManager.php Fix various typos and documentation issues 2023-09-04 12:55:17 +02:00
CentralDBNotAvailableException.php
EchoNotifier.php Use namespaced Title 2023-08-19 19:49:36 +02:00
EditRevUpdater.php Migrate to IDatabase::newUpdateQueryBuilder 2024-04-15 23:07:44 +02:00
EditStashCache.php Add new variable for last edit time 2024-04-10 23:12:45 +00:00
EmergencyCache.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterCompare.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
FilterImporter.php maintenance,includes: Clean up file headers 2022-09-29 17:56:49 +01:00
FilterLookup.php Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-30 20:45:51 +02:00
FilterProfiler.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
FilterRunner.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterRunnerFactory.php Use namespaced classes 2023-12-10 23:03:12 +01:00
FilterStore.php Migrate to IDatabase::newUpdateQueryBuilder 2024-04-15 23:07:44 +02:00
FilterUser.php Don't attempt to steal or create the FilterUser in CheckUserHandler 2024-01-31 19:32:52 +00:00
FilterValidator.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
GlobalNameUtils.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
InvalidImportDataException.php Adjust code coverage 2020-11-19 22:40:26 +00:00
KeywordsManager.php Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
RunnerData.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
ServiceWiring.php tests: Remove redundant wgMainCacheType=hash 2024-03-29 15:37:58 -07:00
SpecsFormatter.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
TableDiffFormatterFullContext.php Use the new Wikimedia\Diff namespace 2023-06-29 11:56:13 +10:00
TextExtractor.php Remove bits of unused code across the codebase 2023-06-14 19:41:00 +00:00
ThrottleFilterPresentationModel.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00