Security follow-ups to 1.16.7: changelog, access guide, skills, API table, release gate, reference index

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 02:59:44 +01:00
co-authored by Claude Fable 5.2
parent be2e6d52d9
commit ccc6f85924
15 changed files with 183 additions and 21 deletions
+27 -2
View File
@@ -290,11 +290,36 @@ list the staff accounts, and lift the lock after failed logins.
| The collection | `create`, `delete`, `unlock` | `update` | the `roles` field (when it has no `access.update`) | `read`, `readVersions` |
|---|---|---|---|---|
| carries **the plugin's roles**: it is `access.authCollection`, or has a `roles` select whose values are all `user` / `editor` / `admin` (`hasPluginRoles`) | an admin (`staffCreateAccess`) | an admin, or the account itself (`staffUpdateAccess(slug)`) | only an admin changes it (`rolesByAdminOnly`) | a staff account (`staffReadAccess`) |
| has **roles of its own** (`superadmin`, `writer`, …) or no `roles` field — the plugin cannot tell who its admins are | an account of that same collection, or a plugin admin of another staff collection (`sameStaffCollectionAccess(slug)`) | the same | an account never changes its **own** (`rolesNotOwn(slug)`) | a staff account |
| carries **the plugin's roles**: it is `access.authCollection`, or has a `roles` select whose values are all `user` / `editor` / `admin` (`hasPluginRoles`), **or one whose accounts can hold `editor` or `admin`**, whatever else its `roles` field offers (`canHoldStaffRole`, below) | an admin (`staffCreateAccess`) | an admin, or the account itself (`staffUpdateAccess(slug)`) | only an admin changes it (`rolesByAdminOnly`) | a staff account (`staffReadAccess`) |
| has **roles of its own that hold neither `editor` nor `admin`** (`superadmin`, `writer`, …) or no `roles` field — the plugin cannot tell who its admins are | an account of that same collection, or a plugin admin of another staff collection (`sameStaffCollectionAccess(slug)`) | the same | an account never changes its **own** (`rolesNotOwn(slug)`) | a staff account |
Always "fully signed in": a session that still owes its second factor passes none of them.
**A `roles` field that can hold `editor` or `admin`.** The plugin's checks go by the **value on the account**
(`isAdmin`, `isEditor`): an account of a staff collection whose `roles` hold `admin` is a plugin admin, one that
holds `editor` edits the site's settings — whatever else the field offers. So wherever an account of the
collection **can** hold one of the two, the collection gets the admin rules (`canHoldStaffRole`):
| The collection's `roles` field | Rules |
|---|---|
| a select with `editor` or `admin` among its values — `user, editor, admin, boss`; `viewer, editor` | the admin rules (first row above) |
| a field whose values cannot be listed — text, json, a select without options: anything can be written there | the admin rules |
| a select whose values are all your own and hold neither — `lead, member` | "an account of that same collection" (second row) |
| no `roles` field | second row; every account of it is an admin to the plugin (below) |
Otherwise any account of such a collection could hand the value out: create an `admin` and be in Site
integrations and every other staff collection, or create an `editor` and change the site's settings. (Until this
change these collections got the second row, and an account with the lowest role could do exactly that.)
**What it means for your accounts:** a role the plugin does not know (`boss`, `viewer`) carries no rights of the
plugin's — such an account no longer creates, deletes or unlocks accounts there, changes another account or
anybody's roles. Give it what it needs with rules of your own (`access.create` / `update` / `delete`, field
access on `roles`), which win as always. In a collection where nobody can be an `admin` (`viewer, editor`) the
accounts are managed by an admin of another staff collection — the panel's.
**If no staff account holds `admin` at all**, nobody can create, delete or unlock accounts in such a collection.
The start log says so: `[ipal] No staff account holds the role "admin", so NOBODY can create, delete or unlock
accounts in "…"`. Way out: give one account the role with a script (`payload.update`, Local API), or write the
collection's own rules.
**Roles of your own — what the plugin does and does not hold.** It cannot rank `superadmin` against `writer`,
so inside such a collection it enforces one thing only: an account does not change its own roles. Everything
else that was allowed inside the collection stays allowed — **every account of it may still create an account