Page MenuHomePhabricator

CLI interface needed for bot passwords
Open, Needs TriagePublic

Description

There should be some sort of CLI for managing bot passwords so that testing scenarios (I'm working on git-mediawiki) can use it easily.

Something like:

$ php maintenance/botPasswords.php --create=mabs --owner=MarkAHershberger
Creating MarkAHershberger@mabs; all rights; unlimited access
Password is: TWFya0FIZXJzaGJlcmdlckBtYWJz
$ php maintenance/botPasswords.php --create=MarkAHershberger@mabs --rights=edit,createuser --cidr=1.1.1.1/32
Creating MarkAHershberger@mabs; rights: edit and createuser; CIDR access: 1.1.1.1/32
Password is: TWFya0FIZXJzaGJlcmdlckBtYWJz
$ php maintenance/botPasswords.php --list --owner=MarkAHershberger
MarkAHershberger@mabs; rights: edit and createuser; CIDR access: 1.1.1.1/32
$ php maintenance/botPasswords.php --delete=mabs --owner=MarkAHershberger
MarkAHershberger@mabs deleted.
$ php maintenance/botPasswords.php --delete=MarkAHershberger@mabs
MarkAHershberger@mabs deleted.
$ php maintenance/botPasswords.php --create=BogusUser@mabs --rights=edit,createuser --cidr=1.1.1.1/32
No such user: BogusUser
$ php maintenance/botPasswords.php --create=MarkAHershberger@mabs --rights=bogusright,createuser --cidr=1.1.1.1/32
No such right: bogusright
$ php maintenance/botPasswords.php --create=MarkAHershberger@mabs --rights=bogusright,createuser --cidr=1.1.1.1/77
Couldn't parse CIDR: 1.1.1.1/77

Event Timeline

Removing task assignee due to inactivity, as this open task has been assigned for more than two years. See the email sent to the task assignee on February 06th 2022 (and T295729).

Please assign this task to yourself again if you still realistically [plan to] work on this task - it would be welcome.

If this task has been resolved in the meantime, or should not be worked on ("declined"), please update its task status via "Add Action… 🡒 Change Status".

Also see https://www.mediawiki.org/wiki/Bug_management/Assignee_cleanup for tips how to best manage your individual work in Phabricator.