SHADE is young: 0.1.0-next.2 is a pre-release, and 0.1.0 isn't out yet.

SHADE
People, security and privacy

Team and roles

The team are the people (and AI assistants) who work in SHADE: they sign in to the admin to write, publish and run the site. Every team member has one of three fixed roles — admin, editor or ai — and the role decides what they may do. An editor can also get a custom role (a team role) that an admin made, with exactly the actions chosen for it (see Custom roles), or a role a module brings (see Module roles). This page is about the team; the people who sign in on the public website are accounts, described in Accounts. See People in SHADE for how the two sides fit.

What team members can do

Admins

  • See every team member on the Team screen, split into the tabs Admins, Editors and AI accounts, and search them by name or email.
  • Create a team member with a name, email, role and (optionally) a password. Without a password the person cannot sign in until an admin sets one with Set password, or they choose one from an invitation. AI accounts never get a password.
  • Edit another team member's name, email and role. Only what you changed is saved. If another admin changed the team member while your form was open, the form says so and saves nothing: Reload shows them as they are now.
  • Deactivate a team member (they are signed out everywhere and can no longer sign in or use their tokens) and Reactivate them later.
  • Set password for another team member; all of their sessions end.
  • Reset two-factor for a team member who lost their authenticator app; they sign in with only their password next time and can set it up again.
  • Invite a team member by email, and delete one (Rules and limits).
  • Make custom roles on the Roles screen and give one to an editor (see Custom roles).

Every signed-in team member (admins and editors)

  • Open Account from the user menu: see their own name, email and role, and change their name and email address.
  • Change their own password (current password required). Their other sessions are signed out; this browser stays signed in.
  • Turn two-factor authentication on or off and manage passkeys — see Sign-in.

AI accounts

  • Have no password and cannot sign in to the admin. They work only over MCP (the protocol AI assistants use to call tools) with an MCP token an admin creates for them — see API tokens.

The first admin is the owner. On a new instance, the admin's address shows Create the owner account until someone has an account, and asks for a one-time code that only the server's log shows, so the person who set the server up makes it (Setting up an instance). The owner then sets up two-factor or a passkey and invites the rest of the team. If the only admin loses their password, create-admin on the server adds another (Console commands).

Custom roles

The Roles screen (sidebar, admins only) shows every role in one place:

  • Why can't they? is a card at the top. Pick a team member and an action, and press Check. It answers in one line whether they may, and if not, why: the module or module is switched off; the action stays with admins (or only a person signed in may do it, never a token; or it needs signing in again; or no module or program may; or the AI never may); their role doesn't include it, so add it to the role or give them another; or it is only for some entries (an entry limit). It always answers for the team member signed in as themselves, never for a token of theirs.
  • Built-in roles (Admin, Editor, AI) show how many actions each holds. View opens the same dialog, read only. They can't be changed: to give an editor other actions, make a custom role.
  • Custom roles are an admin's own, and the modules' roles, shown as ": ".

A role is a set of grants: each action it allows, and for a collection its field rules and entry limit as conditions on that collection's grants. The field rules sit on every grant of the collection, the entry limit on editing, deleting and publishing. An admin makes roles such as "Blog editor: only posts":

  • A name, an optional description, and the grants it holds. The actions are grouped as Media, Rebuilds and SHADE's other parts, each collection (View, Create, Edit, Publish, Delete) and each module by its title, with the module's own words for what each allows (Shop: View orders, Manage stock). An action no text names yet still reads as words, never as its id. What stays with admins is never offered: the team, roles, API tokens, the audit log, site settings, modules and sending SHADE's own email. It is never granted either: a role saved before an action came to stay with admins loses that action at once.
  • In a team member's form, an editor gets a Custom role, or Editor defaults. With a custom role the editor has exactly its grants, nothing of the editor defaults; the Team list shows the role next to their name.
  • Admins and AI accounts cannot get one: admin stays everything, AI accounts keep their limits.
  • If another admin saved the role while you had it open, your save is refused and the dialog says so: Reload shows it as it is now, and you make your change again from there.
  • Changing a role applies to its editors at once (on their next click). A role that editors still have cannot be deleted: give them another role first.
  • Creating, changing and deleting roles, and giving one to a team member, are in the audit log.

Field rules

