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:
co-authored by
Claude Opus 5.5
parent
fc70a34f3e
commit
4e68b7e44a
@@ -9,6 +9,39 @@ versions at once, go through every "Requires project changes" section in order,
|
||||
version you have. A new release = a new section at the top; we remove the oldest ones only
|
||||
once there are more than 20.
|
||||
|
||||
## 1.17.2 — DRAFT (security group C, round 2: the owner's Q1–Q3; not released)
|
||||
|
||||
> Draft lines from session C (branch `claude/security-c-1172`); the integration session merges them with A's and B's.
|
||||
> No schema, migration or import-map change. **Read the first two lines if the site has a customer login collection
|
||||
> or uses Payload jobs over HTTP**; otherwise nothing changes for it.
|
||||
|
||||
### Security
|
||||
- **A customer account can no longer create submissions over REST.** `POST /api/form-submissions` (and GraphQL
|
||||
`createFormSubmission`) needed only a signed-in account of any login collection, so a customer of a visitor
|
||||
collection could skip the rate limit, Turnstile, the consent tick and the validation, and the form's e-mails went
|
||||
out. Now: a staff account with its second factor. The site's own forms (`submitForm`, `createSubmitAction`, the file
|
||||
endpoint) are not affected. Way back: `forms.formSubmissionOverrides.access.create`.
|
||||
- **Payload's job queue over HTTP: only an admin or the cron secret.** When the project writes no
|
||||
`jobs.access.run`, `/api/payload-jobs/run` and `/handle-schedules` now answer only an admin signed in with the second
|
||||
factor (an admin's API key counts) or `Authorization: Bearer <CRON_SECRET>` (16+ characters); before, any signed-in
|
||||
account of any login collection. **A site whose cron calls the run route:** set `CRON_SECRET` in the app's
|
||||
environment and send the header; the start log says so when it is missing. In-process runs (`jobs.autoRun`,
|
||||
`payload jobs:run`) and a project's own rule are not affected; `iapl({ jobsRunAccess: false })` keeps Payload's
|
||||
default (security.md "Payload's job queue").
|
||||
|
||||
### Added
|
||||
- `iapl-doctor` deep rule **`visitor-writes`** (warning): on a site with a visitor login collection, every collection
|
||||
and global whose write rule lets such an account in, Payload's default included.
|
||||
- `jobsRunAccess`, `withJobsRunAccess`, `jobsRunNotice`, `cronSecretMatches`, `CRON_SECRET_ENV`,
|
||||
`CRON_SECRET_MIN_LENGTH`; option `jobsRunAccess`; env `CRON_SECRET`.
|
||||
|
||||
### Changed
|
||||
- The reference site (and every new site from `iapl create`): `Pages`, `Posts`, `CaseStudies`, `Media` and the
|
||||
`Header`, `Footer`, `Company` globals have their own write rules (`adminOrEditor`) instead of Payload's default.
|
||||
Existing sites: nothing changes; the doctor's `visitor-writes` names what to add where it matters.
|
||||
- Not built (owner's Q3 answer (a), planned for 2.0): a plugin-wide default for the project's own entities and for
|
||||
Payload's `payload-locked-documents`.
|
||||
|
||||
## 1.17.1 — security fixes from the IAWL review; the panel's sign-in look; the sending method is chosen
|
||||
|
||||
> **Read before upgrading.** **MongoDB: no migration. Postgres / SQLite: one migration** — a new column for the
|
||||
|
||||
Reference in New Issue
Block a user