mediawiki-extensions-TitleB.../extension.json
Gergő Tisza 2b7633219b
Declare grant risk levels
createaccount is a core grant which by default isn't really
sensitive, but TitleBlacklist adds tboverride-account which
can be used for social engineering.

Using MediaWikiServices to change configuration is not great,
but it's the least bad option available today - other hooks run
too late, and the extension registry doesn't support extensions
overriding core values.

Bug: T290790
Depends-On: Ib7a195c167f82e686c4ede45388957f9988bf75d
Change-Id: I2d20190266e4094449b5857b88f962a444c2f9b5
2024-01-18 22:29:07 -08:00

127 lines
2.8 KiB
JSON

{
"name": "TitleBlacklist",
"version": "1.5.0",
"author": [
"Victor Vasiliev",
"Fran Rogers"
],
"url": "https://www.mediawiki.org/wiki/Extension:TitleBlacklist",
"descriptionmsg": "titleblacklist-desc",
"license-name": "GPL-2.0-or-later",
"type": "antispam",
"requires": {
"MediaWiki": ">= 1.42"
},
"GroupPermissions": {
"sysop": {
"tboverride": true,
"titleblacklistlog": true
}
},
"AvailableRights": [
"tboverride",
"tboverride-account",
"titleblacklistlog"
],
"LogTypes": [
"titleblacklist"
],
"LogRestrictions": {
"titleblacklist": "titleblacklistlog"
},
"LogActionsHandlers": {
"titleblacklist/*": "LogFormatter"
},
"GrantPermissions": {
"createaccount": {
"tboverride-account": true
},
"editprotected": {
"tboverride": true
},
"viewrestrictedlogs": {
"titleblacklistlog": true
}
},
"APIModules": {
"titleblacklist": "MediaWiki\\Extension\\TitleBlacklist\\Api\\ApiTitleBlacklist"
},
"MessagesDirs": {
"TitleBlacklist": [
"i18n",
"i18n/api"
]
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\TitleBlacklist\\": "includes/"
},
"ResourceModules": {
"mediawiki.api.titleblacklist": {
"scripts": "mediawiki.api.titleblacklist.js",
"dependencies": [
"mediawiki.api"
]
},
"ext.titleblacklist.visualEditor": {
"scripts": "ve-titleblacklist/ve.init.mw.TitleBlacklistSaveErrorHandler.js"
}
},
"attributes": {
"VisualEditor": {
"PluginModules": [
"ext.titleblacklist.visualEditor"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "TitleBlacklist/modules"
},
"callback": "MediaWiki\\Extension\\TitleBlacklist\\Hooks::onRegistration",
"Hooks": {
"getUserPermissionsErrorsExpensive": "TitleBlacklistHookHandler",
"TitleGetEditNotices": "TitleBlacklistHookHandler",
"MovePageCheckPermissions": "TitleBlacklistHookHandler",
"EditFilter": "TitleBlacklistHookHandler",
"PageSaveComplete": "TitleBlacklistHookHandler",
"ScribuntoExternalLibraries": "TitleBlacklistScribuntoHookHandler"
},
"HookHandlers": {
"TitleBlacklistHookHandler": {
"class": "MediaWiki\\Extension\\TitleBlacklist\\Hooks"
},
"TitleBlacklistScribuntoHookHandler": {
"class": "MediaWiki\\Extension\\TitleBlacklist\\ScribuntoHooks"
}
},
"config": {
"TitleBlacklistSources": {
"value": []
},
"TitleBlacklistUsernameSources": {
"value": "*"
},
"TitleBlacklistLogHits": {
"value": false
},
"TitleBlacklistCaching": {
"value": {
"warningchance": 100,
"expiry": 900,
"warningexpiry": 600
}
},
"TitleBlacklistBlockAutoAccountCreation": {
"value": true
}
},
"AuthManagerAutoConfig": {
"preauth": {
"TitleBlacklistPreAuthenticationProvider": {
"class": "MediaWiki\\Extension\\TitleBlacklist\\TitleBlacklistPreAuthenticationProvider"
}
}
},
"manifest_version": 2
}