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-03-12

2024-03-07

2024-03-06

  • 07:41 [[phab:p/... (more)

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