M1 review: docs, agent guide, skills and changelog follow the fixes

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 00:39:23 +01:00
co-authored by Claude Fable 5.2
parent 1141c749de
commit fd203de326
17 changed files with 349 additions and 116 deletions
+16 -6
View File
@@ -249,15 +249,25 @@ the panel shows Site settings, Site integrations, Cookies, Form messages, the Fo
blocked"). One entity reachable without the code: `custom.ipal.secondFactor`.
- **Account rules** (`accounts`, on by default; `false` or key by key to change): the panel opens for `editor`
and above (`panelRole`; an account with only `user` sees "Unauthorized", the API is not touched — give panel
users at least `editor`); only an admin creates staff accounts, also in the project's own collection
(`adminOnlyCreate`), and Payload's first-user route answers only for the panel's login collection
(`firstUserRoute`) — so **create the first account right after the first deploy**, it becomes the admin; a new
password has at least 12 characters (`password`). A customer collection with sign-up: write its own
`create: () => true`; the rules do not touch it. access.md "Account rules".
users at least `editor`); only an admin creates staff accounts, and an account is changed by an admin or by
itself — also in the project's own staff collection (`adminOnlyCreate`, `adminOnlyWrite`; a staff collection
with role values of its own gets "an account of that collection, or a plugin admin" instead, so write its
`create` / `update` / `delete` / `read` rules yourself); Payload's first-user route answers only for the
panel's login collection (`firstUserRoute`) — so **create the first account right after the first deploy**, it
becomes the admin; a new password has at least 12 characters (`password`). A customer collection with
sign-up: write its own `create: () => true`; the rules do not touch it. Do not combine
`access.firstUserAdmin: false` with a default role below the panel role (the start refuses or drops the panel
role). access.md "Account rules".
- **`serverURL`**: set it in the Payload config. Without it, behind a proxy that rewrites `Host` and sends no
`X-Forwarded-Host`, the 2FA code page is refused as "another origin" (logged once: `[ipal] 2FA: a code from
origin … was refused`). Coolify / Traefik keep `Host`, so it works there either way.
- **Stored secrets:** the SMTP password and the Turnstile secret key are entered **in the panel** (Site
integrations) and are write-only — the panel and the API show "a value is set". Do not add env variables for
them; `TURNSTILE_SECRET_KEY` is deprecated (local test keys in `.env` still work). Read them only on the
server with the Local API. `secrets: { writeOnly: false }` turns it off.
server with the Local API. `secrets: { writeOnly: false }` turns it off. Changing the SMTP server, port or
user name in the panel asks for the password again (`secrets.reenterOnChange`); a seed with the Local API is
not asked. Tick **Require encryption** in Site integrations → E-mail sending where the mail server supports
STARTTLS (off by default; the field `smtpRequireTls` needs a migration on Postgres / SQLite).
- **Forms with files** are refused while Turnstile cannot check (wrong keys, Cloudflare down); text forms are
still accepted. `forms: { turnstileOnConfigError: … }` changes either.
- A second auth collection (`customers`, a client zone): set `admin: { user: 'users' }` in `buildConfig`; its