Disable by default plugin installer
- There is no code review or any approval process to submit a plugin. - Anyone can submit a backdoor as plugin. - This is up to the Kanboard instance owner to validate if a plugin is legit.
This commit is contained in:
@@ -21,7 +21,7 @@ defined('CACHE_DIR') or define('CACHE_DIR', DATA_DIR.DIRECTORY_SEPARATOR.'cache'
|
|||||||
// Plugins settings
|
// Plugins settings
|
||||||
defined('PLUGINS_DIR') or define('PLUGINS_DIR', ROOT_DIR.DIRECTORY_SEPARATOR.'plugins');
|
defined('PLUGINS_DIR') or define('PLUGINS_DIR', ROOT_DIR.DIRECTORY_SEPARATOR.'plugins');
|
||||||
defined('PLUGIN_API_URL') or define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
|
defined('PLUGIN_API_URL') or define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
|
||||||
defined('PLUGIN_INSTALLER') or define('PLUGIN_INSTALLER', true);
|
defined('PLUGIN_INSTALLER') or define('PLUGIN_INSTALLER', false); // Disabled by default for security reason
|
||||||
|
|
||||||
// Enable/disable debug
|
// Enable/disable debug
|
||||||
defined('DEBUG') or define('DEBUG', strtolower(getenv('DEBUG')) === 'true');
|
defined('DEBUG') or define('DEBUG', strtolower(getenv('DEBUG')) === 'true');
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ define('PLUGINS_DIR', __DIR__.DIRECTORY_SEPARATOR.'plugins');
|
|||||||
// Plugins directory URL
|
// Plugins directory URL
|
||||||
define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
|
define('PLUGIN_API_URL', 'https://kanboard.org/plugins.json');
|
||||||
|
|
||||||
// Enable/Disable plugin installer
|
// Enable/Disable plugin installer (Disabled by default for security reason)
|
||||||
define('PLUGIN_INSTALLER', true);
|
define('PLUGIN_INSTALLER', false);
|
||||||
|
|
||||||
// Available cache drivers are "file" and "memory"
|
// Available cache drivers are "file" and "memory"
|
||||||
define('CACHE_DRIVER', 'memory');
|
define('CACHE_DRIVER', 'memory');
|
||||||
|
|||||||
Reference in New Issue
Block a user