# A "safe mode" to easily disable all third party plugins

**URL:** <https://meta.discourse.org/t/a-safe-mode-to-easily-disable-all-third-party-plugins/52647>\
**Category:** Feature\
**Tags:** rfc\
**Created:** [07.Ноябрь.2016 23:59:29 UTC](https://meta.discourse.org/t/a-safe-mode-to-easily-disable-all-third-party-plugins/52647 "2016-11-07T23:59:29Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [14.Ноябрь.2016 01:09:26 UTC](https://meta.discourse.org/t/a-safe-mode-to-easily-disable-all-third-party-plugins/52647/5 "2016-11-14T01:09:26Z")

</div>

I will be taking this, so here is my amended spec 👾

1. Distribute a file with Discourse that lists the names of all “officially supported” plugins.

2. Split out “plugin.js” from “application.js”, 2 assets will be split out:  
a: `plugin-safe.js` for all officially supported plugins  
b: `plugin-third-party.js` for unofficial plugins.

3. Add a new ENV var for booting in [safe mode](https://meta.discourse.org/t/53504?silent=true): `DISCOURSE_SAFE_MODE=1` if set then only supported plugins are installed

4. Add a new ENV var for booting in “super [safe mode](https://meta.discourse.org/t/53504?silent=true)”: `DISCOURSE_SAFE_MODE=NO-PLUGINS` if set no plugins at all are loaded

5. If booted in [safe mode](https://meta.discourse.org/t/53504?silent=true), display a banner to all staff (or something along those lines) showing that site is in [safe mode](https://meta.discourse.org/t/53504?silent=true). Banner will link to docker manager page where you can quit [safe mode](https://meta.discourse.org/t/53504?silent=true)

6. Amend [Docker Manager](https://github.com/discourse/docker_manager) to allow you to “reload Discourse in [Safe Mode](https://meta.discourse.org/t/53504?silent=true)” and “Exit [Safe Mode](https://meta.discourse.org/t/53504?silent=true)”

* * *

Points I am thinking about:

1. In [safe mode](https://meta.discourse.org/t/53504?silent=true) what do we do about “site customizations” which can potentially break stuff? Current thinking, allow you to specify “how safe” you want stuff when entering [safe mode](https://meta.discourse.org/t/53504?silent=true).

2. In [safe mode](https://meta.discourse.org/t/53504?silent=true) what do we do about “color” customizations etc which may, in very rare cases, break stuff? Current thinking, do nothing.

3. New structure will allow you to “preview in JavaScript [safe mode](https://meta.discourse.org/t/53504?silent=true)” without restarting, if all you want to do is check the JS components of a plugin are not broken. Should we expose this? Current thinking, maybe…

---

_[View the full topic](https://meta.discourse.org/t/a-safe-mode-to-easily-disable-all-third-party-plugins/52647)._