A custom role can also say, field by field, what its editors may do with a collection's entries:

  • Under Fields in the role's dialog, each collection the role may view opens to its fields. Each is Edit, Read only or Hidden. Every field starts on Edit, which follows the role's actions for that collection, so a role changes nothing until you set a field.
  • Rules are per field of the collection itself: the fields inside a group, a list or blocks follow theirs.
  • A collection's title field can be Read only, never Hidden: the title shows in lists, pickers, the trash and the audit log, so hiding it would only pretend.
  • Hidden: the editor never sees the field: not in the editor, the list, the history, what changed between versions, the editorial module's reviews, AI changes or entries shown inside another. They can't filter, sort or search on it either.
  • Read only: the editor sees the field, disabled, with "Read only" next to it, and can't change it.
  • Saving, restoring an older version, translating and publishing never change a hidden or read-only field: it keeps what it holds, and a new entry gets the field's default. A save through the API that changes one is refused, naming the field.
  • They hold for the editor's API tokens too. Admins, editors with the defaults and AI accounts have no field rules, and what the site reads (published content) is unchanged.
  • A module's role has no field rules: it holds only the module's own actions, never a collection's.
  • Don't hide a required field without a default in a collection the role creates entries in: the editor can't fill it in, so a new entry is refused (or, with drafts, can't be published) with an error about a field they don't see.
  • Changing them is in the audit log with the role.

Groups

Groups bring team members together, for example by department or region:

  • On the Team screen, admins open the Groups tab, make a group with New group, and give it a name and its team members. A team member can be in several groups. Edit renames a group or changes who is in it; Delete removes it.
  • A new entry belongs to the groups of the team member who creates it, as they are at that moment. Nothing is picked when creating. An entry made with an API token belongs to the token owner's groups; one made by SHADE itself, a module or a service belongs to none. Joining a group later doesn't change the entries made before.
  • Admins see and change an entry's groups under Groups in the entry editor; the change is saved at once.
  • Deleting a group takes it off its team members and off every entry.
  • Creating, changing and deleting groups, and changing an entry's groups, are in the audit log.

Which entries

A custom role can also limit which entries its editors change, per collection:

  • Under Which entries in the role's dialog, each collection whose entries the role may edit, delete or publish has All entries, Their group’s entries or Only their own. All entries is the default, so a role changes nothing until you choose another.
  • Their group’s entries: the editor may change an entry that shares at least one group with them, and the entries they created themselves. Only their own: only the entries they created.
  • The limit covers editing (in every language, and restoring an older version), deleting (to the trash, restoring from it and deleting forever), publishing, unpublishing, and (with the editorial module) scheduling, and submitting, approving or sending back a review. Creating is not limited.
  • Viewing is not limited: the editor still sees every entry the role may view. In the list, an entry they may not change shows a lock (View only); in the editor it says "You can view this post, not change it", and nothing that changes it is offered. The Trash screen marks such entries and turns their actions off.
  • SHADE checks it on every change, not only in the admin: the API refuses with "Your role may change only the posts you created" or "… of your groups". A bulk action tries each entry and says how many were not changed. Emptying the trash leaves the entries the editor may not delete.
  • It holds for the editor's API tokens too. Admins, editors with the defaults and AI accounts are never limited; a module's role has no limits, as it holds no collection's actions. Collections with a single entry have none.
  • Changing it is in the audit log with the role.

Module roles

A module can bring roles of its own, such as the shop's Shop manager, Order handler and Stock clerk. They are custom roles of that module:

  • The Roles screen shows them under the module's title: "Shop: Shop manager". An admin gives them to editors like any custom role.
  • A module role holds only that module's actions. Some are required: they are always held, shown checked and locked. An admin can rename the role and add or remove the module's other actions. Nothing outside the module is offered, and the server refuses it too.
  • A role can manage other roles of the same module. The module decides which; the Roles screen shows it, and admins can't change it.
  • A module role can't be deleted while its module is installed.
  • Turned off, the module's roles and their team members stay as they are. Their actions do nothing while the module is off.
  • Removed, the module's roles go. Their team members are deactivated and keep their audit history. The Team list shows them as Needs a role. They can't sign in until an admin gives them a role: the row menu's Give a role and reactivate asks for one (the editor defaults count when chosen there). Reactivating them without a role is refused.
  • Updated, a module may declare more actions for a role. They are added; what an admin took off stays off. The update's consent lists what changed in its roles (Managing modules).

Managing a module's team members. An editor whose role manages others sees Team too, with only the team members whose role is one of those. There they may:

  • invite and create team members into those roles (they always get an invitation; only an admin sets a password);
  • give such a member another role from the list;
  • deactivate, reactivate and delete such a member.

They never see or touch anyone else, never give a role outside the list or make an admin, and can't change the roles themselves. Other screens of the settings stay closed. The server checks each request: the member's current role and the role given must both be managed by the role the caller holds. Invitations, their expiry and the rate limits are the same as an admin's. Each change is in the audit log as team.manage, with the module's name.

Who may do it

ActionPermissionRoles
List and search the teamteam.readadmin
Create, edit, deactivate, reactivate, invite, delete a team member; set another team member's password; reset two-factorteam.manageadmin
Make, change and delete custom roles; give an editor a custom roleteam.manageadmin
Make, rename and delete groups and choose their team members; change an entry's groupsteam.manageadmin
List, invite, create, move between roles, deactivate and delete the team members of the roles a module role managesthe module role's team.roles.give grantadmin, an editor with that role
See your own account, change your own name, email, password, two-factor and passkeysnone (signed in)admin, editor

What each role may do

Deny by default: an action that is not granted to a role is refused. An action SHADE does not know at all is refused for every role, admins included.

ActionWhat it coversadmineditorai
content.readRead the site's published content and shared parts: settings, languages, data sources, and what modules add to the read APIyesyesyes
media.readSee the media libraryyesyesyes
media.uploadUpload filesyesyes–
media.updateEdit media detailsyesyesalt text only
media.deleteDelete filesyesyes–
settings.read / settings.updateSite settings (also the email and accounts settings)yes––
private.readRecords with personal data: the user list, payments, the email log. Never in a custom roleyes––
accounts.rolesGive and take accounts' roles, which modules declare (Accounts). Never in a custom role, never a module'syes––
team.read / team.manageThis featureyes––
tokens.read / tokens.manageAPI tokensyes––
audit.readThe audit logyes––
errors.read / errors.manageThe error log and security alerts: read; resolve and switch alert rules. Never in a custom roleyes––
rebuild.read / rebuild.triggerSee and start site builds (Publishing)yesyes–
build.reportReport how a site build went; only ever with a build token (API tokens)yesyes–
rebuild.requestA module asks for a rebuild after a change of its own; only a module that declares it–––
email.sendSend core's own email (alerts, invitations, password links, form notifications). Never in a custom roleyes––
packages.read / packages.manageSee and switch modules, change their settingsyes––
programs.read / programs.manageThe client's programs: see; register, approve and revoke. Never in a custom roleyes––
editorial.releases.read / editorial.releases.manageThe editorial module's releases. Never for AI users, tokens or modulesyesyes–

Collection actions. Every collection has the actions collections.<slug>.read, .create, .update, .publish and .delete. Admins get all of them. A collection can set its own access per role; without it, editors get every one. The ai role gets none of these: it reaches a collection over MCP only as far as the collection allows the AI, and then only to read and write drafts, never to publish or delete. The layout (navigation and footer) is edited through collections.website-navigation.* and collections.website-footer.* — see Collections and Layout.

Module actions. Modules add their own actions, named <plugin>.…, and say which roles get them by default:

ModuleActionsGranted to editor
websitewebsite.pages.design, website.pages.build, website.styles.read / .update, website.components.read / .manage, website.embeds.manage, website.redirects.read / .manage, website.builds.read / .trigger (the theme has its collection's actions, collections.website-theme.*)website.pages.design, website.pages.build, collections.website-theme.read, website.styles.read, website.components.read, website.redirects.*, website.builds.* (the ai role: designing and building pages, reading components, reading and changing styles)
appointmentsappointments.read, appointments.manageboth
commercecommerce.orders.read, commerce.orders.manage, commerce.orders.refund, commerce.stock.manageall but commerce.orders.refund (the Shop manager role holds it)

Admins always get every module action. When a module is switched off, its actions (and its collections' actions) are refused for everyone, admins included, until it is switched back on.

A module acting on its own. A module's background work, what it answers for visitors and for anyone, and its handling of payments are started by no team member, so the module acts as itself: a fourth role that no account can have and no custom role can change. It may do exactly the actions the module declares, which the consent lists when the module is installed, and nothing else. The lists a module shows on the site (its data sources) may read as the module itself too, with the same rights. What stays with admins (the team, roles, tokens, settings, the theme, modules, the audit and error logs, personal records, rebuilds, redirects), the forms and their submissions, deleting media and other modules' collections can never be given to it; uploading media and publishing and deleting pages can, when the consent lists them. A module only receives the submissions of the forms an admin connects to it (Forms). What it changes is in the audit log as Module {name}; when one module is refused ten or more actions within an hour, every admin gets an alert naming it (Errors and alerts). When an editor uses a module's screens, the module does only what that editor may. No account can be named package:…, so nobody can pass as a module in the audit log.

In the admin

Team (in the settings area's Team and access group; shown only to roles with team.read, and to an editor whose module role manages others, who sees only those team members, without tabs, and invites instead of setting a password)

  • Tabs Admins, Editors, AI accounts, each with a one-line description of the role, and for admins Groups (Groups). The default is Admins; the open tab is part of the page's address, so it stays on a reload.
  • Search box (Search name or email…), a table with name and email, Status (Active / Inactive) and Last login (or Never), and pagination (20 per page) when there are more team members.
  • Button New team member (on the AI tab: New AI account) opens the New team member dialog: Name, Email, Role (with a short description per role) and, for admin and editor, an optional Password ("At least 12 characters. Leave empty to set it later."). The role starts as the open tab. Without a password, and when email is set up, Send an invitation is ticked: the new team member gets the invitation at once.
  • Row menu:
    • Edit: the Edit team member dialog with name, email and role (no password field). On your own row the role is locked ("You cannot change your own role.").
    • Set password: dialog Set password for {name}. Disabled for AI accounts and for your own row (change your own on the Account page).
    • Reset two-factor: only for team members who have two-factor on, not for yourself; asks for confirmation first.
    • Send invitation: for active editors and admins.
    • Deactivate (disabled on your own row) or Reactivate.
    • Delete, after a confirmation.
  • Refusals (for example the last-admin rule) appear as a toast or in the dialog.

Account (user menu → Account)

  • Profile card: your Name with Save name, and your email and role.
  • Email address card: New email address and Current password, button Send confirmation link. The link goes to the new address (valid once, for a day); your current address gets a notice. The address changes only when the link is opened, which works without being signed in.
  • Password card: Current password and New password, button Change password.
  • Security card: two-factor and passkeys (see Sign-in).

What you may not do is hidden. The sidebar hides the screens your role cannot use and screens hide the buttons for actions you may not take, also as modules are switched on or off. Opening a screen you may not use (such as Team or API tokens for an editor) shows "You do not have access to this page." Hiding is a convenience only: every action is checked again when it reaches the server.

All texts exist in English and Dutch.

On the website

Nothing directly: the team works in the admin. Website accounts are accounts.

Rules and limits

  • Email is trimmed, lowercased and unique (max 254 characters); a duplicate gives "A team member with this email already exists". Name: 1–120 characters after trimming.
  • Passwords: at least 12 and at most 256 characters, no composition rules (following NIST 800-63B). Only a hash is stored; a password is never shown again or written to the audit log.
  • At least one active admin. Demoting or deactivating the last active admin is refused ("At least one active admin is required"). Two admins demoting each other at the same moment still leave one.
  • No self-lockout. You cannot deactivate yourself or change your own role ("You cannot deactivate or change the role of your own account"). You can change your own name and email through Edit.
  • Admin language. The language an editor picks in the user menu is also saved on their account (audited once per change); until they pick one, the language the admin first opened in is saved. Emails to the business reach them in it (Email).
  • Inviting (row menu Send invitation) emails a link to choose a password, valid once for seven days, in their admin language (else the site's). It needs email to be set up and is refused without it. Audited as team.manage "Invited …". When the mail server does not take it, the invitation is refused with "The invitation could not be sent" and can be sent again. Send an invitation when creating does the same right after creating; it is refused together with a password or for an AI account, and without email set up nothing is created. When the invitation does not go out, the team member is still created and a warning says to send it again from the team list.
  • Links stop working once a team member's email address changes (by an admin, or confirmed by themselves) and once an admin sets their password: an invitation or reset link sent before can no longer set the password.
  • Own name and email. Changing your email address checks your current password and refuses an address in use or your own. Opening the confirmation link is limited like signing in. All audited as team.update.
  • Two-factor reset is for other team members only: resetting your own is refused; you turn it off on your Account page with your password. Editors can also reset a forgotten password themselves (Signing in).
  • Deleting (row menu Delete, after a confirmation) removes the account for good, for example on a GDPR request. Not yourself, and never the last active admin. Sessions, sign-in records, two-factor, passkeys and API tokens go with it; content, media and audit entries stay, pointing at no one, and audit entries keep the name they had as the record of who did what. The audit entry for the deletion holds the role, not the name or address.
  • Deactivating ends all of the team member's sessions; inactive team members cannot sign in and their API tokens stop working.
  • Changing a role to ai ends the team member's sessions and removes their password. Changing a role away from ai revokes their MCP tokens.
  • AI accounts cannot have a password (on create, and Set password is refused), cannot sign in to the admin and have no session, and are the only team members whose MCP tokens work.
  • Inactive team members and AI accounts who try to sign in get the same "Invalid email or password" as a wrong password.
  • An edit that changes nothing writes nothing and records no audit entry.
  • A module's removal deactivates the team members of its roles and takes the role away (audited as team.manage with the module's name).
  • Groups: a name of 1–80 characters, unique ("A group "…" already exists"). If another admin saved the group while you had it open, your save is refused and the dialog offers Reload.
  • Audit entries: team.manage (create, and update with the changed fields before and after; with plugin in its details when an editor managed a module's team members), team.password, team.security (two-factor and passkeys), team.login, team.logout. See Audit log. Groups: groups.create, groups.update (members added and removed, and a new name), groups.delete; an entry's groups: collections.<slug>.groups.

For developers

The code and its tests: shade/features/team/README.md in the shade repository.