Go to file
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
.phan phan: Update config to load ConfirmEdit 2024-05-05 11:02:07 +03:00
db_patches Drop some ancient schema changes 2023-12-22 02:07:48 +00:00
i18n Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
includes Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
maintenance maintenance: Migrate to IReadableDatabase::newSelectQueryBuilder 2024-04-29 22:15:35 +02:00
modules Fix path of CodeEditor modules 2024-05-01 12:48:25 -07:00
tests Add user_unnamed_ip variable 2024-05-23 07:19:48 -07:00
.eslintignore build: Update linters 2023-11-08 14:05:03 +00:00
.eslintrc.json build: Update linters 2022-03-17 22:19:08 +00:00
.gitignore Add config for Selenium and basic tests 2019-09-17 16:23:07 +00:00
.gitreview
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
.stylelintrc.json build: Update linters 2023-11-08 14:05:03 +00:00
AbuseFilter.alias.php build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:29:54 +00:00
composer.json Update minus-x to 1.1.3 2024-05-04 16:34:08 +00:00
COPYING
extension.json Fix Status combining MessageSpecifier and parameters array 2024-04-14 00:02:32 +00:00
Gruntfile.js build: Run stylelint for less file 2023-11-28 20:06:41 +01:00
package-lock.json build: Updating grunt-banana-checker to 0.12.0 2024-05-06 05:12:04 +00:00
package.json build: Updating grunt-banana-checker to 0.12.0 2024-05-06 05:12:04 +00:00