1.17.0 upgrade notes

Changelog: one 1.17.0 entry, the security follow-ups prepared as 1.16.8 first, then e-mail, the name, Postgres;
the mail service is live with enrolment "pending". PROGRAMISTA §6 rows 71 (renamed), 74 and 75; iapl-upgrade
"→ 1.17.0, security"; iapl-setup, iapl-debug, email.md, deployment.md: a new site waits for approval while the
service runs with "pending". Reference skills, AGENTS.md and the reference index on 1.17.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 11:09:53 +01:00
co-authored by Claude Opus 5.5
parent 3bfe377f1b
commit 2f6a81acbf
12 changed files with 31 additions and 32 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.16.8 ("Example Studio", made up) that uses
The reference site is one complete client site on IAPL 1.17.0 ("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:
+1 -1
View File
@@ -105,7 +105,7 @@ through this procedure. Ask only when you are missing something you cannot get y
| a site sends nothing: "The data comes from another site (…), so this copy does not send e-mails by itself" / `relay-refused`, cause `client-other-host` | the site is non-public — its host matches `developmentHosts` (built in: `*.dev.netscale.pl`) or `IAPL_NOINDEX=1` is set; `iapl-doctor --deep` says which (`mail-non-public`) — and its database holds another host's connection: a staging copy of production, or production's data copied back onto the development address. Expected — a copy with production's data must not mail real people by itself | should it send: "Connect again" in the state block, once (until the data is replaced). A copy that must never send: `mail: { relay: false }` or SMTP to a catcher. **The production site itself says this:** `IAPL_NOINDEX` was left set after launch — remove it; or its host matches a development pattern — take it out of `iapl({ developmentHosts })` |
| the site does not start: "[iapl] … developmentHosts must be an array of host patterns …" | the list is not an array of non-empty host patterns (a single string, `null`, `['']`), or holds a lone `*` | write it as `['*.dev.netscale.pl', 'staging.client.pl']`; `[]` = none; to change who waits use `mail.relay.otherHosts` |
| a staging or test copy **does** send, to real addresses | its host matches no development pattern and it has no `IAPL_NOINDEX=1`, so it looks like a launch (a public site enrols by itself); the doctor's deep run notes "the database also holds the mail-service connection of another host" | name its host in `iapl({ developmentHosts: ['*.dev.netscale.pl', '<the copy's pattern>'] })`, or `IAPL_NOINDEX=1` on the copy; to be sure: `mail: { relay: false }` or SMTP to a catcher |
| `relay-pending` / "waiting for approval" | the exception: the service holds new sites for approval when many appear at once, or Intecion approves by hand (a site is normally active as soon as it enrols) | Intecion approves it on the service; nothing to change on the site; the same token then works |
| `relay-pending` / "waiting for approval" | while the service runs with enrolment "pending" (from its launch until Intecion switches to open enrolment), every new site waits for approval; after that, the exception (many new sites at once, or approval by hand) | Intecion approves it on the service; nothing to change on the site; the same token then works |
| `relay-suspended` | Intecion stopped the site (abuse, a flood from a form) | contact Intecion; fill in SMTP meanwhile |
| `relay-disconnected` | an admin pressed "Disconnect" | "Connect again", or SMTP |
| `relay-quota` | the site's hour or day is used up (30 / 200 by default), more than 10 recipients, more than 10 confirmations to one address a day, too many new addresses, or the site's own limit on account mail (`mail.relay.accountMail`) | the server log names the limit; look for a form being abused (Turnstile on? rate limit?); a site that really sends more: Intecion raises the limits, or SMTP |
+1 -1
View File
@@ -646,7 +646,7 @@ scaling (5). `●` routes for pages need the database at build time (PROGRAMISTA
6. **Notifications**: form messages in every language.
7. **Site integrations → E-mail sending**: "Sender name" (the client's name; empty = the site name) and **"Sender
address"** (the client's address: with the mail service replies go there). SMTP fields **only** when the client asked
for its own server. On the production domain: the block "How e-mails are sent" must say "Connected to IWSN" (a site is active as soon as it enrols; "waiting for approval" is the exception — ask Intecion; the real domain enrols by itself at launch although the site was connected on its development address — nothing to press; "The data comes from another site" = the site is non-public (its host matches `developmentHosts`, built in `*.dev.netscale.pl`, or `IAPL_NOINDEX=1`) and holds a copy of another site's data: press "Connect again" only if the copy should send — on the production domain it means `IAPL_NOINDEX` was left set. A development address under `*.dev.netscale.pl` needs nothing; a staging or test copy on any other host must have its host in `iapl({ developmentHosts: […] })` (an array of host patterns: a single string, an empty entry or a lone `*` stops the start) or `IAPL_NOINDEX=1`, or it mails the real addresses in its data), then **Send test e-mail** → "through IWSN". Turnstile (for testing site
for its own server. On the production domain: the block "How e-mails are sent" must say "Connected to IWSN" ("waiting for approval": while the service runs with enrolment "pending" (from its launch until Intecion switches to open enrolment), every new site waits for approval — ask Intecion to approve the host; under open enrolment it is the exception; the real domain enrols by itself at launch although the site was connected on its development address — nothing to press; "The data comes from another site" = the site is non-public (its host matches `developmentHosts`, built in `*.dev.netscale.pl`, or `IAPL_NOINDEX=1`) and holds a copy of another site's data: press "Connect again" only if the copy should send — on the production domain it means `IAPL_NOINDEX` was left set. A development address under `*.dev.netscale.pl` needs nothing; a staging or test copy on any other host must have its host in `iapl({ developmentHosts: […] })` (an array of host patterns: a single string, an empty entry or a lone `*` stops the start) or `IAPL_NOINDEX=1`, or it mails the real addresses in its data), then **Send test e-mail** → "through IWSN". Turnstile (for testing site
`1x00000000000000000000AA`, secret `1x0000000000000000000000000000000AA`; production keys from the client), analytics/pixel
IDs, IndexNow → generate key. Mail/Turnstile errors show up as a dashboard alert.
8. **Forms**: check the addresses in the Emails tab of the seeded forms.
+8 -9
View File
@@ -462,7 +462,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
- an account of the collection **can hold `editor` or `admin`** although its roles are not just the plugin's
(`user, editor, admin, boss`; `viewer, editor`; a `roles` field that is text, json or a relationship) — the
field must hold a LIST (`hasMany`; a single-valued `roles` is not affected, its value never counts): the admin rules too,
since 1.16.8 (the value on the account makes a plugin admin or editor). **Check:** do
since 1.17.0 (the value on the account makes a plugin admin or editor). **Check:** do
accounts with one of your own roles (`boss`, `viewer`) manage accounts there? Then write that as the
collection's own rules. Read the start log: `No staff account holds the role "admin", so NOBODY can create,
delete or unlock accounts in "…"` — give one account `admin` with a script, or write the rules;
@@ -477,7 +477,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
A staff collection added by a plugin listed after iapl gets the same rules at start, put in FRONT of the
rules it has (both must allow). If that plugin's collection needs a rule wider than the plugin's default,
set `custom: { ipal: { accountRules: false } }` on it.
From 1.16.8: a **copy** of a staff collection made by such a plugin (`{ ...staff, slug: 'copy' }`)
From 1.17.0: a **copy** of a staff collection made by such a plugin (`{ ...staff, slug: 'copy' }`)
gets the plugin's rule for its own slug in front of the copied rules — the copy's accounts edit themselves only
after `access: { ...staff.access, update: adminOrSelfIn('copy') }`, and the original's accounts no longer manage
the copy's. A collection of your config that such a plugin makes the panel's (`admin.user`) keeps the rules you
@@ -509,7 +509,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
`staff-accounts-open`, `staff-own-roles`, `turnstile-degraded`, `turnstile-env-key`); as an admin `GET /api/globals/site-integrations` shows
`"smtpPassword":"********"`; a test e-mail and a test form still work; an editor and an admin still log in.
**→ 1.16.8 (security follow-ups; CHANGELOG 1.16.8; PROGRAMISTA §6, item 71) — most sites: update, rebuild, read the start log:**
**→ 1.17.0, security (prepared as 1.16.8, released in 1.17.0; CHANGELOG 1.17.0 "Security"; PROGRAMISTA §6, item 71) — most sites: update, rebuild, read the start log:**
1. Update the package, `pnpm install`, `pnpm exec iapl-skills`. No option, schema, migration or import-map change.
2. **Built with Turbopack?** `grep -n '"build"' package.json` — `next build` without `--webpack`: the old build serves
the plugin's `package.json` under `/_next/static/media/` (registry and repository addresses, no secret).
@@ -525,7 +525,7 @@ account → "Two-step verification: Set up." and the reset button; delete the ac
4. **Start log:** `No staff account holds the role "admin", so NOBODY can …` → give one account `admin` with a script
(`pnpm payload run`, Local API) or write the rules. `Could not check …` → make sure one account holds `admin`.
5. **A plugin listed after iapl that copies a staff collection or sets `admin.user`**
(`grep -rn "\.\.\.staff\|collections: \[\.\.\." src` in the project's own plugins): CHANGELOG 1.16.8 "Requires project
(`grep -rn "\.\.\.staff\|collections: \[\.\.\." src` in the project's own plugins): CHANGELOG 1.17.0 "Security" → "Requires project
changes" — the copy's `access.update`, `accountRules: false`, or naming the collection in `access.staffCollections`.
**Check:** a customer and the lowest staff account get `403` on `POST /api/<staff collection>`; an admin still manages
accounts; `pnpm exec iapl-doctor --url <site>` (`staff-own-roles`).
@@ -553,7 +553,7 @@ ipal-kit"). **Do not rename anything in the project unless the owner asks.**
builds; the panel opens; the old commands (`pnpm exec ipal-doctor`) still run.
**→ 1.17.0, e-mail (the Intecion mail service (IWSN in the panel) is the default transport; Microsoft Graph deprecated; CHANGELOG 1.17.0;
PROGRAMISTA §6, item 73; email.md; AGENT.md §7.2) — nothing to run; read which case the site is:**
PROGRAMISTA §6, items 73–75; email.md; AGENT.md §7.2) — nothing to run; read which case the site is:**
1. **Every site:** no schema change, no migration, no import-map change. `pnpm payload generate:types` gives a small diff
(four field descriptions of Site integrations): run it and commit, or a CI that compares types fails. The e-mail tab gains the block "How e-mails
are sent" and new wording ("Automatic", "Own SMTP server").
@@ -572,7 +572,7 @@ PROGRAMISTA §6, item 73; email.md; AGENT.md §7.2) — nothing to run; read whi
3. **For a site that will use the mail service:** `serverURL` is the public address the site answers on without a
redirect; no proxy or WAF rule blocks `/api/iapl/mail-relay/confirm`; `trailingSlash: true` or another `routes.api` →
Intecion sets the site's confirm address first; "Sender address" is filled in (replies go there); the client's
processing agreement names the service. Nothing to arrange with Intecion: the site is active as soon as it enrols.
processing agreement names the service. Tell Intecion the host: while the service runs with enrolment "pending" (from its launch until Intecion switches to open enrolment), every new site waits for approval (the panel says "waiting for approval"); under open enrolment a site is active as soon as it enrols.
**Launch and a domain move need nothing:** the real domain enrols by itself although the database holds the
development address's connection. **A staging or test copy of the database** neither enrols nor sends by itself
**when it is non-public**: its host matches `iapl({ developmentHosts })` — built in `*.dev.netscale.pl`, so the
@@ -593,9 +593,8 @@ PROGRAMISTA §6, item 73; email.md; AGENT.md §7.2) — nothing to run; read whi
reserve follows it. MongoDB and SQLite sites: no change. deployment.md §4.3a, forms.md "When e-mails go out".
**Check:** `pnpm exec iapl-doctor --deep --url <site>` → no `mail-transport` / `mail-relay-state` / `mail-reply-address` /
`mail-relay-route` finding (or only `mail-graph-deprecated` on a Graph site); Site integrations → E-mail sending →
**Send test e-mail** names the transport you expect; a form submission arrives. **The service has to be live for a site
without SMTP: until Intecion says so, such a site reports `relay-unreachable` and sends nothing — keep SMTP, or
`relay: false`.**
**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`.**
## 2. Inventory (no code changes)
**What changed for projects** between your old and new plugin version is exactly the reference site's diff —