Modules
Modules are optional features, such as appointment booking or a shop, that an admin switches on and off on the Modules screen without a new deploy. SHADE itself ships none: an admin installs a trusted module as a signed server package, or an untrusted one as a sandbox package. Switching a module off stops it everywhere but keeps its data, so switching it on again brings everything back. Only an explicit Uninstall deletes data, and it keeps a backup first.
This page covers the Modules screen from the admin's point of view. Admins can also add modules of their own, which run in a sandbox: see Untrusted modules. How to write a module is in the developer guide, Modules.
What users can do
Admins:
- See every installed module with its version, description, status and trust, and the instance's trust: the keys it trusts, whether approvals are on, whether untrusted modules are allowed, and how many modules of each kind run.
- Fill in a module's Settings; secret ones, such as API keys, are stored encrypted and never shown again.
- Switch a module on, once its settings are complete, the services it needs are set up, and the modules it needs are on; switch it off through a guided dialog.
- Export the data of a module that is off, Uninstall it (after a backup), and download or delete those backups.
- Install, update or remove a trusted module: a server package signed with a key this instance trusts, such as SHADE's own modules and those made for the client. Then Restart the API, so the change takes effect. Up to five packages can be installed at once, under one restart.
- Stage a module's update made for a later SHADE: it switches in when SHADE starts on a version it works with.
- Go back to the version an update replaced, or forward again, while the module's data still fits it.
- On a new instance, answer what the site is for and install the modules it preselects, change the selection, or skip it, where the person who runs the instance added a module catalogue. See Setting up a new instance.
- Approve a server package nobody signed, discard one waiting for approval, or revoke an approval, where the person who runs the instance switched approvals on. See Approving a server package.
Editors and AI users cannot see or change modules. Once a module is on, editors use what it adds (its admin pages and collections) as far as the module's own permissions allow.
Who may do it
| Action | Permission | Roles |
|---|---|---|
| See the Modules screen, the instance's trust and the server packages | packages.read | admin |
| Switch on or off, change settings, export, uninstall, download and delete backups | packages.manage | admin |
| Install, update or remove a package, restart | packages.manage | admin |
| Choose modules on a new instance, or skip that step | packages.manage | admin |
| Upload a package for approval, see its checks, discard it, revoke an approval (approvals on) | packages.manage | admin |
| Approve a package (approvals on) | packages.manage, and signing in again with the password and two-factor or a passkey | admin |
| Know which modules are on (the admin hides the rest) | signed in | admin, editor, ai |
| Use a module's own features | the module's actions (e.g. appointments.read) | admin; editors per the module's grants |
| See a module's dashboard cards and panels in the entry editor | what each one needs | per the module; admins always |
| See and change a module's section of Settings | packages.manage | admin, whatever the module's own actions |
- Managing modules is never available to AI assistants.
- While a module is off, its actions are refused for everyone, admins included.
- While a module is off, the work it queued waits and runs once it is on again; nothing is dropped.
In the admin

Trust
Every module is trusted or untrusted, and SHADE decides which; a module never does. A trusted module runs inside SHADE: a server package signed with a key this instance trusts, or approved by an admin where approvals are on. An untrusted module runs in the sandbox: a sandbox package, whoever signed it. The Modules screen shows both:
- The Trust card, at the top of the screen. It starts in plain words: Trusted modules run with full access to this setup. Untrusted modules run in a sandbox and can only do what you agreed to when installing them. Then what runs (Running now: 3 trusted, 1 untrusted.) and whether untrusted modules are allowed (Untrusted modules are not allowed on this setup. An admin can allow them below., the switch Allow untrusted modules).
- Technical details, closed until opened, are for checking who signed a module, or why a module is not trusted:
- Trusted keys: each key this instance trusts by its name and a short fingerprint, never the key itself; No trusted keys: only untrusted modules can be installed. when there are none. The person who runs the instance sets them; they can't be changed in the admin.
- Approvals: On or Off, as the person who runs the instance set it; with Off, Only server packages signed with a trusted key run. It can't be changed in the admin.
- Approved packages: while approvals are on, each installed package an admin approved, with its version, who approved it and when (approve-probe 0.0.2, approved by Ann on 23 Oct 2026) and its package's hash.
- Development folders: Loaded or None.
- A trust badge on each module's card: Trusted (green; blue for a module loaded from a developer's folder;
orange for an approved one) or Untrusted (grey). Tapping or clicking it opens one sentence on what it means:
- This module runs with full access to this setup., with Signed by rg-digital.;
- This module runs in a sandbox and can only do what you agreed to when installing it., with Signed by … when a trusted key signed its sandbox package (it stays untrusted);
- for a developer's folder: … loaded from a folder on a developer's computer.; for an approved one: … because an admin approved it., with Approved by {name} on {date}. (its package's hash is in the technical details).
A package that says of itself that it is trusted is refused, signed or not.
Trusted modules
A panel above the untrusted modules on the Modules screen, Trusted modules, for server packages:
- Install a server package opens a file picker (
.shade-module.jsonfiles up to 10 MB each, at most five at once). The files are checked first; a problem shows as a notice (This is not a SHADE server package, with the reason) and nothing is stored. With several files, the install screen comes once per package (Package 1 of 3), each agreed to with Agree and go on, and the last installs them all together, or none if one fails. A module that builds on another may come in the same upload as that module. The button is off when the instance trusts no keys, with a line saying so. - The install screen, Install {name}? or Update {name}? (with the version installed now). It is the same screen for a server package, an approval (Approve {name}) and an untrusted module, in the same order: the version and description, who vouches for it (Signed by {key}, a key this setup trusts; for an approval, that you do; for an untrusted module, its signature or that nobody checked its code), whether it replaces the module of the same name loaded from its own folder, a red notice This module will be trusted (it runs inside SHADE and can read and change everything) for a trusted module, and that it runs after the next restart.
- What it may do (Capabilities). A line at the top says whether it is trusted (beyond what it
declares it could read and change everything) or untrusted (it gets only what it declares). Then each capability in
plain words, with its lines and what it keeps, for example:
- Routes on its own addresses: for anyone on the internet, for signed-in users, or in the admin, with each route
(
GET /wishlist (public),GET /host/appointments (account: bookings.read)); - Users: it sees which user is signed in on its routes for users, gives account roles, and keeps data that belongs to
accounts: one line per role, place, ability and role it gives (
role host,role host per locations,role host: bookings.read,role booking-manager can give host). You give the roles on the Users screen (Account roles); - Keeps personal data, which people can ask to see and have erased;
- Sends email through this site's email provider, Connects to these internet addresses, over https;
- Lets the site or the admin load from these outside addresses;
- Does work in the background on its own, on a schedule;
- Shares these collections with modules that build on it: those modules may then be granted them, and their own consent says so;
- Shows in these places of the admin, for information.
An optional capability has its own panel with a switch, saying Allow and the capability's name, and whether it is Allowed or Not allowed: the module works without it, and it stays off unless you switch it on (you can change it later on its card). A capability this module may not have here is marked Skipped, with why; one it requires and may not have stops the install, with one sentence saying why (readme-cards requires the process capability, which needs a trusted module), and Install stays off. - Routes on its own addresses: for anyone on the internet, for signed-in users, or in the admin, with each route
(
- What it does on its own: Acts on its own, in its background work, its data sources and its
routes for visitors and for anyone, and may then … each thing the module may do in SHADE's content when nobody is
signed in, in plain words with its name, such as Read Posts, drafts included (
collections.website-posts.read) or Change media in the library: replace and crop its files, and edit alt text, focal point and name (media.update). A module may do exactly these on its own, nothing else; it can never be given what stays with admins (users, roles, tokens, settings, the theme, modules, the audit and error logs, rebuilds), the forms and their visitors' submissions, deleting media, nor another module's collections. It may be given Upload images, PDF files and fonts to the media library, Publish and unpublish the site's pages: this changes what visitors see and starts a new build of the site and Delete the site's pages for good, with their earlier versions. When an editor uses the module's screens, it does only what that editor may. - Builds on other modules, for a module made on top of another: each module it needs, with the versions it works with and the one installed (shelf ^1.0.0 (installed: 1.2.0)), and the collections of that module it uses (Uses these collections it shares: …); each such grant above says whose collection it is (Read Shelf items, drafts included (shared by the shelf module)). A module whose required module isn't installed, or is of a version it doesn't work with, can't be installed (reader requires shelf ^1.0.0: install shelf first); nor can an update of a module that another installed module doesn't work with.
- For an update, This version asks for more than {version} when it does, with each new item marked New;
taking something away, or new places in the admin, asks nothing. Below the description, What changed since
{version}: the module's own notes for each version after the installed one, newest first, when its package has
them (from the module's
CHANGELOG.md). Install stays off until you type the module's name, which agrees to trusting it and to that list too (an approval asks the same; an untrusted module, which stays in the sandbox, is confirmed with a checkbox instead): SHADE installs a version only with consent to everything it newly asks for, and never runs a package whose code needs more than its signed capabilities say (it is left out at start, with the reason in the list below). - The list: each package with its version, Signed by {key} (or Approved by {name} on {date}, with Approval revoked once it is), and Running or After a restart, with a remove button (refused while a module that is on needs it). A package left out at start is Not running, with why in plain words (not signed with a trusted key or changed after signing, an approval that no longer holds, made for another SHADE version, using modules SHADE doesn't share, needing more than its signed capabilities, a module it builds on missing, of a version it doesn't work with, left out itself or no longer sharing what it uses, its file naming other modules than its code, code that fails to load, or one of its background tasks that must be done first) and the technical details. A restart would leave it out again, so it asks for none: install a new build of it, or remove it.
- A staged update. A signed package that works only with a later SHADE than the one running is staged instead of refused, if a version of the module is installed: its install screen says Waits for SHADE {range}, and its row says Staged: {version}, switches in with SHADE {range}. The installed version keeps running. When SHADE is updated to a version the package works with, it switches in on its own at the start, before the modules' migrations run. If it no longer checks out by then (its key no longer trusted, or what it was agreed to no longer fits), it is dropped and the installed version keeps running; the error log says why. Installing, going back to or removing the module drops its staged update. The update preview counts staged updates as part of the SHADE they wait for.
- Go back to {version}. After an update, the version it replaced is kept, and the row has a Go back to {version} button (after going back, Go forward to {version}). It runs after the next restart. When the module's permissions can be put back as they were, a short question asks to confirm; otherwise its install screen is shown again. The button is off, with the reason on it, when the kept version can't run on the data as it is now: its key is no longer trusted or its approval no longer holds, a module it needs is missing, a migration of the newer version changed the module's tables, or one of its background tasks reshaped stored data since the update.
- While changes wait (an install, update or removal not running yet), a notice Changes to trusted modules are waiting for a restart with Restart now. On a production instance the API restarts within a few seconds and the website stays up. A window follows the restart (stopping, starting, ready) and reloads the editor by itself when SHADE answers again; if it does not come back within two minutes, the window says so and links to Errors. On a development setup it says to restart SHADE by hand.
- A server package then appears in the list of modules below like any module: switched off at first, with its settings, switch and the rest. Its screens join the sidebar in the editor's language, for everyone with the actions they need; what it adds to the website reaches the site with the next publish.
Setting up a new instance
The person who runs the instance may add a module catalogue to it: signed module packages, with a list of what a site may be for. While no module is installed, an admin who opens the dashboard is taken to Set up your site.
- What the site is for: content, a shop, bookings or what the catalogue offers. Each choice ticks the modules it needs; some modules are offered whatever you choose.
- Modules to install: tick or untick any of them. Each says how it would arrive: signed with a key the instance trusts, waiting for approval, or as an untrusted module in the sandbox.
- Install chosen modules shows each module's install screen in turn, the same screen an upload on the Modules screen shows, with what it can do. A module another one needs comes first. Close the screen to leave a module out. A module no trusted key signed goes to approval where approvals are on; otherwise it is refused, as its upload would be.
- What happened lists each module: installed, waiting for approval, left out, or not installed, with the reason. Installed modules start after a restart, from the Modules screen, switched off until you switch them on.
- Skip goes to the dashboard. Skipped or gone through, the step doesn't ask again; modules are added on the Modules screen from then on.
Approving a server package
Where the person who runs the instance switched approvals on (see Deployment), an admin can trust a server package that no key the instance trusts signed, for example a module a developer built for this client without signing it. Approving makes it trusted: it runs inside SHADE and can read and change everything, as a signed one can. The checks SHADE shows catch mistakes and show what the code says it does; they cannot stop code that sets out to do more. Approve only what you would sign. With approvals off, none of this shows, and an unsigned package is refused when installed.
The Approvals panel on the Modules screen, step by step:
- Upload a server package (a
.shade-module.jsonfile up to 10 MB). It is checked as for installing (a server package, made for this SHADE version, using only what SHADE shares, not claiming to be trusted) and waits: approve-probe 0.0.2 is waiting for approval. Nothing in it runs, and what is installed doesn't change. A package a trusted key signed is installed under Trusted modules instead; a sandbox package is always untrusted and is installed under Untrusted modules. Uploading another version of the same module replaces the one waiting. - Waiting for approval lists each package with its version, who uploaded it and when, how many findings its checks have, and its hash (a fingerprint of the file: the approval is for exactly that file). Review opens it; the bin discards it.
- The review starts with the warning Runs inside SHADE and can do anything SHADE's process can: it can read and change everything. An admin with neither two-factor nor a passkey sees Set up two-factor or a passkey on your account page before you approve a module., with a link to the account page, and nothing else is asked.
- The checks, worked out from the file alone:
- the modules it imports, with risky ones marked (
node:child_process,node:fs,node:net,node:http…); - what it says it does (its capabilities, what it may do on its own, where it shows in the admin); every start checks its code against this, and leaves it out when the code does more;
- known vulnerabilities, as of the date of the list that came with this SHADE version: the packages bundled into it that are on that list, or Unknown when the package doesn't say what it bundles. No outside service is asked;
- the internet addresses it declares, and any its code names that it doesn't;
- whether it imports test code, reads the server's settings, or has admin styles reaching outside its own screens.
Each finding has a box: tick each one to say you have read it. - the modules it imports, with risky ones marked (
- The consent, as for installing: what it may do, an optional capability with a switch.
- Sign in again: your password, and a code from your authenticator app (or a backup code), or your passkey (Use a passkey instead when you have both). The password alone is never enough. Five tries in a quarter hour, then wait; each wrong try is in the audit log.
- Type its name and press Approve. approve-probe is approved. It runs after a restart. Every admin gets the plugins security alert by email, and the audit log has packages.approve with the hash and the findings.
- Restart under Trusted modules, as for any install: the package runs after it. In the list it says Approved by {name} on {date} instead of Signed by.
A new version, or any change to the file, is another hash: it waits for approval again, and the approved version keeps running until the new one is approved. Revoke (under Approved packages in the panel) asks first, then switches the module off at once, stops its background work, keeps it from being switched on again, and leaves it out at the next start (Approval revoked); the audit log has packages.revoke and every admin gets the alert. To run it again, an admin approves it again. If approvals are switched off, approved packages stop running at the next start, saying why.
The Modules screen
Sidebar entry Modules (admin group). A short intro ("Modules add features to the site and the admin. Switching one off stops it everywhere; its data is kept.") and one card per module, showing:
- The title and description (in Dutch and English) and the version.
- Its trust badge (see Trust).
- A status badge:
Badge Meaning On The module is running. Off, data kept Off, and it still holds data. Off Off, nothing stored (not shown next to Needs setup). Needs setup Off, and a required setting is empty or a service it needs is not set up. Shown next to Off, data kept too, so it is clear why the switch is disabled. - Set up first: with links to the services that are missing (for example Email).
- Needs: … (modules it requires) and Needed by: … (modules that are on and require it).
- Capabilities, folded: what the module may do, one row per capability with its lines and what it keeps, Required or Optional, and Active or Skipped with why (Switched off by an admin, Needs a trusted module, This SHADE does not offer it yet, Needs accounts switched on). Admins switch an optional capability on or off here; switching one on asks nothing more, since it was on the consent already. What the module does with a capability that is off is refused (its routes answer not found while optional routes are off), and the refusal is counted for the module.
- Processes, for a trusted module that keeps work running in the background, such as a
connection to a chat service: a table of its processes, refreshed every 10 seconds while the page is open. Each row
shows the process, whether it runs once (One worker) or on Every worker, the worker, its state (Running,
Starting, Waiting to restart, Failed, Stopped), how often it restarted, and its last error with when it
happened. A process another worker runs says so (Waiting:
runs it ). A process that keeps crashing waits longer between starts (1 second, doubling to 5 minutes) and is marked Failed after its maximum restarts (10 unless the module says otherwise); each crash is also in the error log. Admins have a Restart button: it starts the process again everywhere it runs, a failed one with its restarts back at 0, within seconds, and the restart is in the audit log. Switching the module off stops its processes; switching it on starts them; an update starts them again after the restart it needs. Untrusted modules have none. - Health, for a module that is on: Healthy, or Needs attention; the info icon says
what SHADE checks. SHADE measures this itself, for trusted and untrusted modules alike, so a module cannot say it is
fine when it is not. Each problem says what happened, that other parts may still work, and what to do:
- background work that stopped for good: use Restart in the processes list, and contact the module's developer if it stops again; background work that keeps stopping: SHADE restarts it by itself;
- a task the module runs at set times that failed the last time: it tries again at its next time; Open Errors shows what went wrong;
- 10 or more errors in the last two hours, with a link to the error log;
- webhook events of the module that did not get through after six tries: see why and send them again under Open Webhooks (Webhooks).
A module may also have a check of its own, for what only it knows, such as an expired key at a provider. SHADE runs it every 5 minutes and gives it 10 seconds: no answer in time, or a check that fails, counts as Needs attention. Its message shows below (The module says: …), with when it was last checked. The card refreshes every 10 seconds while the page is open. A module that needs attention for 10 minutes raises the A module needs attention security alert. - Above the modules, a card Modules that need attention appears while SHADE has paused a switchable module or a module it needs keeps failing, with what is failing and a link to resume it under Settings → Modules (Site settings). It shows nothing while every module is fine.
- Beside it, a card Outside services SHADE stopped calling appears while SHADE is not calling an outside service
because it kept failing (decision 0018 point 13): a payment provider, email, media storage, backups, a webhook or build hook
address, error reporting, or a host a module calls. Each line says who calls it (Payments, Module shop), the host,
since when, the next try and the last failure (a status such as
503, ortimeout; never an address's path or an answer). SHADE tries again by itself, 30 seconds after it stopped and then at most every 5 minutes; Try now (admins: the permission to switch modules) lets the next call through at once, from every container, and is in the audit log. Work for the service waits meanwhile and is not lost. A module's own line shows on its card too, and does not make it Needs attention. A service that stays stopped for 10 minutes raises the An outside service keeps failing security alert. - Buttons: Settings (when the module has settings), and for a module that is off and holds data, Export data and Uninstall.
- A switch, "
on" . It is disabled while the module needs setup (to switch on) or while another module that is on needs it (to switch off).
Below the cards, a Backups section lists the backups made by uninstalls ("
After a switch, the sidebar entries and collections of the module appear or disappear at once.
Where modules appear
A trusted module can appear in more places than its own pages, only while it is on:
- Dashboard: cards below the pages, each shown to the editors who may see it (a module can make a card for admins only, or for everyone who reads the site).
- Entry editor: a panel beside the form of the collections the module names (core's or its own). A panel reads the entry; when it changes something, it does so as the editor, with the editor's own rights, and the editor shows the entry again.
- Settings: its sections on the module's settings page (Settings → Modules → the module), below its settings form, for admins only: configuring a module is an admin's job, whatever else the module lets editors do.
- Sidebar: its screens in the section the module names, or, when it names none, under the module's own name (or a group it names) in the More row after the sections; an entry may also stand in the settings area's Modules group instead.
When one of these fails, a short notice ("
These run without anyone opening the module's pages, so installing or updating a package lists where it shows, under Where it shows in the admin (dashboard cards, panels beside which collections, sections of Settings), marking what an update adds. It is information, not something to agree to: these parts work with the editor's own rights, so they reach nothing new. SHADE does not start a package that shows in more places than its list says. A module's styling stays inside its own parts: it never changes SHADE's own screens.
Settings
Settings opens the module's settings page, "
- A setting that was never saved shows its default (a booking reminder's 24 hours, say), the value the module uses, never an empty field.
- Secret settings are password inputs. When one is stored, the field shows dots and the help "Saved. Type a new value to replace it."; typing replaces it, Remove clears it ("Will be removed when you save."), leaving it empty keeps it. The stored value never reaches the browser.
- Settings may be incomplete while the module is off (it then shows Needs setup). While it is on, a required setting cannot be emptied.
- The form saves every setting. When another admin saved the module's settings (or switched it) after the page was loaded, the save is refused and nothing is lost: the form shows "Someone else changed this meanwhile" with Reload, which loads it as it is now (what was changed in the form goes). The same holds for an untrusted module's admin pages described with fields.
Switching on
Flipping the switch on is refused when:
- a service one of its required capabilities needs is not set up (email, or accounts on the Users screen; see Email);
- a required setting is empty;
- a module it needs is not on.
On success the toast says "
Switching off: the guided turn-off
Flipping the switch off opens the dialog "Switch
- Impact report. What the module affects:
- its collections and their entry counts ("Its items disappear from the site");
- modules that are on and need it ("Switch these off first: …", by their titles);
- how much it stores ("Its data is kept", "
records stay in the database"); - open business the module itself reports, such as appointments still to come. Something that blocks is shown in red and stops the turn-off; a warning is shown as a warning. A check of the module's that fails to run counts as blocking.
- Redirects for item pages (when its collections have public item pages, e.g. products): "Send visitors of
its
pages there instead", prefilled with /(decided: a redirect home is better for visitors and search engines than a not-found page; the help text says so). Each item page, in every language, becomes a temporary redirect to that path while the module is off; empty means no redirects. See Redirects. - Export (when it holds data): Export data downloads a JSON file; the audit entry records that it was used.
- Switch off. Disabled while the report is loading or something blocks. Nothing is typed: its data is kept, so only Uninstall asks for the name. The module stops, redirects are created, the site rebuilds, and an audit entry records the choices.
- Afterwards the card shows Off, data kept with Export data, Uninstall and the switch to turn it on again.
Uninstall
Uninstall (only for a module that is off and holds data) opens "Uninstall appointments) is typed. Then:
- a backup is kept: its settings without secrets, all its stored data, every entry of its collections, and its opening hours and holds;
- its data is deleted (switched on later, it starts fresh): its collections' entries with their versions and translations, its opening hours and holds, and its settings and secrets;
Backups stay until an admin deletes them. They may contain personal data (form messages, bookings, orders).
On the website
What a module shows on the site depends on the module; see the list below. Switching affects the site as follows:
- Off: its addresses for visitors and users answer not found; what it gave to pages disappears, so a page repeating its items shows none; its collections' item pages are left out of the build (and redirected if chosen); what other modules tell it, such as a payment's status, waits until it is on again.
- The site rebuilds after a switch when the module adds anything to the site.
The official modules
SHADE ships with no modules: an instance has the packages an admin installed. The official modules are free and
public under the Apache License 2.0, and any host can install them. Each comes as a signed package; an instance trusts
the official public key when its operator adds it to SHADE_TRUSTED_MODULE_KEYS. Anyone may instead build a module from
its source and sign it with a key of their own, or an admin approves the package.
The official public key is published with 0.1.0.
| Module (name) | What it brings | Needs | Page |
|---|---|---|---|
Appointments (appointments) | Visitors book a free time on the site; opening hours and bookings in the admin. Blocks switching off with appointments in the next 24 hours, warns about later ones. | Appointments | |
Payments (payments) | Mollie's hosted checkout for the modules that take money: starting, cancelling and refunding payments for them, the Payments screen, the security alert on forged payment notices. Its Mollie key is a secret setting. | — | Payments |
Dutch services (nl) | PDOK address lookup (postcode and house number fill in street and town) and KvK company lookup (name or number fill in a company's name and address), each off until switched on. Its KvK key is a secret setting. | — | Dutch services |
Shop (commerce) | Products and categories (collections, with product item pages), a cart and hosted checkout, Orders and stock, releasing expired stock reservations by itself. Warns about unpaid and unshipped orders when switched off. | payments (module), email | Shop |
Website (website) | The site's pages and posts in the visual editor, the header and footer, the theme, styles and components, redirects and builds. Its build hook address is a secret setting. | — | Website |
Analytics (analytics) | Visits counted without cookies, and a report in the admin. | — | Analytics |
Editorial (editorial) | Scheduled publish, review requests, releases, out-of-date translations and comment threads on entries, with the Reviews and Releases screens. | — | Editorial |
Error forwarding (error-forwarding) | Sends the errors SHADE stores to a GlitchTip or Sentry you choose, with rules for which go where. Its DSNs are secret settings. | — | Error forwarding |
Rules and limits
Server packages:
- Only a server package signed with a key this instance trusts, or approved by an admin, installs; see Trust. Otherwise a module can only be untrusted, a sandbox package (Untrusted modules). A package changed after signing, signed by a key the instance doesn't trust, or claiming to be trusted is refused.
- It must say it works with this SHADE version, and may use only the modules SHADE shares with it.
- A package with the name of an untrusted module is refused until that module is removed.
- A package that would make modules require each other in a circle is refused: SHADE could start none of them.
- Everything takes effect after a restart: installing, updating, going back and removing. Every start checks each server package again (its signature, or its approval for exactly that file) and leaves out, saying why, one whose key is no longer trusted, whose file changed, whose approval was revoked, or that was approved while approvals are now off.
- Removing a package switches its module off at once; it stops running after the restart. Its data and settings stay, like switching a module off, and installed again it starts off.
- Removing a package also takes away its team roles at once. Their team members are deactivated and keep their audit history; they can't sign in until an admin gives them a role in the same step that reactivates them (Module roles). Switching a module off leaves its roles and their team members as they are.
- Staging, installing several at once and going back are for server packages only; untrusted modules update one at a time, as before.
- An update that changes a team role of the module (a new role, a required or default action, a role it gives) lists it on the consent screen and asks again. The update adds the actions it newly declares to the role; what an admin took off stays off.
Switching:
- Every module starts off, with no settings.
- What "off" means: its addresses answer not found, like unknown ones; its background work and its reactions to changes are skipped, and its AI tools are left out; its actions are refused, for admins too; its sidebar entries and collections disappear from the admin, and its admin pages say "This module is switched off."; what it gives to pages answers nothing; its collections have no item pages; what other modules tell it, such as a payment's status, waits until it is on again.
- Requirements. A module cannot be switched on before the modules it requires are on, nor off, uninstalled or removed while a module that is on requires it (the refusal names that module). A module counts as off while a module it requires is off. Two admins cannot switch a module and its requirement off at the same time.
- Completeness. "Needs setup" means a required setting is empty (a stored secret counts as filled) or a service is missing. Saving settings checks the values against the module's fields; while the module is on, the settings must stay complete.
- Secrets are stored encrypted, apart from the other settings, and never shown again. The audit entry names the changed settings, never their values. Export and backups leave secrets out.
- Redirects from a turn-off are temporary, marked as the module's, and removed when the module is switched on
again. A redirect from a path to itself is skipped. The target must be a site path starting with
/(at most 500 characters). - Uninstall is refused while the module is on or a module that is on requires it, and unless the name is typed.
- If the module's own work on switching fails, the error is logged and the switch still happens.
- Who hears of a turn-off. The other active admins get an email when email is set up; the audit log always records it, with the choices.
- Across languages: the impact report counts item pages in every language, and each gets its own redirect.
- Timing. A switch takes effect at once on every part of the instance; should a message between them be lost, it is picked up within a minute. Stopping or switching an untrusted module reaches every part within 5 seconds.
For developers
The code and its tests: shade/features/packages/README.md in the shade repository.