1.18.0 upgrade notes
PROGRAMISTA §6 rows 83–87 now 1.18.0 (1.17.2 was never released alone) and new rows 88–94; iapl-upgrade blocks for speed and growth and for drafts in related documents, the 1.17.2 blocks as "→ 1.18.0 (from 1.17.2)"; every "since 1.17.2" in docs, comments and tests reads 1.18.0; reference skills, AGENTS.md and the reference index on 1.18.0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
af98cfba96
commit
9b83cc600a
+6
-6
@@ -432,14 +432,14 @@ Real panel protection:
|
||||
`/admin → /its` is a layer (it filters out dumb bots), not a lock. Treat it as an
|
||||
addition to real safeguards, not a replacement for them.
|
||||
|
||||
## Panel actions only from the site's own origin (`adminSameOrigin`, 1.17.2)
|
||||
## Panel actions only from the site's own origin (`adminSameOrigin`, 1.18.0)
|
||||
|
||||
The plugin's panel actions act with the panel's login cookie and read their body whatever its `Content-Type`
|
||||
says: `POST /api/iapl/mail-relay/connect`, `/connect-link` ("Połącz z IWSN", 1.18.0) and `/disconnect` (the mail
|
||||
service), `/api/ipal/test-email`,
|
||||
`/api/ipal/cookie-scan`, `/api/ipal/cookie-approval`, `/api/ipal/cookie-crawl`. A `text/plain` POST needs no CORS
|
||||
preflight, a page on a sibling subdomain is "same site" (the browser sends the `SameSite=Lax` cookie), and
|
||||
Payload's own CSRF list is empty unless `serverURL` or `csrf` is set. So before 1.17.2 such a page could make a
|
||||
Payload's own CSRF list is empty unless `serverURL` or `csrf` is set. So before 1.18.0 such a page could make a
|
||||
signed-in administrator disconnect the mail service, send test mails, run scans and crawls, or approve every
|
||||
waiting cookie. Now each of them refuses (`403`, before anything is read) a request a browser marks as coming
|
||||
from elsewhere — the same rule as the 2FA endpoints: the `Origin` header, else `Sec-Fetch-Site`. Own origins: the
|
||||
@@ -451,7 +451,7 @@ these paths is left as it is. The 2FA endpoints keep their own switch (`twoFacto
|
||||
```ts
|
||||
iapl({
|
||||
// adminSameOrigin: { origins: ['https://panel.example.com'] }, // the panel served from another origin
|
||||
// adminSameOrigin: false, // no check (as before 1.17.2)
|
||||
// adminSameOrigin: false, // no check (as before 1.18.0)
|
||||
})
|
||||
```
|
||||
|
||||
@@ -1318,11 +1318,11 @@ a root endpoint to the config and the check names it as "not judged".
|
||||
**In the plugin repository:** `pnpm routes:check` (`--update` after a Payload upgrade) on the reference site, also
|
||||
the first step of `pnpm e2e:built`; the test fixtures are switched off for it.
|
||||
|
||||
## Payload's job queue (`jobsRunAccess`, 1.17.2)
|
||||
## Payload's job queue (`jobsRunAccess`, 1.18.0)
|
||||
|
||||
Payload runs its queue over HTTP at `GET /api/payload-jobs/run` and `/api/payload-jobs/handle-schedules`, checked by
|
||||
`jobs.access.run`. Payload's default is **any signed-in account of any auth collection** — a shop's customer could
|
||||
run the queue whenever they like. Since 1.17.2, when the project writes **no** `jobs.access.run`, iapl sets: an
|
||||
run the queue whenever they like. Since 1.18.0, when the project writes **no** `jobs.access.run`, iapl sets: an
|
||||
**admin signed in with the second factor** (an admin's API key counts), or **`Authorization: Bearer <CRON_SECRET>`**
|
||||
(16+ characters, compared in constant time). It is set even when the config has no `jobs` (Payload turns the queue on
|
||||
by itself for scheduled publishing). A route that does not exist (no tasks, no workflows) stays 404.
|
||||
@@ -1346,7 +1346,7 @@ Payload fills every missing access rule with **"any signed-in account"** — an
|
||||
included. The plugin narrows its own collections and globals and the staff accounts; **your** collections and
|
||||
globals are yours to rule. On a site that has (or may get) a visitor login collection, give every collection
|
||||
`create` / `update` / `delete` and every global `update` a rule of its own — the reference site and every new site
|
||||
from `iapl create` do (`adminOrEditor`, since 1.17.2). `iapl-doctor --url` (deep) lists what such an account may
|
||||
from `iapl create` do (`adminOrEditor`, since 1.18.0). `iapl-doctor --url` (deep) lists what such an account may
|
||||
write (`visitor-writes`, warning), checked by behaviour: it asks every rule with a stand-in visitor account. Payload's
|
||||
own `payload-locked-documents` (who edits which document) is for staff accounts only since 1.18.0 (`lockedDocuments`,
|
||||
"Lists and sorting" below). Verify: the doctor shows no `visitor-writes` finding, and the closed-doors spec's customer
|
||||
|
||||
Reference in New Issue
Block a user