Go to file
STran bf28dbce0e Allow variables to be restricted by user right
Some exposed variables (eg. `user_ip`) used in filters are sensitive
and need to only be available to restricted groups of users.

Back-end changes:
- Add `AbuseFilterProtectedVariables` which defines what variables are
  protected by the new right `abusefilter-access-protected-vars`
- Add the concept of a `protected` variable, the use of which will
  denote the entire filter as protected via a flag on `af_hidden`

New UX features:
- Display changes to the protected status of filters on history and diff
  pages
- Check for protected variables and the right to see them in filter
  validation and don't allow a filter to be saved if it uses a variable
  that the user doesn't have access to
- Check for the right to view protected variables before allowing access
  and edits to existing filters that use them

Bug: T364465
Bug: T363906
Change-Id: I828bbb4015e87040f69a8e10c7888273c4f24dd3
2024-06-04 06:54:53 -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 Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
includes Allow variables to be restricted by user right 2024-06-04 06:54:53 -07:00
maintenance Use SelectQueryBuilder for sub queries in migrateActorsAF.php 2024-05-21 16:52:07 +00:00
modules Fix path of CodeEditor modules 2024-05-01 12:48:25 -07:00
tests Allow variables to be restricted by user right 2024-06-04 06:54:53 -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 Allow variables to be restricted by user right 2024-06-04 06:54:53 -07: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.13.0 2024-05-17 01:36:32 +00:00
package.json build: Updating grunt-banana-checker to 0.13.0 2024-05-17 01:36:32 +00:00