Page MenuHomePhabricator

MediaWiki should support routing to different shellbox instances
Closed, ResolvedPublic

Description

Currently MediaWiki has a single $wgShellboxUrl, which only allows routing to one Shellbox. But we want to be able to run multiple Shellboxes dependening upon use case for better isolation, so we need to configure multiple:

$wgShellboxUrls = [
'score' => '...',
'constraints' => '...'
];

Or if we want the secret key to be different across Shellboxes:

$wgShellboxes = [
'score' => [ 'url' => '...', 'key' => '...' ],
'constraints' => [ 'url' => '...', 'key' => '...' ],
];

And each caller of Shellbox will need to ask for their specifically named Shellbox.

Event Timeline

Suggestion: Have a default value. Can be null that triggers an error down the line.

Change 700325 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[mediawiki/core@master] Add support for multiple shellbox URLs through a mapping configuration

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

Change 700325 merged by jenkins-bot:

[mediawiki/core@master] Add support for multiple shellbox URLs through a mapping configuration

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