1.17.1 upgrade notes

PROGRAMISTA §6 rows 79 (security: strict switches, write-only secrets out of queries), 80 (the sign-in look),
81 (the proxy matcher); iapl-upgrade "→ 1.17.1, security" and item numbers; reference skills, AGENTS.md and the
reference index on 1.17.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 22:05:42 +01:00
co-authored by Claude Opus 5.5
parent 38f1c012c4
commit 68a2555277
5 changed files with 33 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
<!-- Generated by scripts/reference-index.mjs from reference/ — do not edit by hand (pnpm reference:index). -->
The reference site is one complete client site on IAPL 1.17.0 ("Example Studio", made up) that uses
The reference site is one complete client site on IAPL 1.17.1 ("Example Studio", made up) that uses
every convention in AGENT.md. It lives in the plugin repo (`reference/`, not in the npm package). Copy the
PATTERN of the file you need; change only the project's content. Files up to
40 lines are below in full; open the rest in the repo at the tag of your plugin version:
+14 -1
View File
@@ -33,6 +33,19 @@ no locale redirect, no proxy CSP there. Verify on a build: `curl -sI localhost:3
`pnpm payload run tests/routes.ts update`, judge the new entries, commit (after EVERY Payload / IAPL upgrade). New
projects: add the closed-doors spec and the route check (iapl-audit "What the script does not check").
**→ 1.17.1, security (CHANGELOG 1.17.1; PROGRAMISTA §6, items 79–81; security.md) — check before deploying:**
1. `pnpm build`: a config value the plugin does not understand now stops the start with the option's name
(`accounts: 0`, `stats: 'false'`, `retentionDays: null`, an unknown role name in `requireRole`, …). Fix the value;
real values start as before (security.md → "Switches are read strictly").
2. Nothing to do for the write-only secrets: no query can name them any more. A site that had versions on for Site
integrations, with an admin account that may have been misused: change the SMTP password and the Turnstile key.
3. `twoFactor.requireSetup.exempt` decided from the e-mail: move to an admin-only checkbox (security.md); every
account may change its own e-mail.
4. A collection of the project with drafts and `read: () => true`: use `readPublished()` so `?draft=true` answers
visitors nothing unpublished.
5. Your own endpoint with `buildVerifyLimit`: call `limit.settle(req, correct)` after the check.
**Check:** `pnpm exec iapl-doctor` has no `proxy-matcher`; `curl -s "<site>/md/xx"` → 404; the panel's 2FA works.
**1.8.x → 1.9.0 (PROGRAMISTA §6, items 17–21):** `twoFactor.plugin` required;
`getTurnstileConfig` instead of `turnstileSiteKey` (with both keys set the token is
required — check that every form has the widget); `clientIp(await headers())` in
@@ -659,7 +672,7 @@ PROGRAMISTA §6, items 73–75; email.md; AGENT.md §7.2) — nothing to run; re
**Send test e-mail** names the transport you expect; a form submission arrives. **The service is live at
`https://webservices.intecion.net/mail`; while the service runs with enrolment "pending" (from its launch until Intecion switches to open enrolment), every new site waits for approval — keep SMTP until it is approved, or `relay: false`.**
**→ 1.17.1, the sign-in look (CHANGELOG 1.17.1; white-label.md → "The sign-in screens") — nothing is required:**
**→ 1.17.1, the sign-in look (CHANGELOG 1.17.1; PROGRAMISTA §6, item 80; white-label.md → "The sign-in screens") — nothing is required:**
1. **Sites with `whiteLabel`:** after the update the login screen and the 2FA screens (code, setup) have the new
look — a dark panel with the client's logo or the site's name beside the form. No edit, no
`generate:importmap`, no migration: the look comes through `AdminLogo` and `SafeTotpView`, which the site's
+3
View File
@@ -686,6 +686,9 @@ Do one item at a time, build, check. Order by importance:
| 76 | **1.17.0 — public pages: Chrome requests the first page of a visit twice** — `curl -sI <site>/pl` shows `Critical-CH: Sec-CH-Prefers-Color-Scheme` (Payload's `withPayload` adds it for every path; only the admin reads the hint); Lighthouse lists the same URL twice under redirects | `next.config.ts`: `withSecurityConfig(withPayload(nextConfig))` — the plugin's wrapper OUTSIDE (was inside). Another panel address: `{ adminClientHints: { route } }`; keep the old behaviour: `{ adminClientHints: false }`. Without the edit nothing changes | `iapl-upgrade` "→ 1.17.0, the public pages' first request", security.md "Client hints" |
| 77 | **1.17.0 — cookie banner at first paint** — the banner appeared seconds after the page (after hydration) and was the LCP element on text pages; or after the update an e2e test finds a hidden `[data-ipal="banner"]` for a returning visitor; or with a nonce CSP the console reports a refused inline script | Nothing to run: the banner is now in the server HTML and an inline script shows or hides it before the first paint; pages stay static; consent, tags and the log are unchanged. Remove a project "mounted" wrapper around the banner. Nonce CSP: `<SiteProviders nonce>`. Tailwind 3 with a `classNames.root` that sets `display`: `[data-ipal="banner"][hidden] { display: none !important }`. Old behaviour: `<CookieBanner firstPaint={false} />`; exact HTML on a dynamic site: `consentCookie` | `iapl-upgrade` "→ 1.17.0, cookie banner at first paint", consent.md "First paint" |
| 78 | **1.17.0 — consent compliance** — after the update "Reject" looks like "Accept all"; a browser with Global Privacy Control sees no banner; *Privacy → Consent records* fills with every choice; or on Postgres / SQLite the log says "the consent-records table does not exist" and doctor reports `consent-log-migration` | MongoDB: nothing to run. Postgres / SQLite without the log before: `pnpm payload migrate:create consent-log` + apply in the same deploy, or `iapl({ consentLog: false })`. `generate:types`. Opt-outs: `equalChoice={false}`, `gpc="ask"` / `gpc={false}`, `consentLog: false`, `logEndpoint={false}` | `iapl-upgrade` "→ 1.17.0, consent compliance", consent.md "Compliance defaults" |
| 79 | **1.17.1 — security** — the start stops with "`[iapl] … must be …`" naming an option; or `requireRole('…')` throws; or an admin's `where` on `smtpPassword` / `turnstileSecretKey` answers `400 QueryError` | Fix the named value (security.md "Switches are read strictly"); role names are `user`, `editor`, `admin`. The query refusal is the fix (write-only secrets cannot be named in a query). With versions on for Site integrations and a doubt about an admin account: change the SMTP password and the Turnstile key | CHANGELOG 1.17.1 "Read before upgrading" 1–2, `iapl-upgrade` "→ 1.17.1, security" |
| 80 | **1.17.1 — the sign-in look** — after the update the login and 2FA screens show a dark panel with the logo or the site's name; an editor cannot change the logo or name; an SVG logo shows the name; forgot / reset password look as before | Nothing required. `whiteLabel: { signIn: false }` (old screens), `{ brandAccess: 'editor' }`, `{ signIn: { svgLogo: true, logoPlate: true } }`; the other screens: `signIn: { allScreens: true }` + `pnpm payload generate:importmap`. No `serverURL` → no logo in the link preview: set it | `iapl-upgrade` "→ 1.17.1, the sign-in look", white-label.md "The sign-in screens" |
| 81 | **1.17.1 — proxy matcher** — `iapl-doctor` warns `proxy-matcher`; pages such as `/administracja` or `/apis` get no locale redirect or proxy CSP | `src/proxy.ts`: `matcher: ['/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)']` (i18n.md "Next matcher") | `iapl-upgrade` "→ 1.17.1" |
After updating the package: `pnpm exec iapl-skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in
`node_modules/@intecion/ipal-kit/dist`.
+14 -1
View File
@@ -33,6 +33,19 @@ no locale redirect, no proxy CSP there. Verify on a build: `curl -sI localhost:3
`pnpm payload run tests/routes.ts update`, judge the new entries, commit (after EVERY Payload / IAPL upgrade). New
projects: add the closed-doors spec and the route check (iapl-audit "What the script does not check").
**→ 1.17.1, security (CHANGELOG 1.17.1; PROGRAMISTA §6, items 79–81; security.md) — check before deploying:**
1. `pnpm build`: a config value the plugin does not understand now stops the start with the option's name
(`accounts: 0`, `stats: 'false'`, `retentionDays: null`, an unknown role name in `requireRole`, …). Fix the value;
real values start as before (security.md → "Switches are read strictly").
2. Nothing to do for the write-only secrets: no query can name them any more. A site that had versions on for Site
integrations, with an admin account that may have been misused: change the SMTP password and the Turnstile key.
3. `twoFactor.requireSetup.exempt` decided from the e-mail: move to an admin-only checkbox (security.md); every
account may change its own e-mail.
4. A collection of the project with drafts and `read: () => true`: use `readPublished()` so `?draft=true` answers
visitors nothing unpublished.
5. Your own endpoint with `buildVerifyLimit`: call `limit.settle(req, correct)` after the check.
**Check:** `pnpm exec iapl-doctor` has no `proxy-matcher`; `curl -s "<site>/md/xx"` → 404; the panel's 2FA works.
**1.8.x → 1.9.0 (PROGRAMISTA §6, items 17–21):** `twoFactor.plugin` required;
`getTurnstileConfig` instead of `turnstileSiteKey` (with both keys set the token is
required — check that every form has the widget); `clientIp(await headers())` in
@@ -659,7 +672,7 @@ PROGRAMISTA §6, items 73–75; email.md; AGENT.md §7.2) — nothing to run; re
**Send test e-mail** names the transport you expect; a form submission arrives. **The service is live at
`https://webservices.intecion.net/mail`; while the service runs with enrolment "pending" (from its launch until Intecion switches to open enrolment), every new site waits for approval — keep SMTP until it is approved, or `relay: false`.**
**→ 1.17.1, the sign-in look (CHANGELOG 1.17.1; white-label.md → "The sign-in screens") — nothing is required:**
**→ 1.17.1, the sign-in look (CHANGELOG 1.17.1; PROGRAMISTA §6, item 80; white-label.md → "The sign-in screens") — nothing is required:**
1. **Sites with `whiteLabel`:** after the update the login screen and the 2FA screens (code, setup) have the new
look — a dark panel with the client's logo or the site's name beside the form. No edit, no
`generate:importmap`, no migration: the look comes through `AdminLogo` and `SafeTotpView`, which the site's
+1 -1
View File
@@ -47,7 +47,7 @@ Write everything in this file in English.
<!-- /starter:decisions -->
<!-- iapl:start -->
## IAPL 1.17.0 — agent guide
## IAPL 1.17.1 — agent guide
<!-- Managed by `pnpm exec iapl-skills` — edits between the markers are overwritten. -->
This project is built on `@intecion/ipal-kit` (a Payload CMS 3 plugin). Before you write code: