Page MenuHomePhabricator

enable bot passwords on otrswiki
Closed, ResolvedPublic

Description

Please enable bot password otrs-wiki.wikimedia.org.

Event Timeline

'wmgEnableBotPasswords' => [
	'default' => true,
	'private' => false,
	'fishbowl' => false,
	'nonglobal' => false,
	'foundationwiki' => true, # T205368
],

It seems it was explicitly disabled for private wikis (presumably at the time it was turned on). Might need some more digging as to why

Database table will also need creating locally on the wikis database...

I could imagine it was not enabled at private wikis because there are usually no bots running there. As things are growing and automation is generally a good idea, it should be enabled on all private wikis if there are no real reasons against.

I could imagine it was not enabled at private wikis because there are usually no bots running there. As things are growing and automation is generally a good idea, it should be enabled on all private wikis if there are no real reasons against.

I'd probably concur. It'll help with cases where there's 2FA and you don't want to be sharing passwords with tools etc

I've tagged Security-Team and we will talk about it at our triage meeting next week to see if there's any concerns with doing this, and to some extent, doing it more widely

chasemp triaged this task as Medium priority.Mar 2 2020, 4:19 PM
chasemp subscribed.

It really depends on the security practices of the bot. I believe the lack of infrastructure (administrative and otherwise) led to this setting. All assumption of privacy would be null if bots in say toolforge are holding bot passwords for accessing them.

That is of course a valid concern.
I cannot speak for others, but my intention is to lock the bot account by 2fa and use the bot password with strict IP limit, to get additional IP filter security.

Perhaps access to bot passwords could require a user right?

Perhaps access to bot passwords could require a user right?

In theory, yes. But it's not something MW does currently. So it would need some work for someone to add the userright, and wire it into MW into the correct places

Currently it's only a wiki level flag of $wgEnableBotPasswords.

Feel free to add a separate task requesting that as a feature :)

No, I don't want to wait for such feature.
I'd say as long as there is no 2fa requirement on these private wikis, anybody can technically share his password, so using bot passwords does not reduce security per se. But it can increase security, so I like to have it.

No, I don't want to wait for such feature.
I'd say as long as there is no 2fa requirement on these private wikis, anybody can technically share his password, so using bot passwords does not reduce security per se. But it can increase security, so I like to have it.

I'm inclined to agree, though that action would be a violation of the TOS I believe.

Can you outline where you are going to host the bot in this case and such? The best place to host such a thing would be in production alongside the data already, but if you could settle some peace of mind for us here and create some best practice prior art by outlining your intentions that would be welcome and helpful.

Perhaps I could, but definitely not in a public ticket.

Please advise what is needed to push this forward.

Perhaps I could, but definitely not in a public ticket.

(Wondering if we should access-restrict this task then?)

I think we should go ahead and enable it. As already mentioned above, it's already widely used at public wikis, and some private wikis might want to use bots.

@Krd If you want to share something non-public, you can go to https://phabricator.wikimedia.org/paste/, click Create paste, then Create privatre paste (WMF-NDA), which would allow you to create a paste available only to people with a valid NDA on file. I think that's enough for the purpose of sharing the details you was asked for.

As said, I can do that, but I don't think too much detail is required anyway.
We can use bots currently on private wikis with username and good passwords. If we had bot passwords, we could enable 2fa on the bot account and limit the bot password to the fixed IP of the private server the bot runs at. This will in any case highly improve security, with likely not any loss.
If you ask me, this is a nobrainer.

I note from T159519: Investigate security concerns on enabling OAuth or BotPasswords for stewardwiki that the Security-Team at one point did actually OK this.

A use case has come up needing/wanting it for officewiki. I think we needt o have a bit more of adiscussion about it as a team

Mentioned in SAL (#wikimedia-operations) [2020-06-18T15:37:02Z] <Reedy> creatd bot_passwords tables on officeiwki and otrs_wikiwiki T254925 T246489

Change 606454 had a related patch set uploaded (by Reedy; owner: Reedy):
[operations/mediawiki-config@master] Enable BotPasswords on officewiki and otrs_wikiwiki

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

Change 606454 merged by jenkins-bot:
[operations/mediawiki-config@master] Enable BotPasswords on officewiki and otrs_wikiwiki

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

Mentioned in SAL (#wikimedia-operations) [2020-06-23T18:24:42Z] <reedy@deploy1001> Synchronized wmf-config/InitialiseSettings.php: T254925 T246489 (duration: 01m 06s)

Looks good to me. Please also include checkuser.wikimedia.org and steward.wikimedia.org.

Reedy renamed this task from enable bot passwords otrs-wiki.wikimedia.org to enable bot passwords on various private wikis.Jun 24 2020, 5:53 PM
Urbanecm renamed this task from enable bot passwords on various private wikis to enable bot passwords on otrswiki.Jul 19 2020, 6:16 PM
Urbanecm closed this task as Resolved.

This one is resolved, I don't think it's a good idea to have a catchall task, because no one will know when it will be resolved :-).