co-authored by
Claude Opus 5.5
parent
b9bcd55ac4
commit
af98cfba96
+72
-8
@@ -9,10 +9,74 @@ 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.
|
||||
|
||||
## Unreleased (for 1.18.0) — two-step set-up confirmed by e-mail, speed and growth, security audit fixes
|
||||
## 1.18.0 (2026-12-02) — first two-step set-up confirmed by e-mail, staff sign-in protection, speed and growth, security audit fixes, IWSN connect
|
||||
|
||||
This heading and the 1.17.2 section below (never released on its own) become one 1.18.0 entry at release. Read every
|
||||
"what changes for an existing site" list: the one here and the one in each subsection.
|
||||
> **Read before upgrading — what changes for an existing site, most important first.** 1.17.2 was never released on
|
||||
> its own: its changes are part of this release ("From 1.17.2" at the end of this entry). **No migration** on any
|
||||
> database and no schema change for Postgres / SQLite (MongoDB: a hidden date on two log collections, "Speed and
|
||||
> growth" point 2). **Import map:** `pnpm generate:importmap` moves one existing line (`MaskedField`, because of the new
|
||||
> "Current password" field); the committed map works too. Regenerate it when you turn on `unusedMedia`.
|
||||
>
|
||||
> 1. **The first two-step set-up ends with an e-mail** to the account's own address, opened in the same browser.
|
||||
> Mail must work, or an administrator confirms from the account page. Tell the staff before the upgrade.
|
||||
> → "Two-step verification".
|
||||
> 2. **Staff sign-in:** pin `IAPL_IP_HEADER` in production (failed sign-ins are counted per client IP and address);
|
||||
> Payload's per-account lock becomes 50 failures for an hour; staff sign-in only from the site's own origin; an
|
||||
> account's own e-mail / password change asks for the current password. → "Staff sign-in".
|
||||
> 3. **Every site on IWSN needs one "Połącz z IWSN"** confirmed by a person of Intecion; until then its e-mails are
|
||||
> refused. SMTP and Graph sites see no change. → "IWSN".
|
||||
> 4. **`iapl-doctor` can fail where it passed:** the performance rules are errors, the minimum Next.js is 16.4.6, and
|
||||
> `transitive-min` warns on `ws`, `cross-spawn` and (Postgres) `esbuild` below their fixes. → "Speed and growth" 9,
|
||||
> "Security audit" 8–9.
|
||||
> 5. **Outside callers get less:** public REST / GraphQL lists are capped at 100, an operator name in `?sort=` is a
|
||||
> 400, document locks are for staff only, access callbacks allow only on a literal `true`. → "Security audit".
|
||||
> 6. **Drafts as related documents are left out** of what the content helpers answer (a menu link to an unpublished
|
||||
> page disappears from the site). → "Content and plugin writes".
|
||||
> 7. **Uploads and logs:** JPEG / PNG metadata is removed on upload, MongoDB deletes expired consent records and
|
||||
> statistics by itself, versioned plugin entities keep 20 versions. → "Speed and growth".
|
||||
> 8. **From 1.17.2:** a cron calling `/api/payload-jobs/run` needs `CRON_SECRET`; customer accounts no longer create
|
||||
> form submissions over REST; a locked staff account hears "incorrect"; the consent version only goes up.
|
||||
>
|
||||
> **Known:** the time of a failed sign-in still differs between an existing and an unknown address (Payload hashes the
|
||||
> password only for an existing one), so timing can still tell which accounts exist.
|
||||
|
||||
### Staff sign-in (docs/access.md)
|
||||
|
||||
> **What changes for an existing site** (no schema change, no migration; each with its opt-out):
|
||||
>
|
||||
> 1. **A stranger can no longer lock a staff account out** (`accounts.signInLimit`). Failed sign-ins to a staff
|
||||
> collection are counted per client IP and typed address: after 5 failures in 15 minutes that IP gets `429` for
|
||||
> that address, and the owner signs in from anywhere else. Payload's own per-account lock stays as the net against
|
||||
> many IPs, at **50 failures for an hour** (only where the project set no `auth.maxLoginAttempts` / `lockTime`).
|
||||
> **Pin `IAPL_IP_HEADER`** in production; without it every visitor shares one bucket (20× the limit). Adapt:
|
||||
> `signInLimit: { perAddress, windowMinutes, accountLock }`; Payload's behaviour back: `signInLimit: false`.
|
||||
> 2. **Staff sign-in only from the site's own origin** (`accounts.signInSameOrigin`): login, "forgot password" and
|
||||
> "reset password" of a staff collection answer `403` to a request a browser marks as coming from elsewhere.
|
||||
> Customer logins are not touched. A panel or front end on another domain:
|
||||
> `signInSameOrigin: { origins: [...] }`; behind a proxy that rewrites `Host`, set `serverURL`. Off: `false`.
|
||||
> 3. **Changing one's own e-mail, username or password asks for the current password** (`accounts.confirmOwnChanges`):
|
||||
> a "Current password" field on the account page, `currentPassword` over REST / GraphQL. Not asked: an
|
||||
> administrator changing another account, server code, API keys, the reset flow. **Scripts that change their own
|
||||
> password add `currentPassword`.** Off: `confirmOwnChanges: false`.
|
||||
>
|
||||
> Note for the owner: with 50 failures an hour, many different clients (an IPv6 /48 holds 65,536 /64s) can still keep
|
||||
> a staff account out for an hour at a time; `accounts.signInLimit.accountLock` sets the numbers.
|
||||
|
||||
### Content and plugin writes (docs/content.md, docs/integrations.md)
|
||||
|
||||
> **What changes for an existing site** (no schema change):
|
||||
>
|
||||
> 1. **Drafts as related documents are left out.** A block, a menu or a System pages link that points at a page never
|
||||
> published no longer brings its title, slug or text into the content helpers' answers (pages, Site settings,
|
||||
> archive entries, the 404 page, Markdown, MCP, llms-full): a single relationship becomes `null`, a draft is removed
|
||||
> from a list, a polymorphic one gets `value: null`. A preview keeps them. Old behaviour:
|
||||
> `createContentHelpers({ draftRelations: 'keep' })` (also per helper). Building blocks: `withoutDraftRelations`,
|
||||
> `applyDraftRelations`, type `DraftRelations`.
|
||||
> 2. **The plugin's status writes keep others' saves.** The e-mail and Turnstile status is written alone
|
||||
> (`writeGlobalFields`): a save an editor makes to Site integrations at the same moment is no longer
|
||||
> overwritten by a status update, and no version is made for it. Nothing to do.
|
||||
> 3. **Access callbacks that answer something other than `true` / `false`** are named once in the server log (and,
|
||||
> since this release, refused: "Security audit" point 6).
|
||||
|
||||
### IWSN: "Połącz z IWSN" — a person of Intecion connects the site (docs/email.md, contract 1.8.0)
|
||||
|
||||
@@ -222,7 +286,7 @@ This heading and the 1.17.2 section below (never released on its own) become one
|
||||
> the `"S"` stream key and error 612 "Cannot transport a detached buffer"). No watch remains; AGENT.md §4 item 11 says
|
||||
> how to check after a Next upgrade.
|
||||
|
||||
## 1.17.2 — version history with readPublished, sign-in and panel actions, staff-only REST submissions and jobs, the cookie button
|
||||
### From 1.17.2 (never released on its own)
|
||||
|
||||
> **Read before upgrading.** No schema change, no migration on any database, no import-map change. What changes for
|
||||
> an existing site, most important first:
|
||||
@@ -236,7 +300,7 @@ This heading and the 1.17.2 section below (never released on its own) become one
|
||||
> so five wrong passwords no longer tell a stranger that an address has a staff account. A locked editor with the
|
||||
> right password sees "incorrect" too until the lock ends (10 minutes); an admin can unlock it. Payload's message
|
||||
> back: `accounts: { lockedAnswer: 'payload' }`. Known: the answer's **time** still differs for an existing
|
||||
> account (Payload hashes only then); that is for 1.18.0.
|
||||
> account (Payload hashes only then); see "Known" at the top of 1.18.0.
|
||||
> 3. **The plugin's panel actions refuse other origins** (mail service Connect / Disconnect, Send test e-mail, cookie
|
||||
> scan, approval, site check): `403` for a request a browser marks as coming from elsewhere. The panel's buttons
|
||||
> work. **Behind a proxy that rewrites `Host` and sends no `X-Forwarded-Host`, set `serverURL`**, or those buttons
|
||||
@@ -257,7 +321,7 @@ This heading and the 1.17.2 section below (never released on its own) become one
|
||||
> 8. **IPv6 visitors are counted per /64** by every plugin rate limit (one home network shares a budget, as an
|
||||
> IPv4 home behind one router always did). Per address: `setIpv6Grouping({ prefix: 128 })`.
|
||||
|
||||
### Security
|
||||
#### Security
|
||||
- **Version history with `readPublished()`** (point 1): new `readPublishedVersions(minimum)` for `readVersions`;
|
||||
`withVersionReadRules(entities)` swaps a marked `readPublished()` on `readVersions` (iapl() runs it on the
|
||||
collections and globals it sees; a plugin listed after iapl() uses `readPublishedVersions()` itself).
|
||||
@@ -283,7 +347,7 @@ This heading and the 1.17.2 section below (never released on its own) become one
|
||||
- **IPv6 per network** (point 8): `setIpv6Grouping`, `ipRateKey`; type `Ipv6Grouping`. A second counter per /48 is
|
||||
available (`wide: 48`), off by default.
|
||||
|
||||
### Added
|
||||
#### 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`,
|
||||
@@ -292,7 +356,7 @@ This heading and the 1.17.2 section below (never released on its own) become one
|
||||
`COOKIE_BUTTON_SPACE_ATTRIBUTE`, `reserveCookieButtonSpace` (`/client`, type `CookieButtonSpaceOptions`);
|
||||
`consentDecidedScript` (root); the token `--ipal-cookie-button-space`.
|
||||
|
||||
### Changed
|
||||
#### Changed
|
||||
- **What an existing site's visitors see: the "cookie settings" button stays in the bottom corner of the window and
|
||||
never moves; the footer is a little taller while it is shown**
|
||||
([consent.md → Where the cookie button sits](./consent.md#where-the-cookie-button-sits-1172)). Until now the button
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@intecion/ipal-kit",
|
||||
"version": "1.17.2",
|
||||
"version": "1.18.0",
|
||||
"description": "Intecion Advanced Payload Library — a Payload CMS 3 plugin: i18n, SEO, forms, consent, analytics, blog/archives.",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
+1
-1
@@ -7,4 +7,4 @@
|
||||
* `/_next/static/media/`. Written by `node scripts/write-version.mjs` (the `version` script of
|
||||
* package.json runs it on `pnpm version …`); test/version.test.ts fails when the two differ.
|
||||
*/
|
||||
export const PLUGIN_VERSION = '1.17.2'
|
||||
export const PLUGIN_VERSION = '1.18.0'
|
||||
|
||||
Reference in New Issue
Block a user