Page MenuHomePhabricator

CheckUser: Make user_unnamed_ip always a protected variable if installed
Closed, ResolvedPublic1 Estimated Story Points

Description

Summary

If CheckUser and AbuseFilter are installed, the user_unnamed_ip variable should always be protected and it should not be possible to undo this by changing site configuration.

Background

Acceptance criteria

  • Make CheckUser define user_unnamed_ip as always protected via the AbuseFilterProtectedVariables hook

Event Timeline

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

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

[mediawiki/extensions/CheckUser@master] CheckUser: Ensure user_unnamed_ip is always a protected variable

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

Change #1123714 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Ensure user_unnamed_ip is always a AbuseFilter protected variable

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

Would suggest a regression test for QA, checking that user_unnamed_ip can still only be used in protected filters.

Djackson-ctr subscribed.

QA is completed, and the new code has been implemented and is functioning as expected for the protected filter of user_unnamed_ip.