Jump to content

Tool:Phab-ban

From Wikitech
Toolforge tools
Website https://phab-ban.toolforge.org/
Description Web interface for disabling Phabricator accounts
Keywords phabricator, python, admin
Author(s) BryanDavis
Maintainer(s) BryanDavis (View all)
Source code gitlab
License GNU General Public License 3.0 or later
Issues Open tasks · Report a bug
Admin log Tools.phab-ban/SAL

Phabricator Ban is a web interface that allows us to delegate the right to disable most Phabricator user accounts to more Wikimedia community members. The phab-ban system cannot be used to disable Phabricator user accounts with "admin" rights. It also cannot be used to re-enable any Phabricator user accounts.

Audit log

2024-11-11

2024-10-30

2024-10-25

2024-10-08

2024-10-01

Granting access

Users can be authorized to use the Phabricator Ban tool by being added to the members list of acl*userdisable in Phabricator itself. Existing list members and Phabricator admins have the ability to modify the group membership.

Usage guideline

Currently, there is no regulation whatsoever about the usage of this tool, but common sense should be applied. Examples of accounts that should be disabled includes...

  • Accounts which sole purpose is to troll
  • Spammers

Emergency disable

The tool can be rendered harmless by blocking the PhabBanBot user on Phabricator. Note: this can not be done via the tool itself.

Operation

This is a basic Python3 Flask service running via Kubernetes on Toolforge.

Start
webservice --backend=kubernetes python3.9 start
Stop
webservice stop