1.17.2 (owner's Q1-Q3): form submissions over REST for staff only; Payload's job queue for an admin or Bearer CRON_SECRET; doctor visitor-writes; explicit write rules on the reference site

- form-submissions create: a staff account with its second factor (formSubmissionOverrides.access.create keeps the way back)
- jobsRunAccess (default on when the project writes no jobs.access.run): admin with the second factor or Bearer CRON_SECRET (16+); start-up note when the secret is missing; jobsRunAccess: false keeps Payload's default
- iapl-doctor deep rule visitor-writes: entities a visitor login account may write, asked by behaviour
- reference: Pages, Posts, CaseStudies, Media, Header, Footer, Company get adminOrEditor write rules
- closed doors: submissions, pages, media, header, company closed for customers; the fixture's job queue refused without the secret, run with it
- route snapshot reasons, docs, AGENT.md, skills, changelog draft 1.17.2

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 10:44:18 +01:00
co-authored by Claude Opus 5.5
parent fc70a34f3e
commit 4e68b7e44a
40 changed files with 657 additions and 187 deletions
+2 -2
View File
@@ -547,7 +547,7 @@ then does it store. A flood dies before it touches the network or the database.
**REST is closed.** By default the form-builder lets anyone create submissions through
`POST /api/form-submissions` — skipping all the gates below. IAPL
sets `access.create` of the `form-submissions` collection to "logged-in users only"; the front end
sets `access.create` of the `form-submissions` collection to "a staff account with its second factor" (since 1.17.2; before: any signed-in account, a customer of a visitor login collection included); the front end
submits through `submitForm` (server action → Local API), so this does not affect it.
A deliberately public REST (e.g. an external app) →
`forms: { formSubmissionOverrides: { access: { create: () => true } } }` — then
@@ -861,7 +861,7 @@ filter it out on the client.
- **Turn off:** without the `forms` option the plugin does not wire the form-builder (no Forms / Form Submissions collections).
Single field types: `forms.fields.<type>: false`. Files: `forms.attachments` is off unless you set it ("Files").
- **Override the collections:** `formOverrides` / `formSubmissionOverrides` — fields (the `fields` function), `labels`,
`admin`, `access`, `hooks`. The default submissions access (`create`: logged-in users, `read`: editor+, `delete`: admin)
`admin`, `access`, `hooks`. The default submissions access (`create`: a staff account with its second factor since 1.17.2, `read`: editor+, `delete`: admin)
is overridden by keys in `formSubmissionOverrides.access`; forms access (`create`/`update`/`delete`:
editor+, `read`: public) — in `formOverrides.access`. The Emails tab protection (`read`: editor+) is
applied to the default fields **before** `formOverrides.fields`, so you change it there.