blob: 40eb3352c9224b1806a612d48c60220809454464 [file] [log] [blame] [view]
Adrià Vilanova Martínez413cb442021-09-06 00:30:45 +02001# Kill Switch
2The "Kill Switch" is a system which allows the extension maintainer and some
3authorized people to remotely disable a specific feature which is misbehaving
4to everyone.
5
6This folder contains the code that the extension uses to interact with the Kill
7Swtich server to determine whether a feature should be disabled or not.
8
9## Explanation
10The kill switch mechanism works as follows:
11
121. There's a dashboard available at https://twpt-dashboard.avm99963.com/. There,
13some authorized users can set some features to be disabled for everyone,
14according to some criteria (it might be specified that only some versions of the
15extension or some browsers are affected by this).
161. When a feature is set from the dashboard as force disabled (what we call
17"enable a kill switch"), an entry is added to the server's database.
181. Every 30 minutes, the extension queries the server behind the dashboard, to
19retrieve a list of force disabled features from the database.
201. The extension processes this list, and if any of the features in the list
21apply to the extension according to the linked criteria, it force disables
22those. If, on the contrary, a feature which was force disabled is no longer
23force disabled, the previous status is restored.