From 68a255527775a3f10f123aa4b289f564bb794849 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Smoli=C5=84ski?= Date: Thu, 26 Nov 2026 22:05:42 +0100 Subject: [PATCH] 1.17.1 upgrade notes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- docs/agent/reference-site/INDEX.md | 2 +- docs/agent/skills/iapl-upgrade/SKILL.md | 15 ++++++++++++++- docs/dev/PROGRAMISTA.md | 3 +++ reference/.agents/skills/iapl-upgrade/SKILL.md | 15 ++++++++++++++- reference/AGENTS.md | 2 +- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/docs/agent/reference-site/INDEX.md b/docs/agent/reference-site/INDEX.md index de919cd..901eb55 100644 --- a/docs/agent/reference-site/INDEX.md +++ b/docs/agent/reference-site/INDEX.md @@ -2,7 +2,7 @@ -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: diff --git a/docs/agent/skills/iapl-upgrade/SKILL.md b/docs/agent/skills/iapl-upgrade/SKILL.md index 213cf6d..15500f8 100644 --- a/docs/agent/skills/iapl-upgrade/SKILL.md +++ b/docs/agent/skills/iapl-upgrade/SKILL.md @@ -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 "/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 diff --git a/docs/dev/PROGRAMISTA.md b/docs/dev/PROGRAMISTA.md index d3b1365..1a4f05a 100644 --- a/docs/dev/PROGRAMISTA.md +++ b/docs/dev/PROGRAMISTA.md @@ -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 /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: ``. Tailwind 3 with a `classNames.root` that sets `display`: `[data-ipal="banner"][hidden] { display: none !important }`. Old behaviour: ``; 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`. diff --git a/reference/.agents/skills/iapl-upgrade/SKILL.md b/reference/.agents/skills/iapl-upgrade/SKILL.md index 213cf6d..15500f8 100644 --- a/reference/.agents/skills/iapl-upgrade/SKILL.md +++ b/reference/.agents/skills/iapl-upgrade/SKILL.md @@ -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 "/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 diff --git a/reference/AGENTS.md b/reference/AGENTS.md index b7748a2..9affe20 100644 --- a/reference/AGENTS.md +++ b/reference/AGENTS.md @@ -47,7 +47,7 @@ Write everything in this file in English. -## IAPL 1.17.0 — agent guide +## IAPL 1.17.1 — agent guide This project is built on `@intecion/ipal-kit` (a Payload CMS 3 plugin). Before you write code: