223 KiB
Changelog
Changes that matter for projects built on IAPL (called ipal-kit before 1.17.0; entries below that version keep the
names their release had: ipalKit, ipal-doctor, IPAL_* and the ipal-* skills are the iapl names of today).
How to move to a new version: the iapl-upgrade skill and PROGRAMISTA.md §6.
We keep at least the 20 most recent versions here. When you upgrade a project by several versions at once, go through every "Requires project changes" section in order, starting from the version you have. A new release = a new section at the top; we remove the oldest ones only once there are more than 20.
1.17.1 — security fixes from the IAWL review; the panel's sign-in look; the sending method is chosen
Read before upgrading. MongoDB: no migration. Postgres / SQLite: one migration — a new column for the sending method (point 5). In this order:
1. A write-only secret could be read back (fixed). On 1.17.0 an admin could recover the SMTP password or the Turnstile secret key character by character through a query that names the field (
/api/globals/site-integrations/versions?where[version.smtpPassword][like]=…, REST or GraphQL), only on a site whose project had turned versions on for Site integrations (off by default), or for its own collection with awriteOnlySecretfield. An editor or a plain account could not (their query on the field was refused); visitors never. Now no query can name a write-only field (where/sortanswer400 QueryError); reads still show********. Nothing to do. If such a site is yours and an admin account may have been misused, change the SMTP password and the Turnstile key.2. What can stop a site at start. A config value the plugin does not understand now stops the start with the option's name, instead of being read as off or open — for example
accounts: 0,stats: 'false',consentLog: { retentionDays: null },dashboardAlerts.integrations: 'Admin',buildCsp({ dev: 'false' }),buildSecurityHeaders({ hsts: null }), seedguard: 0, adevelopmentHostslist that is not one. Role names outsideuser,editor,admininrequireRole/requireRoleFieldthrow. Real values start as before. Check before deploying:pnpm build(the error names the option; security.md → "Switches are read strictly").3. What people see change.
- Sites with
whiteLabel: the panel's sign-in page has a new look — a dark panel with the client's logo (Site settings → Logo) or the site's name beside the form, on login and the 2FA screens. Editors can no longer change the site's name, logo and icon in Site settings (admins can;whiteLabel: { brandAccess: 'editor' }gives it back). Every logo that showed on the login screen before shows on the new screens, an SVG too (as a picture). No plate under the logo: a logo with dark letters needssignIn: { logoPlate: true }. The old screens:whiteLabel: { signIn: false }. Forgot / reset password, first user and logout get the look with one config line,whiteLabel: { signIn: { allScreens: true } }, andpnpm payload generate:importmap.- 2FA: correct codes are never refused any more (only wrong ones count towards the limit); several attempts at once may be told "try again in a moment". The admin's 2FA reset works only from the site's own pages.
- Visitors:
/md/<a language the site does not have>is a 404; a never-published page assigned as the 404 page is not shown; a search longer than 10 words or 200 characters is searched by its first words.- A site without
serverURLand withoutNEXT_PUBLIC_SERVER_URLloses the logo in its panel link preview.4. One line in each project: the proxy matcher (
src/proxy.ts) —'/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)';iapl-doctorwarnsproxy-matcheruntil it is changed. Without it pages whose names only start withapi/admin/_nextskip the proxy, as before.5. E-mail — nothing to do, one thing to know. "Sending method" in Site integrations → E-mail sending is a choice again: IWSN (built-in), Own SMTP server, Microsoft Graph (deprecated). Upgrading writes nothing and loses no mail: the field shows the method the site sends through today as selected (no SMTP server → IWSN; an SMTP server → Own SMTP server;
GRAPH_*→ Microsoft Graph), and the site keeps sending that way. Nothing changes until somebody picks another option: saving the page with the method shown stores no choice. A different option picked and saved is stored, and from then on the site sends that way only.** If the chosen method cannot be used — "Own SMTP server" without server, user name and password, "Microsoft Graph" on a server withoutGRAPH_*— e-mails fail and the panel says so; they are not sent another way (in 1.17.0 they would have gone through SMTP or IWSN). The panel warns while the option is being picked, before the save. Postgres / SQLite projects: create and apply one migration (pnpm payload migrate:create; the new fieldemailMethodis a column) in the same deploy. Without it the site still sends its mail the old way and one loud log line says so, but the Site integrations page of the panel does not open. MongoDB: nothing. A seed or script that setemailTransportkeeps working (it leaves the site on the old order); to choose, it writesemailMethod.
Security
- Write-only secrets cannot be named in a query (point 1 above).
secretReadAccess, the field read rule behind it, is exported;writeOnlySecretsets it. - The proxy matcher skipped pages that only start with
api,adminor_next. The documented literal'/((?!api|admin|_next|.*\\..*).*)'did not end those names at "/", so/administracja,/admin-guideor/apisskipped the proxy: no locale redirect, and on a single-locale site withcreateProxy({ csp })no CSP. The literal is now'/((?!(?:api|admin|_next)(?:/|$)|.*\\..*).*)'(DEFAULT_PROXY_MATCHER, the reference site, the starter, the docs). Requires a project change: Next reads the matcher from each site'sproxy.ts, so paste the new literal there;iapl-doctorreports the old one (proxy-matcher, warning). - Form files: a program inside a DOCX / XLSX named
setup.exe.orsetup.exepassed (Windows drops the trailing dot or space when the file is extracted). Trailing dots and spaces are ignored now. iapl-skills --destcompared the paths before resolving links:--dest <a link to .>,..or/passed the "not the project root" rule and lost theiapl-*folders there. The paths are resolved first; a folder that is the project root or holds it is refused. A folder elsewhere (shared skills) still works.- The starter bundle followed symbolic links: a link committed under
reference/would have shipped its target's content in the published bundle (none existed). Links are refused;iapl createalso refuses a bundle path that leaves the new folder. - 2FA verify limit counts wrong codes only. Before, every attempt counted, so the sixth correct login of one
account within 10 minutes (an office sharing a login, several devices) was refused for 10 minutes. Five wrong
codes still lock the account for the window. Several attempts of one account at the same moment: one may be told
"being checked right now, try again in a moment" (
429,Retry-After: 2). A project that wiresbuildVerifyLimitinto its own endpoint callslimit.settle(req, correct)after its check. POST /api/ipal/two-factor/resetrefuses a request a browser marks as coming from another origin (403), like verify and setup since 1.16.7: a page on a sibling subdomain could reset any account's 2FA with an admin's cookie whenserverURLwas not set.twoFactor.sameOrigin: falseturns it off.- Request bodies from strangers are read only up to their cap, also without a
content-length: the mail-service confirm call, CSP reports, page views (stats) and MCP (maxBytes, 64 KiB). - Rich-text links: one check for every stored URL (
autolink, links marked internal, the Markdown output). - Strict switches (point 2 above):
hasMinimumRole/userMeetsRoleanswerfalsefor an unknown role name; before, every staff account met it. - Site integrations versions (when a project turns them on): only admins list them (
readVersions). - Unknown locales:
resolveRoutereturns nothing for a code the site does not have (isSiteLocale);/md/xx, MCPget_pageand the search route no longer fall back to the default language's page. - The 404 page: a never-published page assigned in System pages is not rendered.
- The public preview-image endpoint could be made to fetch from a host named in the request.
GET /api/ipal/admin-ogresolved a site-relative logo address against the request's own host and fetched it with redirects followed, no timeout and no size limit;GET /api/ipal/admin-iconresolved the same way. Both now resolve against the site's configured origin only (serverURL, elseNEXT_PUBLIC_SERVER_URL), ask one address, never follow a redirect, give up after 5 s and stop reading at 512 KB.fetchPublicImage(exported) behaves so for every caller and takes{ timeoutMs }; new exportPUBLIC_IMAGE_TIMEOUT_MS. For a project: nothing to do whenserverURLis set (the starter sets it). A site withoutserverURLand withoutNEXT_PUBLIC_SERVER_URLloses the logo in its panel link preview (the site name is drawn) and the icon endpoint redirects to the media file — setserverURL. A logo or icon whose address answers with a redirect is no longer fetched by the server.
Added
- Sign-in look (
whiteLabel.signIn, on withwhiteLabel). A dark panel with the label "Administration panel", the client's logo (Site settings → Logo) or the site's name, and the panel's languages as links; the form beside it, in both admin themes; a band above the form on a phone. Logo and name come from Site settings: no env var, no new field, no schema change (MongoDB, Postgres, SQLite alike). With nothing set the panel shows the label and the site's host — no Payload or Intecion mark. The logo on a white plate is an option; the default is no plate. signIn: { allScreens: true }— the same look on forgot / reset password, create first user, logout and "unauthorized". Adds the providerSignInLook(one import-map entry:pnpm payload generate:importmap). The project starter writes it for new sites. A production start that does not find the entry inimportMap.jsleaves the provider out and logs what to run; the panel keeps working.- The logo: whatever Site settings → Logo holds, an SVG too, as an
<img>; fits 240 × 72 (it was up to 420 × 120), served from a generated size at least twice as wide when the media collection has one; alternative text = the site's name. Its file is asked once before it is printed (no redirect followed, 4 s, 512 KB): a file that is gone, or is no picture, gives the site's name instead of a broken picture; in any doubt the upload is believed. - Options:
signIn.accent(hex colour of the button, links and focus ring),signIn.logoPlate(a white plate),signIn.svgLogo: false(refuse an SVG logo),signIn.checkLogo: false,signIn.languages: false,whiteLabel.brandAccess('admin'with the look,'editor'as before; field-level access, no schema change). CSS variables--iapl-signin-*for a project'scustom.scss. - Language links before sign-in:
GET /api/ipal/admin-language?lng=<code>writes Payload's language cookie for a supported language and returns to the admin page it was opened from (public; 400 for an unknown language; never redirects off the admin route). Registered only with the sign-in look andlanguages !== false. - The 2FA code boxes have names for screen readers ("Digit 2 of 6") and ask a phone for the numeric keyboard (with the sign-in look).
- Exports:
SignInPanel,SignInLook(/admin);resolveSignInLook,loadSignInBrand,signInLogo,signInName,checkLogoFile,fitLogo,isSvgUpload,languageLinks,LANGUAGE_NAMES,signInCss,isHexColour,signInProviderActive,buildAdminLanguageEndpoint,adminPathFromReferer,SIGN_IN_LOOK,SIGN_IN_STYLE_ID,SIGN_IN_LOGO_BOX,SIGN_IN_NAME_MAX,ADMIN_LANGUAGE_PATHand their types. routes:check— every public route (REST, GraphQL, Next route files) against a committed snapshot with one reason per entry; fails on a route nobody has judged.listPublicRoutes,listNextRouteFiles,compareRouteSnapshot,updateRouteSnapshot(@intecion/ipal-kit),runRouteCheck(@intecion/ipal-kit/doctor); a template in theiapl-auditskill (security.md "Routes nobody has judged").- Closed doors from outside — a Playwright template that asks every door that must stay closed as an anonymous
visitor, a customer and an editor on a production build (security.md "Closed doors from outside"); in this
repository part of
pnpm e2e:built, in both bundlers. iapl-doctorruleproxy-matcher(above).readPublished(minimum)— read rule for a collection with drafts: visitors get published documents only (by id, list,?draft=true, GraphQL).isSiteLocale,limitQuery,SEARCH_QUERY_LIMIT,searchContent/createSearchRoute({ queryLimit }),createMcpRoute({ maxBytes }),assertPluginSwitches.- Docs: decide
twoFactor.requireSetup.exemptfrom a field only admins can write (an admin-only checkbox), not from the e-mail — every account may change its own e-mail (security.md).
Changed
- E-mail: "Sending method" is an explicit choice again — "IWSN (built-in)", "Own SMTP server", "Microsoft
Graph (deprecated)" — and what is chosen is what is used (point 5 above). Only the chosen method's fields are
shown; the state block and the test e-mail name it ("through IWSN" / "through your SMTP server" / "through
Microsoft Graph"). A chosen method that cannot be used fails loudly — status
smtp-incomplete/graph-not-set-up, doctormail-method— and the mail is not sent another way; in 1.17.0 "Automatic" picked the transport from which fields were filled in. Stored in a new field of Site integrations,emailMethod(relay/smtp/graph, empty until somebody chooses);emailTransportstays, hidden. New exports:getMailMethod,setMailMethod,resolveMailMethod,readMailSettings,isMailMethod,MAIL_METHODS,STORED_MAIL_METHOD_CONTEXT,mailMethodColumnMissing, typesMailMethod,ResolvedMailMethod,MailMethodProblem.pnpm payload generate:typesgives a diff (the new field): run it and commit. AdminLogoprints the sign-in panel when the plugin gives itsignIn(the default withwhiteLabel); wired by hand without that prop it is the plain logo as before. The logo on the login screen is now shown inside 240 × 72 px (it was up to 420 × 120).- The credit line under the login form: full-strength muted colour and a hairline above it (it was 60 % opacity).
- The reference site and the starter use
whiteLabel: { signIn: { allScreens: true } }. - The plugin's own
package.jsondeclares@swc/coreinpnpm.ignoredBuiltDependencies: its install script only checks the native binary, which the build already has. pnpm no longer asks about it (repository only; no effect on projects). truncate(summaries, meta descriptions) never returns more than its limit.
Requires project changes
- Postgres / SQLite projects: one migration, in the same deploy — the new field
emailMethodof Site integrations is a column (pnpm payload migrate:create, commit, apply at container start). MongoDB projects: nothing. Until it runs: mail keeps going the old way, the Site integrations page does not open,iapl-doctor --deepreportsmail-method(point 5 above). - The proxy matcher, one line (point 4 above).
- A config value the plugin does not understand stops the start (point 2):
pnpm buildbefore deploying. - Recommended with
whiteLabel:signIn: { allScreens: true }+pnpm payload generate:importmap; look at a project's own login CSS after the update. serverURL(orNEXT_PUBLIC_SERVER_URL) set, as the starter does, for the panel's link-preview logo.
1.17.0 — the plugin is called IAPL; mail works with no setup
Read before upgrading. In this order: the security follow-ups prepared as 1.16.8 (never released on their own), e-mail, the new name, the speed of public pages (one line in
next.config.ts), consent, then Postgres (nothing to do). One schema change, on Postgres / SQLite only: the consent log is now on by default — a project that never hadconsentLogon creates and applies a migration in the same deploy, or setsconsentLog: false(below, "Consent"). MongoDB: no migration.Security first — prepared as 1.16.8, released here. No option, schema, migration or import-map change. Three points: A site built with Turbopack (
next buildwithout--webpack) published the plugin'spackage.json(registry and repository addresses, no secret): update, rebuild, check thatfind .next/static -name 'package*.json'prints nothing, and purge a CDN or cache that may still hold the file. A webpack build (the starter's script): nothing. What can stop people: on a project's own staff collection without access rules of its own whose accounts can holdeditororadminalthough its roles are not just the plugin's — arolesselect such asuser, editor, admin, bossorviewer, editor, or arolesfield that is text, json or a relationship (all withhasMany, i.e. holding a list; a single-valued field is not affected) — an account that is not an admin can no longer create, delete or unlock accounts there, change another account, or change anybody's roles. If no staff account holdsadmin, nobody can (the start log says so; the way out is below). And the other way round: in a staff collection whoserolesis a single select with onlyuser/editor/admin, accounts manage each other again (see Changed). Only where a plugin listed after ipalKit copies a staff collection, or makes a collection of your config the panel's (admin.user): some answers get narrower there — see "Requires project changes". No known site does either.E-mail — read which of three cases the site is. A site with no SMTP server in Site integrations and no
GRAPH_*variables (its mail failed with "not configured" until now) starts sending through the Intecion Notifications Webservice after the upgrade: on its next e-mail it contactswebservices.intecion.netwith its host and the plugin version, receives its own token through a new public route, and sends from[email protected]under the panel's "Sender name". A site with SMTP filled in is not affected and contacts nothing. A site on Microsoft Graph keeps working and prints one deprecation warning at start. Each new behaviour has its opt-out (table below). The service is live athttps://webservices.intecion.net/mail. It starts with enrolment "pending": a site that enrols waits until Intecion approves it (the panel says "waiting for approval"; nothing is sent until then). Switching the service to open enrolment, where a site is active as soon as it enrols, is a later, separate step.The name. Nothing has to change in a project. The plugin's name is now IAPL (Intecion Advanced Payload Library); it was ipal-kit. The package is still
@intecion/ipal-kit, and every name a project uses keeps working. No schema, migration or import-map change.Speed of public pages — two changes. The cookie banner is painted with the page (it appeared after hydration and could be the page's LCP element): nothing to do; remove a project wrapper that delays it (a "mounted" guard,
dynamic(…, { ssr: false })), and with a nonce CSP passnonceto<SiteProviders>. Old behaviour:<CookieBanner firstPaint={false} />. Payload's colour-scheme client hints go to the admin only (Chrome no longer requests the first page of a visit twice): one line innext.config.ts—withPayload(withSecurityConfig(nextConfig))becomeswithSecurityConfig(withPayload(nextConfig)); a panel not at/adminadds{ adminClientHints: { route } }. Without that line the site works exactly as before.Consent — what a visitor of an existing site sees change: "Reject" looks like "Accept all" (it was a plain text button); one more sentence in the default banner text (only where the panel's message is empty); a browser that sends Global Privacy Control gets no banner, no tracker request (also not Google's in Consent Mode
advanced) and can opt in from the cookie button. Every choice is recorded in Privacy → Consent records (the consent log is on by default; no IP, no user agent). Withdrawing now stops Meta, TikTok and Clarity at once. Consent Mode staysadvanced. Each change has an opt-out (table under "Requires project changes"). Postgres / SQLite:pnpm payload migrate:create consent-login the same deploy, oriapl({ consentLog: false })— without either the site works but no choice is recorded (one log line, a doctor warning).Postgres (nothing to do): many form submissions or "forgot password" requests at the same moment no longer stop the site; form and account mail go out right after the commit. Details under "Fixed — Postgres".
Security — prepared as 1.16.8, released in 1.17.0
Security
- A Turbopack build of a site published the plugin's
package.json. The plugin read its own version from that file by a path relative to its module, and a bundler takes such a file for an asset: Turbopack copied it to/_next/static/media/package.<hash>.json, where anyone could fetch it. It is the plugin's manifest, not the project's: the plugin's name and version, its dependency lists with version ranges (also the development ones), its script names, and the addresses of the package registry and the git repository it comes from. No secret, token or password, and nothing of the project. The file name is a content hash and no page links to it. A webpack build (next build --webpack, what the starter and the reference site use) kept the file on the server side: not served. The version is now a constant in the code (src/version.ts); nothing is read from disk at run time. - A staff collection whose accounts can hold
editororadmingets the admin rules. The plugin's checks go by the value on the account:adminon an account of a staff collection makes a plugin admin,editoran editor — whatever else the collection'srolesfield offers. But a project's own staff collection without rules got the admin rules only when ALL its role values were the plugin's; otherwise "an account of this collection" could create, change and delete accounts. So with rolesuser, editor, admin, bossan account with the roleusercreated anadminthere (or set the admin's password) and then read Site integrations, changed other staff collections' roles and listed the panel's accounts; withviewer, editoraviewermade aneditorwho saves Site settings; the same with arolesfield that is text or a relationship withhasMany, or json (a relationship to documents with text ids holds those ids). In 1.16.7 and, wider, before it. Now such a collection — in the config or added by a later plugin — gets: create, delete, unlock — an admin; update — an admin or the account itself; roles — only an admin. Not affected:access.authCollection, collections with rules of their own, arolesselect whose values hold neithereditornoradmin. No known site has such a collection (access.md "Account rules"). - A copy of a staff collection kept rules written for the original. A plugin listed after ipalKit that
spreads a staff collection into another slug (
{ ...staff, slug: 'copy' }) carried the "already handled" marker and the plugin's rules along. "An admin, or the account itself" then meant the ORIGINAL's accounts: with numeric ids (Postgres, SQLite) an account of the original could change the password of the account with the same id in the copy. Now the plugin puts its rule for the copy's own slug in front of every rule it wrote for the original, and both must allow; on a copy named as staff, in front of every rule. Nothing is replaced or rewritten, so a copy is never opened wider than it was and never wider than the plugin's rule — whatever role values it has and however it uses or wraps the copied rules. Itsrolesfield is guarded on every copy. The markercustom.ipalAccountsnames the slug and the staff status ({ slug, staff, own? }). - A collection of the config that a later plugin makes the panel's had no account rules. A collection that is
in your config, is not named as staff, and becomes the login collection because a plugin listed after ipalKit
sets
admin.userto it counted as "already handled": where it had no rules of its own, Payload's defaults stood — an account of any auth collection (a customer) could create, change and delete panel accounts there. Now it gets the plugin's rules when the config goes live, for every operation that had no rule in your config; an operation you wrote a rule for keeps it exactly as written (AccountsMarker.own).
Changed
- A single-valued
rolesfield no longer brings the admin rules. The plugin counts roles only from an array, so an account whoserolesis one value ('admin'in a select withouthasMany, a radio) was never a plugin admin. Yet in 1.16.7 a project's own staff collection whose single select offered onlyuser/editor/admingot the admin rules — and then nobody in it could create, delete or unlock accounts, unless a plugin admin existed in another staff collection. Such a collection now gets "an account of this collection", like any collection whose roles are not the plugin's: its accounts manage each other again. Nothing of the plugin's opens: the value still grants nothing of the plugin's. But inside such a second staff collection this is wider than 1.16.7: an account with the valueusercan create, change or delete the account with the valueadmin. If your own code gives rights by this value, write the collection's own rules (ipal-doctor --url→staff-own-rolesnames it).
Fixed
next dev: a collection that becomes a staff collection in an edit (named inaccess.staffCollectionsfor the first time) gets its rules on the reload; it needed a restart when its config object outlived the reload.- A plain 2FA config guards nothing twice at start (the plugin's rules are marked before its 2FA guard).
Added
- A start-log warning when staff collections run on the admin rules and no staff account holds
admin(checked collection by collection; "could not check" where it cannot tell). pnpm e2e:built(plugin repository): builds the reference site with webpack and with Turbopack and checks, on each, the account rules on a built site (copied staff collections included) and that no package manifest is among the public files. Part of the release gate (PROGRAMISTA §8.1). The reference site's Playwright runs reset the test admins first (e2e/global-setup.ts), so a spec no longer fails because of what ran before it.- Exports:
canHoldStaffRole,rolesAreAList,staffCollectionsNobodyManages,staffRuleOf,isPasswordRuleHook; typesStaffRuleMark,AccountsMarker.markSeenAuthCollections(config, staffSlugs)takes the staff slugs;LateAdoptionhaskeptandknown. - The start log tells a collection that became staff after ipalKit ran from one a later plugin added, and names the rules of its own that were kept.
Requires project changes (what projects must update)
- A staff collection of your own, without access rules, whose accounts can hold
editororadmin(arolesselect withhasManyand one of them next to values of your own, or arolesfield that is text or a relationship withhasMany, or json): only an admin creates, deletes and unlocks accounts there and changes roles; another account is changed by an admin or by itself. If accounts with a role of your own (boss,viewer) managed accounts there, write that as the collection's own rules (access.create/update/delete, field access onroles) — the plugin gives your values no rights. In a collection where nobody can be anadmin(viewer, editor), accounts are managed by an admin of another staff collection (the panel's). - Read the start log after the upgrade.
[ipal] No staff account holds the role "admin", so NOBODY can create, delete or unlock accounts in "…": no account of any staff collection is an admin. Give one account the role with a script (payload.update({ collection, id, data: { roles: ['admin'] } }),pnpm payload run), or write the collection's own rules. To switch the default off for every staff collection:accounts: { adminOnlyCreate: false, adminOnlyWrite: false }(that also takes the protection off). - A site built with Turbopack: update and rebuild — the new build has no
package.<hash>.jsonunder/_next/static/media/. Check:find .next/static -name 'package*.json'prints nothing. Purge a CDN or cache in front of the site. Nothing to do for a webpack build. - A staff collection of your own whose
rolesis one value (a select withouthasMany) with onlyuser/editor/admin, and no access rules: its accounts manage each other again (see Changed). If your own code gives rights by that value, write the collection's rules. - Only if a plugin of yours copies a staff collection (
{ ...staff, slug: 'copy' }, or a new collection that reuses a staff collection'saccessobject) — three answers get narrower:- The copy's own accounts and "the account itself". In the copy, the copied rule "an admin, or the account
itself" lets only an admin through (it still speaks of the original's accounts). If the copy's own accounts
should edit themselves, give the copy its own rule — one line:
access: { ...staff.access, update: adminOrSelfIn('copy') }(access.md "Account rules"). Before this change those accounts could not edit themselves either. - A copy named as staff whose own rules were wider than the plugin's — a public
read, an opencreate, a rule that returns a query, Payload's defaults where it dropped a rule: in 1.16.7 a copy counted as handled and kept them; now the plugin's rule goes in front, so a customer or an anonymous request no longer passes. To keep the copy's rules exactly as they are:custom: { ipal: { accountRules: false } }on the copy. - Where the original has roles of its own (
lead, member): its accounts could manage the copy's accounts (create, change, delete) through the copied rule "an account of the original". They no longer can: only a plugin admin manages the copy's accounts (the copy's own accounts could not before and cannot now), until the copy writes rules of its own (access.create/update/delete).
- The copy's own accounts and "the account itself". In the copy, the copied rule "an admin, or the account
itself" lets only an admin through (it still speaks of the original's accounts). If the copy's own accounts
should edit themselves, give the copy its own rule — one line:
- Only if a plugin listed after ipalKit sets
admin.userto a collection of your config that you did not name as staff: the operations that collection has no rule for get the plugin's (an admin; update — an admin or the account itself; read — staff). Rules you wrote on it stay. Better: name it inaccess.staffCollections(or list that plugin before ipalKit) — then it is handled at config time like any staff collection. pnpm ipal:skills.
Known limitations
- A staff collection without a
rolesfield is unchanged: every account of it is an admin to the plugin. - A
rolesselect of your own whose values hold neithereditornoradminis unchanged: inside it every account may create, change and delete accounts (ipal-doctor --url→staff-own-roles). - The plugin judges a collection by its declared
rolesfield. A value that a hook of the project's own puts intorolesis not seen, and a rule of the project's own (access.create, field access onroles) replaces the protection for that operation. - A relationship
rolesfield makes a plugin admin only where the related documents' ids are the role names; over REST such an account's roles arrive as documents and do not count, over GraphQL and the Local API at depth 0 they do. The admin rules apply to the collection either way. - The start-log check reads up to 1000 accounts of a collection whose
rolesfield the database cannot be asked about; with more it says "could not check" for that collection. next dev: a collection that STOPS being a staff collection in an edit keeps the rules until a restart; after a reload the adoption still runs with the options the site started with.- A marker or a function mark written by hand in the project's own config is taken at its word ("handled" for a marker of the collection's own slug); a hand-made function mark only ever adds the plugin's rule in front.
- Not run for this release: a built site on Postgres or SQLite (the account rules ran over HTTP on SQLite, Postgres and MongoDB; the built site, webpack and Turbopack, on MongoDB); a real plugin that copies a staff collection; a real tracing library around access rules.
Requires project changes
-
Postgres / SQLite, consent log (first, before the deploy): the consent log (
consent-records) is now on by default. A project that did not setconsentLogbefore gets a new table (consent_records, plus aconsent_records_idcolumn on Payload'spayload_locked_documents_rels; nothing dropped): runpnpm payload migrate:create consent-log, commit the migration and have it applied when the new container starts (prodMigrations, or the start commandpnpm payload migrate && pnpm start) — in the same deploy. Or setiapl({ consentLog: false }). Without either nothing breaks: the page and the banner work,POST /api/ipal/consentanswers503, the server logs once "the consent-records table does not exist…", andiapl-doctorreportsconsent-log-migration(warning). A project that already hadconsentLog: true: nothing. MongoDB (the eight client sites): nothing — the collection appears by itself. -
Generated types: where the consent log was off,
payload generate:typesadds theconsent-recordscollection (ConsentRecord, its select type); run it and commit. The import map does not change (the log has no admin component). -
What changes for an existing site on upgrade — consent (an unedited 1.16.7 site,
SiteProviderslayout):Before After Opt-out "Reject" on the banner plain text button next to a filled "Accept all" the same filled button as "Accept all" <CookieBanner equalChoice={false} />Default banner text (panel message empty) "…or choose which to allow." + "You can change your choice at any time with the cookie button, and set cookie rules in your browser too." (Polish: the same sentence in Polish) write the message in Cookies → Banner A visitor whose browser sends Global Privacy Control, no choice yet the banner; in Consent Mode advancedthe Google tag loaded and pinged before a choiceno banner (decided before the first paint), the cookie button; nothing sent to Google or a pixel; nothing stored. Analytics no longer counts these visitors unless they opt in from the cookie button (share unknown; Brave, DuckDuckGo, Firefox private windows today) <SiteProviders gpc="ask">(banner, still nothing sent before a choice) orgpc={false}(ignored)Such a visitor who had clicked "Accept all" after 1.17.0 without the signal, and turns it on later — analytics and marketing switched off on the next page, their cookies deleted, the record rewritten and logged gpc={false}Such a visitor whose choice dates from before 1.17.0 — the choice stands until it expires (180 days) or they change it — Consent log none unless consentLog: trueevery choice stored in Privacy → Consent records (admin only): random id, choices, policy version, time; purged after 3 years iapl({ consentLog: false }); one layout:logEndpoint={false}Withdrawing (cookie button → "Reject") cookies deleted; Meta, Clarity, LinkedIn, TikTok kept running until the next page the same, plus Meta, TikTok and Clarity told at once, listed local / session storage keys removed — Clarity on a site without GA4 / GTM never got a consent signal: ran without cookies for EEA visits (every page view a new visitor) consentv2sent when it loads: sessions hold together after consent— Google tag Consent Mode default the same, plus ads_data_redaction(no ad-click ids in Ads requests while marketing is denied)— Consent Mode advancedadvanced(unchanged)consentMode: 'basic'Schema — MongoDB: a new collection, created by itself. Postgres / SQLite: a new table (migration above) consentLog: false -
A CI that compares generated types:
payload generate:typesgives a diff on upgrade — four field descriptions of Site integrations changed (no type did). Run it and commitpayload-types.ts. The import map does not change. -
Nothing else has to be run. The e-mail tab of Site integrations has a new block ("How e-mails are sent"); it is rendered by the status banner already in every import map, so
generate:importmapgives no diff. No field was added; "Sending method" keeps its two stored values. -
What changes for an existing site on upgrade — e-mail:
Site today After the upgrade Opt-out SMTP filled in (server, user name, password) Nothing. No call to Intecion — GRAPH_*set and "Microsoft Graph" chosenMail as before. One deprecation warning in the start log, one doctor warning ( mail-graph-deprecated)mail: { graphDeprecationWarning: false }(the log line)GRAPH_*set, "Sending method" on SMTP, no SMTP server (mail failed until now)Mail goes through Graph fill in SMTP, or remove the variables Neither (mail failed until now with "not configured") An outbound call: on the next e-mail the site enrols with the service — POST https://webservices.intecion.net/mail/v1/enrolwith its host and the plugin version — and then sends through it, from[email protected]. At the start the service holds every new site for Intecion's approval (enrolment "pending"; the panel says so); once the service switches to open enrolment, a site is active as soon as it enrolsiapl({ mail: { relay: false } })Any site with the mail service enabled (the default) A new public route: POST /api/iapl/mail-relay/confirm— answers404and changes nothing unless the site itself started an enrolment in the last 5 minutes; rate-limited. Three admin-only routes beside it (…/status,…/connect,…/disconnect)mail: { relay: false }removes all fourA copy of a site's database on a non-public site — a host that matches developmentHosts(built in:*.dev.netscale.pl, Intecion's development domain; no env needed) or one withIAPL_NOINDEX=1(staging made from production; production's data copied back onto the development address), with no SMTP thereIt does not enrol or send by itself — its data is production's, and it would mail real people: sends report relay-refused, the panel and the doctor say why. "Connect again" lets it send;mail: { relay: false }or SMTP to a catcher keeps it silent for good. A copy on another host without the variable sends (it looks like launch day); a production site that keptIAPL_NOINDEX=1sends nothingmail: { relay: { otherHosts: 'enrol' } }A site launched on its real domain after it was built on a development address; a moved domain Nothing to do: it enrols by itself on its first e-mail mail: { relay: { otherHosts: 'wait' } }makes it wait for "Connect again"SMTP half filled in — a server or a user name, but not server, user name and password (until now: refused, "Fill in the server, user name and password") Sent through the mail service; one line in the server log and a hint in the state block say that the SMTP settings are incomplete complete or empty the SMTP fields; mail: { relay: false }"Microsoft Graph" chosen in the panel but GRAPH_*missing (until now: SMTP with a warning)SMTP if filled in, otherwise the mail service as above A site on localhostor withoutserverURLRefused by the plugin itself; nothing leaves the machine. Development: SMTP (a local catcher) as before — For a site that will send through the service:
serverURLmust be the public address the site answers on without a redirect; "Sender address" should be filled in (replies go there — the service's address has no mailbox);trailingSlash: trueor aroutes.apiother than/apineeds Intecion to set the site's confirm address first; the client's processing agreement should name the service (recipients and message bodies pass through it). Steps and checks:iapl-upgrade"→ 1.17.0, e-mail", email.md. -
Microsoft Graph is deprecated and will be removed in 2.0 (with Payload 4). It works unchanged through 1.x. To move a site: email.md "Moving off Microsoft Graph" — when the owner says so, not in passing.
-
Recommended, one line — public pages load with one request instead of two: in
next.config.tschangewithPayload(withSecurityConfig(nextConfig))towithSecurityConfig(withPayload(nextConfig)). Payload'swithPayloadsendsAccept-CH,Critical-CHandVary: Sec-CH-Prefers-Color-Schemefor every path, andCritical-CHmakes Chrome repeat the first document request of every visit; as the outer wrapper,withSecurityConfigkeeps the three headers on/admin/:path*only. A site that is not edited behaves exactly as before (the inner wrapper cannot see Payload's rule). Another panel address:{ adminClientHints: { route: '/its' } }; the old behaviour on purpose:{ adminClientHints: false }. Check:curl -sI <site>/pl | grep -i critical-chprints nothing,<site>/admin/loginstill prints it.iapl-upgrade"→ 1.17.0, the public pages' first request", security.md "Client hints". -
Otherwise nothing. Recommended after the update:
pnpm exec iapl-skills(or the project'sipal:skillsscript) and commit — the skills are namediapl-*now; the 16 oldipal-*folders are removed by name, a project's ownipal-…skill stays, and the pointer block inAGENTS.mdis rewritten in place. -
A log filter or alert on
[ipal], or a script that reads the doctor's output: the log prefix is[iapl]; the doctor's summary line startsiapl-doctor:(wasipal-doctor:), and its internal status line isIAPL_DOCTOR_STATUS. The rate-limit scope ofGET /api/ipal/doctorwas renamed with it (one fresh minute). -
CI that runs the doctor with
--strict: until the skills are refreshed it exits 1 with two warnings (agents-md,skills-current: the skills and the pointer block are older than the plugin) — as after every upgrade. Runpnpm exec iapl-skillsand commit in the same change as the version bump.
Changed
- Consent: "Reject" is as prominent as "Accept all" by default (
equalChoicedefaults totrue). The EDPB Cookie Banner Taskforce (2023) found a missing or weaker reject option an infringement for most authorities; a UODO article repeats it.equalChoice={false}restores the secondary look;iapl-doctor(consent-banner) warns, and a development console warning names a bannerorderwithout'reject'. - Consent log on by default (
consentLog—falseturns it off). The endpoint reads at most 4 KiB of body (413beyond, before anything is parsed) and refuses aversionabove the site's policy version (400).<SiteProviders>posts every decision to it by itself:getSiteShellgivesconsentLogEndpoint('/api/ipal/consent'with the config's API route,nullwhen the log is off);logEndpoint={false}stops one layout. A write without its SQL table answers503and logs one line per process. The posted body gainsgpc; the record's fields are unchanged. - Consent: withdrawal stops the tools already running —
fbq('consent', 'revoke'),ttq.revokeConsent(),clarity('consent', false)(andgrant/consentv2on a new grant), and the panel's listed local / session storage keys of the category are removed with its cookies (also the panel's listed cookie names). Clarity getsconsentv2when it loads.ads_data_redaction: trueis set with the Consent Mode default. - Default banner text (English and Polish, used only when the panel's message is empty): one more sentence on changing the choice with the cookie button and setting cookie rules in the browser (PKE art. 399 asks for the latter).
- Docs:
docs/consent.mdno longer calls equal choice a "UODO requirement" (it is the EDPB authorities' position, repeated by UODO; no UODO or UKE banner decision was found) and no longer says Global Privacy Control is not needed.docs/analytics.mdsays what Consent Modeadvancedsends before consent. - The cookie banner is part of the first render (consent.md → First paint).
Until now
<CookieBanner>rendered nothing until the page had hydrated, so on a first visit its text appeared late and on a text page became the LCP element (reference site, mobile profile, 4x CPU, slow 4G: page painted at 1.0 s, banner and LCP at 2.7 s; now banner and LCP at 1.0 s; CLS unchanged). The banner is now in the server HTML withhidden, followed by one small inline script that, before the browser paints, shows it (no decision, an older Policy version, an unreadable cookie) or keeps it hidden (current decision). An existing site gets this by updating, with no edit; public pages stay static / ISR. Nothing about consent changes: no tag loads earlier, the Consent Mode default is still pushed first, the cookie, the consent log and withdrawal are as before. A click on a banner button before hydration is carried out once the page is live. What an existing site may notice: the page's HTML is about 3 kB larger, 1.2 kB gzipped (the banner's markup and the script; the detailed cookie list is not in it);[data-ipal="banner"]exists in the DOM (hidden) for a returning visitor until hydration — a project e2e test that counts the element right after load should asserttoBeHidden(); with a nonce CSP the script needs the nonce —<SiteProviders nonce>passes it (without it the banner appears after hydration, as before); with Tailwind 3 and aclassNames.rootthat setsdisplay, add[data-ipal="banner"][hidden] { display: none !important }. Old behaviour:<CookieBanner firstPaint={false} />.CookieButtonanduseConsentread the decision through a store (useSyncExternalStore) instead of an effect. - New names beside the old ones (the old ones are deprecated and go in 2.0):
iapl()foripalKit(),IaplOptions,iaplEnvRules,IaplEnvFeatures,iaplT,iaplVar,IAPL_TOKENS,IAPL_BREAKPOINTS,IaplTokenName,IaplGlobalSlug; commandsiapl,iapl-doctor,iapl-skills,iapl-tokens,iapl-blocks(theipal-*commands are the same programs); envIAPL_<NAME>, withIPAL_<NAME>read when the new one is missing or empty;iapl-doctor.json(an existingipal-doctor.jsonis read and written as before);iapl-audit-skip:; the pointer block<!-- iapl:start -->. - Not renamed: the package and its import paths, import-map paths, routes
/api/ipal/*, CSS tokens--ipal-*,data-ipalhooks,config.custom.ipal,req.contextflags, theipaltranslation namespace, the headerX-Ipal-Cookie-Crawler. They change, with a migration path, in 2.0. ipalEnvRules()still returns its rules under theIPAL_names (theIAPL_ones as aliases), and the constantsCOOKIE_SCAN_URL_ENV/COOKIE_SCAN_TOKEN_ENVkeep their values, so code that adapts the rules by name or readsprocess.env[COOKIE_SCAN_URL_ENV]works as before. New:iaplEnvRules()(namesIAPL_…, old ones as aliases),IAPL_COOKIE_SCAN_URL_ENV,IAPL_COOKIE_SCAN_TOKEN_ENV, andreadEnv/legacyEnvName(from/envor the root) for code of your own.- The files
bin/ipal-*.mjsare still in the package and run the new commands (older skills and CI call them by path). - Docs, the agent guide and the skills use the new names;
AGENT.mdhas one table of old and new names ("Names: IAPL and ipal-kit"). - Audit findings whose titles named a command (
iapl-tokens --check, "forms in iapl",IAPL_IP_HEADER in .env.example) keep their doctor rule ids, so settings in a project's doctor file still match.
Added
- Global Privacy Control honoured (consent.md → Global Privacy Control):
a browser that sends
Sec-GPC: 1/navigator.globalPrivacyControlgets no banner, analytics and marketing stay off and nothing is sent to Google (also in Consent Modeadvanced) or a pixel; the visitor can still opt in from the cookie button, and that choice wins (stored withgpc: true). A grant made without the signal gives way when the signal appears. Decided in the browser before the first paint — pages stay static, noVary. Options:gpc: 'honour' | 'ask' | falseonSiteProviders/ConsentProvider/consentBannerScript. Building blocks:resolveConsent,gpcFromNavigator,gpcFromHeaders,GPC_CATEGORIES,GPC_HEADER,gpcWellKnown(/.well-known/gpc.json), typesGpcMode,ResolvedConsent;/client:readEffectiveConsent,signalVendors,clarityConsent. The consent record gainsgpc; the statistics endpoint keeps a visitor id out while the signal overrides a choice made without it. Text:texts.gpcNotice(PL / EN), class slotgpcNotice. maxAgeDaysonSiteProviders/ConsentProvider/useConsent: the re-ask period (default 180 days).CONSENT_LOG_PATH('/ipal/consent').- Doctor rules
consent-log-migration(Postgres / SQLite with the log on and no migration creatingconsent_records: warning — every consent check of 1.17.0 is a warning) andconsent-banner(equalChoice={false}, anorderwithout'reject',gpc={false},cookieButton={false}with noreopen, a hand-wiredConsentProviderwithoutlogEndpoint: warnings;gpc="ask": info; the crawl judging another Consent Mode than the layout: warning). iapl-consent-check: five runs — adds Global Privacy Control, equal prominence (computed size and look of "Reject" against "Accept all") and withdrawal; warns about YouTube thumbnails, Google Fonts and the Maps API loaded before a choice.<YouTubeEmbed>warns in development when it has noposter.- consent-behaviour-spec.md — the behaviour IAPL and IAWL share: categories, the record and cookie, Consent Mode mapping, Global Privacy Control, equal prominence in testable terms, the shared test list. dev/consent-compliance-proposal.md — where the banner stands against the rules, with sources.
- Payload's colour-scheme client hints go to the admin only (security.md "Client hints").
withSecurityConfig(withPayload(nextConfig))— the wrapper outsidewithPayload— movesAccept-CH,Critical-CHandVary: Sec-CH-Prefers-Color-Schemefrom/:path*to/admin/:path*. Before, every public page, route handler and static file carried them, and Chrome requested the first page of a visit twice (measured on the built reference site, both bundlers: 2 document requests → 1; one network round trip less before the first byte). The panel keeps its light / dark first paint. OptionadminClientHints:{ route }for a changedroutes.admin,{ sources }for more paths,falsefor the old behaviour. Exports:scopeColorSchemeClientHints,adminClientHintSources,COLOR_SCHEME_CLIENT_HINT, typeAdminClientHintsOptions. Doctor ruleclient-hints(info): the wrapper is insidewithPayload, or (with--url) the home page still sendsCritical-CH. The starter and the reference site use the new order; an existing site changes one line ("Requires project changes"). - Consent, first paint:
CookieBannerpropsfirstPaint(defaulttrue) andnonce;ConsentProviderpropsnonceandcookieValue,SiteProviderspropconsentCookie(optional server read of the consent cookie: no banner in the HTML of a visitor who decided, at the price of dynamic pages);consentBannerScript({ version, cookieName })from the root for a project's own banner;useConsent/useConsentContextalso returnhydratedandserverRead. - The Intecion Notifications Webservice (IWSN) as the default e-mail transport (email.md, AGENT.md §7.2).
The admin panel calls it IWSN; docs, logs and the doctor use the full name.
mailAdapter()now picks per send: Graph when the panel says so andGRAPH_*is set → SMTP when the panel has a server → Graph whenGRAPH_*is set → the mail service → not configured (resolveMailTransport). The site holds no mail key: it enrols by a call-back to its own domain and keeps its token inpayload-kv(one entry per host,iapl:mail-relay:site:<host>— no field, no column; not readable over REST or GraphQL, an admin included; proven by a test). The token is bound to the site's server addresses and to the host it was issued for (a database copied to another host enrols as itself), rotated every 90 days, healed by re-enrolment. One message = oneIdempotency-Keyand one encoding across at most three attempts; a send with no answer is reported as not confirmed (it may be out) and, while the same process runs, goes out under the same key when sent again (after a restart or from another instance a repeat is a new message). One message has one budget of time — 10 seconds, 30 with files (mail.relay.totalTimeoutMs) — so a service that hangs does not hold a form's visitor for the sum of the attempts. Every message says what it is (form notification, form confirmation, account, test, system): form mail and Payload's "forgot password" are marked by the plugin;withMailKind/runWithMailKindfor a project's own. Account mail is limited by the site itself (5 an hour to one address, 10 by one visitor;mail.relay.accountMail). Limits and the file size come from the service (30 an hour, 200 a day, 10 MB unless Intecion set others);mailAttachmentLimitreports the latter. - Plugin option
mail:mail: { relay: false | { url, host, enrol, token, senderName, kind, accountMail, confirmRateLimit, accessKeyField, otherHosts, developmentHosts, totalTimeoutMs, timeoutMs, retryBackoffMs, fetchImpl }, graphDeprecationWarning };mailAdapter({ relay }). - Plugin option
developmentHosts(defaultDEFAULT_DEVELOPMENT_HOSTS=['*.dev.netscale.pl']): host patterns of development, preview and staging addresses. A site whose own host matches is non-public with no environment variable: holding a copy of another site's data, it does not mail real people by itself (the table above).*.dev.netscale.plis Intecion's own development domain, where the team's sites are built before launch; a project replaces the list with its own patterns or empties it ([]). Building blocks:matchDevelopmentHost,isDevelopmentHost,assertDevelopmentHosts,pluginDevelopmentHosts,siteIsNonPublic,siteNonPublicSignal(NonPublicSignal). A malformed list (not an array of non-empty host patterns, or a lone*) stops the start instead of being ignored; patterns are punycoded, a trailing dot and the port are ignored. Doctor:mail-non-public(info, deep) names the signal that makes a site non-public. The list is about mail only: it does not make a development host noindex. Keeping development addresses out of search engines stays the hosting's business (Coolify) orIAPL_NOINDEX=1. Nothing changes in what a site serves to robots on upgrade. - Panel: the state block on the e-mail tab (transport in effect, the site's state with the service, sender and
reply address, what is left of the limits, a replaced sender name; "Check now", "Connect again", "Disconnect";
"Enter an access key" for a token issued by hand only with
mail.relay.accessKeyField: true); "Sending method" reads "Automatic" / "Microsoft Graph (deprecated)"; the server field reads "Own SMTP server"; the test e-mail names the transport it used. New status codesrelay-*with texts in English and Polish. Withrelay: falsethe tab is worded as in 1.16. - Doctor:
mail-transport,mail-relay-state,mail-reply-address,mail-graph-deprecated,mail-relay-route; the status endpoint reportsmail(states and codes only). - Building blocks (root entry):
relayAdapter,enrolRelay,getRelayStatus,rotateRelayToken,disconnectRelay,setRelayToken,sendThroughRelay,relayRequest,buildRelayMessage,bareAddress,bareAddresses,cleanSubject,relayConfirmEndpoint,relayPanelEndpoints,mailPanelState,resolveRelayOptions,relayHost,isPublicHost,relaySenderName,relayAttachmentLimit,relayStatusFor,withMailKind,runWithMailKind,mailKindOf,expectMailTo,buildFormMailKindHook,createFakeRelay(the service in memory, for tests), the constantsRELAY_*,MAIL_KINDS,MAIL_KIND,GRAPH_DEPRECATION_NOTICE, and their types;MailRelayStatusfrom/admin. - The wire contract of the service (version 1.7.1) is copied in the repository (
contracts/mail-relay/) with a checksum test; every example of it runs against the plugin's fake service and against the plugin's client. iapl-doctorrulelegacy-names(info): lists the old names a project still uses, each with the new one. Information, not a defect. A warning only foriapl-doctor.jsonandipal-doctor.jsonside by side, or one variable set asIAPL_…andIPAL_…with different values (theIAPL_one is read).storageNames: 'ipal' | 'iapl'(default'ipal') for the two names the plugin stores: the statistics visitor cookie the cookie scanner declares (ipal_vid/iapl_vid) and the 2FA attempt counter's key inpayload-kv(ipal:2fa-verify:…/iapl:2fa-verify:…). Sites made withiapl createfrom this version on get'iapl'; existing sites change nothing — same cookie, same cookie list, same counters. With it:<PageStats visitorCookie>,IAPL_VISITOR_COOKIE,visitorCookieFor,twoFactor.verifyLimit.keyPrefix, and the doctor rulestorage-names(the cookie the layout sets is the one the scanner declares). Withdrawing consent deletes the cookie under either name. Not a switch for a live site: it would start visitors' histories and the running 2FA counts again.EnvRule.aliasesforassertEnv: older names of a variable, read when the main one is missing.
Fixed — Postgres: many requests at once no longer stop the site
- Ten or more form submissions at the same moment, or ten "forgot password" requests, stopped the whole site on
Postgres — every request, also pages that only read, waited for good (older than 1.17.0; MongoDB sites were not
affected). Each transaction holds a pool connection, and code inside it that runs without its
req(Payload's own "forgot password", the e-mail adapter reading Site integrations and writing the send status,payload.kv) needs a second one; the default pool has 10. Measured on Postgres 17: 12 submissions or 12 resets at once never finished; now 30 of each, also against an SMTP server that never answers, finish while an ordinary request answers at once. connectionReserve(new plugin option, default on): a fifth of the pool, at least 2, stays free of transactions; at mostpool size − reservetransactions are open at once and the next one waits. A transaction begun inside another one (a project hook that calls the Local API withoutreq) takes no place and goes at once, but never takes the last connection — 9, 12 and 30 such submissions at once finish (before: 12 stopped the site).false= as before. Building blocksreserveConnections,watchTransactions,afterCommit,inWatchedTransaction,transactionsBusy,transactionWatchState,poolSize,defaultConnectionReserve,RESERVE_ESCAPE_MS(deployment.md §4.3a, with the measured table).- Payload's "forgot password" and "verify your e-mail" go out after their transaction commits when sent through
mailAdapter()(mail.accountMailAfterCommit, default on; same request, nothing sent on a rollback). The message is matched to its request by its token (Payload'sgenerateEmailSubjectis wrapped; a project's own one is kept). With the mail service hanging, 30 resets and 30 submissions at once finish in about one send budget (11 s) instead of 43.5 s. Building blockswithAccountMailAfterCommit,sendAccountMailAfterCommit,holdAccountMail,releaseAccountMail. - Form e-mails go out after the submission's transaction commits — same request, same answer to the visitor
(a file that could not be sent is still reported). A submission rolled back by a later hook now sends nothing; a
send that fails after the commit leaves the submission stored (as a failed e-mail always did). Sites without
transactions (MongoDB without a replica set, SQLite) send at once, as before. The old way:
forms: { emailsInTransaction: true }. Building blockssendAfterCommit,sendFormEmails(forms.md "When e-mails go out"). - The panel's send status (
recordIntegrationStatus): many sends failing at once write it once; while the pool is busy the write is not waited for. - SMTP time-outs: 10 s to connect (was nodemailer's 2 min), 30 s for the greeting, 60 s of silence (was 10 min);
mailAdapter({ smtp: { timeouts } })/panelSmtpAdapter({ timeouts }),SMTP_TIMEOUT_DEFAULTS,SmtpTimeouts. - Not covered: an e-mail adapter of your own (not
mailAdapter()) still gets Payload's account mail inside the transaction unless it callssendAccountMailAfterCommitfirst.
Deprecated
- Microsoft Graph as an e-mail transport —
graphAdapter,GraphAdapterArgs,mailAdapter({ graph }),iaplEnvRules({ emailGraph })and the fourGRAPH_*variables. Nothing new is built on it; it gets fixes only and is removed in 2.0. A site on it prints one warning per start (silence:mail: { graphDeprecationWarning: false }); the starter andiapl-setupno longer offer it.
1.16.7 — hardening
Read before upgrading. Several defaults get stricter. Most sites change nothing, but check "Requires project changes". What can stop people: an account with only the role
usercan no longer open the panel; a form with files is refused while Turnstile is misconfigured; a script that creates staff accounts with a password under 12 characters fails; behind a proxy that hides the site's address and withoutserverURLnobody can enter a 2FA code; a project's own staff collection without access rules gets rules; changing the SMTP server in the panel asks for the password again; a slug inaccess.staffCollectionsthat is not an auth collection keeps Payload from starting (with a health check the old container keeps serving). Not a routine patch: agree the deploy with the owner and read the first start's log. No import-map change, no schema change and no migration on any database.
Security
- A secret that is not text is refused (
false,0, a list, an object used to be stored as typed). - Stored secrets are write-only.
smtpPasswordandturnstileSecretKey(Site integrations) were returned by REST and GraphQL, and sent to the browser by the panel, for everyone who could read that global; the "masked" field only drew dots. Now every read through access control gets'********'when a value is stored; only server code (the Local API with access control off) reads the value. A save that sends nothing, an empty value or the mask keeps the stored value;'[[clear]]'removes it. The panel is the source of these secrets (security.md "Stored secrets"). - The SMTP password stays with the server it was saved for. Hiding the value was not enough: an admin
session could point the SMTP server at a machine of its own and have a test e-mail deliver the password. A
save in the panel or over the API that changes the server, the port or the user name while a password is
stored must now send the password again, or remove it (
secrets.reenterOnChange) — whatever the transport says (the mail adapter falls back to SMTP when Microsoft Graph is not configured). Server code with the Local API is not asked. - Restoring a version of Site integrations (only where a project turned versions on for that global)
answered with the stored secrets; they are masked there too (
maskSecretsOnRestore). - Nobody creates an account for themselves, or takes one over. (1) Payload's first-user route
(
POST /api/<slug>/first-register) answers for every empty auth collection. On an empty second staff collection (access.staffCollections) the first visitor became a staff account — an admin to the plugin. It now answers only for the collection the panel logs in with, in any spelling of the URL (the plugin's own endpoint sits in front of Payload's). (2) A project's own staff collection withoutcreate,updateordeleterules had Payload's default, "any logged-in user" — an account of any auth collection: a visitor account could create a staff account, or change a staff account's password and roles. Such a collection now gets rules for the operations it has none for: with the plugin's roles — an admin (update: or the account itself); with role values of its own, or none — an account of that same collection, or a plugin admin.unlockgets the admin rule andread"a staff account" (a visitor account could list the staff accounts and lift their login lock). An account never changes its own roles: the collection'srolesfield, when it has no field access of its own, is closed for that.readVersionsgets thereadrule (versions hold what the accounts hold). The rules hold with 2FA on and off, in a production build, and for a staff collection that a plugin listed after ipalKit adds — there they are put in front of whatever rules that collection has (in a sanitized config Payload's default cannot be told from a rule somebody wrote). Anonymous sign-up into the staff collection was already refused; the plugin's injected collection already had these rules. No known site has a second staff collection (access.md "Account rules"). - 2FA verify and setup attempts only from the site's own origin. A page on another origin that the browser
still sends the login cookie to (a sibling subdomain, when neither
serverURLnorcsrfis set) could burn an account's five verify attempts and lock its owner out, without the password. Such requests are refused before they are counted. A refusal is logged once per origin with the ways to allow it. The verify count is also stored in the database, so a restart or a second instance no longer resets it. - Dashboard alerts no longer show integration error texts to every panel role: details for admins, a neutral
line for editors, nothing for others or for a session that still owes its second factor (
'all'restores the old behaviour and checks neither).
Changed
- The admin panel opens for
editorand above (accounts.panelRole). An account that holds onlyusersees "Unauthorized" in the panel; the API is not touched. Withaccess.firstUserAdmin: falseand a default role below the panel role the first account of a fresh site could not get in: the default panel role is then not applied (a warning at start), and an explicitaccounts.panelRoleis refused at start with the fix. - A password set on a staff account has at least 12 characters and is not the account's e-mail address
(
accounts.password) — also in a reset by e-mail and a bulk update. Existing passwords are never checked. - A form with files is refused while Turnstile cannot check (wrong or missing secret, Cloudflare down); a
text form is accepted as before (
forms.turnstileOnConfigError). TURNSTILE_SECRET_KEYfrom the environment is deprecated. It still works when the panel field is empty and logs a notice once per start. It will be removed in a later release, named here in advance.
Fixes
- Role checks in a client component: import
isAdmin,isEditorandhasMinimumRole(and the typeRole) from@intecion/ipal-kit/client. The advice since 1.16.4 led to importing them from@intecion/ipal-kit, which reachesserver-onlymodules:next build --webpackfails with'server-only' cannot be imported from a Client Component module. The main entry keeps exporting them for server code; its Turbopack behaviour is unchanged. access.md also says now whatuseConfig()carries:admin.useronly, so accounts ofaccess.staffCollectionsneed{ staffCollections: [...] }.
Added
- Options:
accounts(panelRole,adminOnlyCreate,adminOnlyWrite,staffOnlyRead,firstUserRoute,password),secrets.writeOnly,secrets.reenterOnChange,forms.turnstileOnConfigError,twoFactor.sameOrigin,twoFactor.verifyLimit.store,dashboardAlerts. - ipal-doctor rules:
access-missing(noaccessoption: every panel account is an admin),csrf-empty(neitherserverURLnorcsrf), and with--url:open-signup(info),staff-accounts-open(error; warning forreadandreadVersions: a staff collection an account of another collection may write to, read or unlock),staff-own-roles(warning: a staff collection with role values of its own and no rules),turnstile-degraded(warning, error after 24 hours),turnstile-env-key. The deep status gainedopenSignUp,staffOnOwnRoles,staffOpenToOthers,turnstile,turnstileSecretFromEnv(states and slugs, never a key). - Exports:
writeOnlySecret,writeOnlySecrets,SECRET_MASK,SECRET_CLEAR,maskSecretAfterRead,keepSecretBeforeValidate,buildKeepSecret,isSecretMask,INTEGRATION_SECRET_FIELDS,SMTP_PASSWORD_BOUND_TO,maskSecretsOnRestore,maskWriteOnlySecrets;panelAccess,applyPanelRole,resolvePanelRole,countBelowPanelRole,DEFAULT_PANEL_ROLE;staffCreateAccess,staffUpdateAccess,staffReadAccess,sameStaffCollectionAccess,rolesByAdminOnly,rolesNotOwn,bothAllow,hasPluginRoles,applyStaffAccountAccess,adoptLateAuthCollections,unknownStaffCollections,buildFirstUserEndpoint,applyFirstUserRoute,openSignUpCollections,staffCollectionsOpenToOthers,staffCollectionsOnOwnRoles;checkPassword,buildPasswordRuleHook,applyPasswordRule,resolvePasswordRule,DEFAULT_PASSWORD_MIN_LENGTH;requestFromOwnOrigin,ownOrigins,reportRefusedOrigin;buildVerifyLimit,verifyLimitKey,clearVerifyLimits;turnstileSecretFromEnv,TURNSTILE_SECRET_ENV; from/server:passTurnstile,passSubmitGates,resolveTurnstileOnConfigError,TURNSTILE_ON_CONFIG_ERROR_DEFAULT. MaskedFieldsays "A value is set" for a write-only field and offers "Remove the stored value".
Requires project changes (what projects must update)
- No migration. This release adds no field, column, table or collection of its own on any database. The
stored 2FA attempt count uses Payload's own
payload-kvcollection, which every schema of a Payload version that haspayload.kvalready contains; where it cannot be reached the count stays in memory and the limit still holds. - A slug in
access.staffCollections(oraccess.authCollection) that is not an auth collection of the config: Payload does not start. The log says[ipal] access names "…" as a staff collection, but this config has no auth collection with that slugand lists the auth collections. The process stays up, but every Payload call fails:/api/healthanswers 503,/api/*and the panel 500 (a page that needs no Payload call may still answer). With a health check (deployment.md §4.4) Coolify keeps the old container. Check the slugs before the deploy. (A plugin listed after ipalKit may add the collection.) - A staff collection added by a plugin listed after ipalKit: the plugin's rules are put in front of the
rules that collection has, so both must allow — a rule of its own there can only narrow, not widen. To keep
its rules exactly as they are:
custom: { ipal: { accountRules: false } }on that collection. - Set
serverURLif it is not set. Behind a reverse proxy that rewritesHostand sends noX-Forwarded-Host(nginx's plainproxy_pass; Coolify / Traefik keepHost) the server does not know its own address, and the 2FA code page is refused as "another origin": nobody can enter a code. The log says[ipal] 2FA: a code from origin "…" was refusedonce per origin, with the fix. Other ways out:twoFactor: { …, sameOrigin: { origins: ['https://…'] } }, or make the proxy sendX-Forwarded-Host. - Every site: read the first start's log.
[ipal] N account(s) of "users" are below the role "editor" and cannot open the admin panel— give the people who work in the paneleditor, or setaccounts: { panelRole: 'user' }.NOBODY can open the admin panel(an error): no account has the role — a script with the Local API (roles: ['admin']), oraccounts: { panelRole: false }and redeploy. - Own code that read
smtpPassword/turnstileSecretKeyover REST or GraphQL, or withoverrideAccess: false: it now gets'********'. Read them on the server withpayload.findGlobal({ slug: 'site-integrations' }). Nothing to do otherwise: stored values stay, e-mail and Turnstile keep working. - A site whose Turnstile secret is only in
TURNSTILE_SECRET_KEY: nothing breaks. With the owner, move the key into Site integrations → Spam protection, then remove the variable (ipal-doctor --url→turnstile-env-key). - Forms with a File field: make sure Turnstile works (
ipal-doctor --url→ noturnstile-degraded); while it does not, those forms are refused. To keep accepting them:forms: { turnstileOnConfigError: { files: 'allow' } }. - A project's own staff collection without
create/update/delete/unlock/read/readVersionsrules gets them. With the plugin's roles (access.authCollection, or arolesselect with onlyuser/editor/admin): only an admin creates, deletes and unlocks accounts and changes roles; an account is changed by an admin or by itself — if non-admins did that on your site, write the rule you want. With role values of its own (superadmin, …) or no roles: accounts of that collection keep working as before, except that an account no longer changes its own roles; accounts of other collections are refused. The plugin does not know your roles, so write your own rules (ipal-doctor --url→staff-own-roles).read: only staff accounts read a staff collection — a front end that shows staff accounts to logged-in visitors (an author box read with a customer's session) needs its ownreadrule oraccounts: { staffOnlyRead: false }. Off:accounts: { adminOnlyCreate: false, adminOnlyWrite: false, staffOnlyRead: false }.first-registerfor other auth collections:403unless the collection allows sign-up, oraccounts: { firstUserRoute: 'all' }. access.firstUserAdmin: falsewithaccess.defaultRolebeloweditor: the panel role is not applied (a warning at start); withaccounts.panelRoleset the start fails — setaccess.defaultRole: 'editor'oraccounts: { panelRole: false }.- A script that changes the SMTP server, port or user name over REST / GraphQL must send the password with
it (
400"Enter the password again…" otherwise); a seed with the Local API is not asked. In the panel the person types the password again.secrets: { reenterOnChange: false }turns it off. - A rolling update: a Site integrations page opened under the new version and saved against the old one
stores
********as the password. After the deploy send a test e-mail. - Scripts that create staff accounts with a password under 12 characters fail with a validation error. Existing accounts with short passwords keep logging in.
- A panel or front end on another domain that posts to
/api/verify-totp:twoFactor: { …, sameOrigin: { origins: ['https://…'] } }. - Only if a
'use client'file importsisAdmin,isEditororhasMinimumRolefrom@intecion/ipal-kit: change the import to@intecion/ipal-kit/clientand keep the second argument (isAdmin(user, config)).grep -rlE "^['\"]use client" src | xargs grep -nE "from '@intecion/ipal-kit'"lists the files;import typemay stay. pnpm payload generate:types,pnpm ipal:skills.
Known limitations
- Write-only protects the API and the panel, not the database: the two secrets are stored in plain text there
and in backups (encryption at rest is not part of this release). A secret equal to
********or[[clear]]cannot be stored. A session that may send e-mail can still use the mailbox through the site (send, not read). On a port other than 465 the SMTP connection is encrypted only when the server offers STARTTLS, as before; an option to require it is not part of this release. - The account rules for a staff collection with role values of its own do not enforce those roles: an account
cannot change its own roles, but inside the collection every account may still create an account with any
role, and change or delete another account — the plugin cannot rank roles it does not know. Write the
collection's own rules;
staff-own-rolesin the doctor names such a collection. - An account of a staff collection without a
rolesfield is an admin to the plugin (unchanged): it may manage accounts of the other staff collections too. Give every staff collection roles, or its own rules. - The panel role and the password rule need
access(roles) resp. a staff collection with password login; a second staff collection without arolesfield is not affected bypanelRole. - The stored verify count uses Payload's
payload.kv; on a Payload version without it the count is in memory only. Two instances can each let a few attempts through before the other's write lands ("max per instance" at worst, never unlimited). - The own-origin check trusts
Host/X-Forwarded-Hostas the proxy sets them, and passes requests withoutOriginandSec-Fetch-Site(non-browser clients). access-missingandcsrf-emptyare text searches of the config file and can miss or misread unusual spellings;open-signupandstaff-accounts-opencall the access rules with a made-up request and count a rule that throws as closed.- A plugin listed after ipalKit that copies a staff collection of the config under a new slug
(
{ ...staff, slug: 'copy' }) copies the rules made for the original slug with it: accounts of other collections are refused, but "the account itself" means an account of the original collection. Give such a copy its ownaccess.update. - Not run for this release: the built site and the panel were checked in Chromium on MongoDB only (the access rules over HTTP ran on SQLite, Postgres and MongoDB); no real mail server, no second instance, no third-party plugin that adds an auth collection.
1.16.6
Read before upgrading — this is not a routine patch. It turns on a new default for every site with 2FA: an account that has not set 2FA up can do nothing but set it up, and is blocked after 72 hours until an administrator reopens it. On Postgres / SQLite it also needs a migration in the same deploy, or nobody can log in. Work through the list below, and agree the deploy day with the owner.
Requires project changes (what projects must update)
Every site with 2FA on. Do all of it in ONE deploy.
- Before upgrading a live site:
pnpm exec ipal-doctor --url <site>→ accounts without 2FA. Each sets 2FA up now, or is removed. At least one administrator (better two) must have 2FA set up, or nobody can reopen setup from the panel. - Agree the day with the owner: the 72 hours of every existing account without 2FA start at the deploy, once. Deploy when those people can act within three days (not before a holiday), or have them set 2FA up first.
- In the same deploy: the update,
pnpm payload generate:types,pnpm payload generate:importmap(commitimportMap.js; new:TwoFactorStatusField,TwoFactorAlert),rm -rf .next, redeploy. Runpnpm exec ipal-doctorbefore deploying: it reports a map without the new entries (then the panel has no "Reopen setup"). Coming from before 1.16.5, the map must also haveSafeTotpView, or the 2FA screens have no code form. - Postgres / SQLite — required, in the same deploy:
pnpm payload migrate:create, commit, and the migration applied when the new container starts (prodMigrations, orpnpm payload migrate && pnpm start— deployment.md §4.3; not Coolify's Pre-deployment command, which runs in the old container). The 2FA collection gets the columntotp_setup_from. Without it every login answers 500 — administrators with 2FA included — and nobody can sign in to the panel. The log says so at start (NOBODY CAN LOG IN), andipal-doctorreports a SQL project whose migrations do not mention the column. Every project with 2FA on needs it, also withrequireSetup: false. MongoDB: nothing. - An integration that logs in with a password and has no TOTP stops working: give it an API key (passes as
before) or exempt it on purpose:
twoFactor.requireSetup: { exempt: ({ user }) => user.email === '…' }. - Own code calling
payload.find({ …, user, overrideAccess: false })with a user fetched by id: refused for every account of the 2FA collection now (before: only accounts with TOTP set up). Usepayload.auth({ headers }). - A reset by an administrator logs that account out everywhere and needs the administrator's own TOTP code. A
script on an API key needs
twoFactor.resetAccess. After a suspected compromise change the password too. - Options:
windowHoursis a number (0 or more) orfalse;exemptis a plain function returning exactlytrue, neverasync. A wrong value stops the build and the start with a clear error. - After deploy: read the log line
[ipal] 2FA: N existing account(s) without two-step verification…and tell the owner; after 72 hours such an account needs "Reopen setup" from an administrator. Tell the staff: a new account has 72 hours to set 2FA up.pnpm ipal:skills. - An SVG favicon has no tab icon on the 2FA screens (use a PNG if that matters).
- Every administrator is blocked: security.md "Every administrator is blocked" (a script, or
{ windowHours: false }and a redeploy). - Not wanted on a site:
twoFactor.requireSetup: false(the previous behaviour), or{ windowHours: false }to keep the lock without the time limit. Sites withtwoFactor: falseare not affected.
Changed
- An account without two-step verification can only set it up (
twoFactor.requireSetup, on by default with 2FA). Until now the panel redirected such an account to the setup screen, but over the API (REST, GraphQL) its password alone opened everything its role allowed. Now every collection, global and plugin endpoint refuses it until TOTP is set up; the setup screen andPOST /api/setup-totpare all it reaches. - A setup window of 72 hours, counted from the account's creation or from a reset by an administrator. After it the account is blocked — setup is refused too — until an administrator reopens it. This limits how long an account that never set 2FA up can be taken over by someone who learned its password.
- Accounts that already exist get their 72 hours from the first start after the upgrade (not from their creation date), so nobody is blocked at the moment of the upgrade. The server log names how many there are. That moment is written on each account once: later restarts, redeploys and further instances do not move it, nor does editing the account.
- A reset by an administrator ends the account's sessions, and by default needs a session that entered its own TOTP code (not an API key, not an exempt account).
/api/ipal/admin-iconanswers with the favicon itself when it is a bitmap (PNG, JPEG, GIF, WebP, ICO, AVIF — recognised by its bytes) instead of a redirect, so the tab icon also loads on the 2FA screens. An SVG favicon is never answered from there (an SVG can carry script): it keeps the redirect to the media file.adminMeta.serveIcon: false= always the redirect.buildUploadSecurityHeaders()now also returns a rule for the icon path (adminIcon: falseleaves it out).
Added
- On every account in the panel: Two-step verification (sidebar) — set up / open until a date / blocked — and
for administrators "Reset two-step verification" (a lost phone) and "Reopen setup" (a blocked account).
POST /api/ipal/two-factor/reset{ userId }does the same. - A dashboard notice for administrators: accounts without two-step verification, and how many are blocked.
- A notice on the setup screen: until when setup has to be done, or that the time has passed. All texts in English and Polish.
- Options:
twoFactor.requireSetup: false | { windowHours, exempt, dashboardNotice, statusField, setupNotice },twoFactor.resetAccess,whiteLabel.inlineImages,adminMeta.serveIcon. Exports:twoFactorSetupState,twoFactorSetupDeadline,buildSetupFields,stampSetupFrom,backfillSetupFrom,buildTwoFactorResetEndpoint,countAccountsWithoutTotp,resolveRequireSetup,strictExempt,SETUP_FROM_FIELD,TWO_FACTOR_RESET_PATH,DEFAULT_SETUP_WINDOW_HOURS,fetchPublicImage,publicImageDataUri,rasterImageType,siteOrigin,PUBLIC_IMAGE_MAX_BYTES,UPLOAD_SECURITY_HEADERS; admin componentsTwoFactorStatusField,TwoFactorResetButton,TwoFactorAlert. requireSetup.exemptis strict: only an answer of exactlytrueexempts. Anasyncfunction, and awindowHoursthat is not a number orfalse, stop the site at start with a clear error.- The date field
totpSetupFromis on the 2FA collection whenever 2FA is on, so switchingrequireSetuporguardnever changes the schema (and never restarts anyone's window). - The panel's tab icon and logo load on the verify and setup screens:
GET /api/ipal/admin-iconanswers with the image itself when it is a bitmap (no redirect to the media file), and the logo components give a session that still owes its code the picture as an anonymous visitor would get it. No change to who can readmedia. - ipal-doctor: a SQL project without a migration for
totp_setup_from(error), an import map without the two new admin components (error). - ipal-doctor: the
2farule says how many accounts without 2FA are blocked (usersSetupClosedin the deep status), warns whenrequireSetupis switched off and notes a missing setup window.
Known limitations
- Inside the window someone who knows the password of an account without 2FA can still set it up with their own authenticator; the owner is then refused ("already set") and has to ask an administrator. Set 2FA up at once.
- A session without 2FA keeps what Payload gives any session about itself:
/api/access, token refresh, logout, its own panel preferences. - An exempt account works on its password alone, with everything its role allows: give it the lowest role.
- A second staff collection (
access.staffCollections) is outside 2FA and outside this mode, as before. WithtwoFactor.guard: falsethe mode is off and the reset endpoint does not exist. - With
auth.useSessions: falsea reset has no sessions to end: tokens live until they expire. The 2FA package's own remove / reset endpoints do not end sessions. - The
ipal-doctormigration check is a text search insrc/migrationsandmigrations. - A site that does not use
buildUploadSecurityHeaders()still serves a scripted SVG from its media URL as before. - Not run for this release: a generated migration,
prodMigrationsand a real Coolify deploy (the missing and the added column were tested on Postgres 17 and SQLite); an upgrade of a real site; two containers; media on R2 / S3;useSessions: false; the reset by an API-key admin over HTTP; payload-2fa beta.1 and the Polish notices in a browser; Firefox / WebKit; a Docker image; a NextbasePath; Payload below 3.94.1.
1.16.5
Security
- The 2FA setup and verify screens no longer follow an unchecked
backlink.@clocklimited/payload-2fa(beta.1 to beta.7) sends the browser to thebackquery value once the code is accepted, without checking it. A panel user who had typed the password, opened a prepared link to/admin/verify-totpor/admin/setup-totpand then entered the code could be sent to another site, or have script run in the panel under their freshly verified session. The panel's CSP does not stop this. Affects every site with 2FA on, in every earlier version. It needs the user to open such a link between the password and the code; a logged-out or a fully logged-in user is not affected. The original package fixed it inpayload-totp3.0.5 (GHSA-rffw-fq79-g3ch); the fork has not. Now ipal-kit checksbackon the server before the package's screen gets it: only a path on the site's own origin, inside the admin route, is kept; anything else leads to the admin root (security.md "Thebacklink of the 2FA screens"). The 2FA package itself is unchanged.
Added
twoFactor.safeBack— on by default;falseturns the check off, a function(back, { adminRoute, origin }) => stringreplaces the rule.safeAdminBack,wrapTotpViews(@intecion/ipal-kit) andSafeTotpView(@intecion/ipal-kit/admin) are exported for projects that register the 2FA views themselves.- ipal-doctor: the import-map rule also expects
@intecion/ipal-kit/admin#SafeTotpViewwhen the installed plugin has it and the config does not setsafeBack: false. - A stale import map is reported (
twoFactor.importMapCheck, on by default,falseturns it off): in production the plugin searches theimportMap.json disk at start; when the entry above is not found it logs an error and puts a notice above the 2FA screens. The notice never replaces the screen: the file on disk is not always the map the build used (a Dockerfile with a separate runner stage, a re-exporting map file), and then the notice is wrong and sign-in still works — turn the check off for such a project. - More building blocks exported for a project that wraps the 2FA views itself:
copyViews,changedViewKeys,SAFE_TOTP_VIEW,totpViewImportKey,findImportMapFile,missingImportMapEntries. - ipal-doctor warns when the config uses the 2FA package's own setup / verify view as a view's
Component(such a view is outside the check). - A project's own 2FA screen set through the wrapped factory (a server or a client component) is rendered
behind the check and gets the checked
back.
Requires project changes
- Every site with 2FA: upgrade,
pnpm payload generate:importmap, commitimportMap.js,rm -rf .next, redeploy — all in ONE deploy. Runpnpm exec ipal-doctorbefore deploying. The plugin's view now stands in front of the package's two screens and needs its import-map entry (@intecion/ipal-kit/admin#SafeTotpView). If you skip this, the build still passes and the site starts, but the 2FA setup and verify screens have no code form (HTTP 200), so nobody can sign in to the panel. There is no error page. What tells you:pnpm exec ipal-doctorbefore the deploy (import map lacks …SafeTotpView); the line[ipal] The admin import map may be out of datein the log at every start; and, where the form should be, the notice "Two-step verification may not be available". No option, env, schema or migration.pnpm ipal:skillsafterwards. - A project with its own 2FA screens or view registrations: security.md "Your own 2FA screen".
- Check after deploy: log in with the password only, open
/admin/verify-totp?back=https%3A%2F%2Fexample.com%2F, enter the code → you land on/admin. A normal login still returns to the page you came from.
Known limitations
- After the code, the screen always goes somewhere inside the panel. A
backthat pointed at a page of the public site (not used by the plugin or the package) now leads to the admin root; pass your own rule if a project relied on that. - An absolute
backon the site's own origin is kept only when the Payload config hasserverURL; without it only relative values are (the plugin and the package only ever produce relative ones). - A missing
backused to mean "go back in browser history"; it now means the admin root. back=/admin/logoutis inside the panel and is followed: the user is logged out after the code.- A client-side 2FA screen of your own that reads
useSearchParams()gets the raw value; use thebackprop. - The stale import map check is a text search of the file on disk: it can warn although everything works, and
its notice text changes only with an own
twoFactor.provider. Theipal-doctorwarning about a raw view is a text search too and misses unusual spellings. - Not run for this release: the browser checks on Postgres, in Firefox or WebKit, with a Next
basePathor in a real Docker image with a runner stage; payload-2fa beta.2 to beta.6; Payload 3.90 to 3.93. They ran in Chromium on MongoDB with beta.7 (production build) and, on an earlier commit of the same change, beta.1 (next dev).
1.16.4
Security
- 2FA now covers what the plugin adds. The 2FA package wraps the collections and globals that exist when it runs; the plugin's own globals and collections were added afterwards and were not wrapped. With 2FA on, an account that had typed its password but not the code could read and change them over the API (REST and GraphQL): Site settings, Site integrations (including the SMTP password and the Turnstile secret), Cookie banner, Notifications, forms, form submissions, consent records, cookie review, stats, and the plugin's staff endpoints. The project's own collections and the user accounts were protected. Affects every site with 2FA on, in every earlier version. It needed a valid staff password. Now ipal-kit runs its own second-factor check on every collection and global — whichever plugin added it and in whatever order — and on its endpoints (security.md "What the second factor covers").
- Accounts of a second auth collection are no longer staff. Roles, and the rule "no
rolesfield = every account passes", counted for an account of any auth collection. In a project with a visitor account collection (customers, a client zone) such an account passed the plugin's staff checks, with the same reach as above — every check when its collection had norolesfield, andisAdmin/adminOnly/requireRoleand the others when it had arolesfield of its own. With open sign-up, anyone could make one. In the injected auth collection, "only my own record" also matched an account of another collection with the same numeric id (Postgres, SQLite). Affects only projects with more than one auth collection. Now the staff-collection check comes first in every predicate and access function: only accounts of the panel's login collection,access.authCollectionandaccess.staffCollectionscount, and the injected collection usesadminOrSelfIn(access.md). - The 2FA package's endpoints accept accounts of the 2FA collection only.
@clocklimited/payload-2fa(checked in 3.0.0-beta.1 and beta.7) takes the logged-in account from any auth collection and writes the TOTP secret into the 2FA collection under that account's id. With numeric ids (Postgres, SQLite) an account of another auth collection could set the secret of the staff account with the same id; whoever knew that staff password then passed 2FA, and the owner's authenticator stopped working. Affects only projects with more than one auth collection on Postgres or SQLite (MongoDB ids do not repeat across collections). ipalKit now guards every endpoint the package registers; reset and remove also need the second factor (security.md "The 2FA package's endpoints"). - Guessing the 2FA code is now limited. The package never counted verify attempts. Now at most 5 tries
per account in 10 minutes, right or wrong (
twoFactor.verifyLimit); further tries get429. The counter lives in each server instance's memory and resets when the app restarts or redeploys. - Every collection and global is covered, whatever its name — Payload's own (
payload-preferences,payload-jobs, …), a plugin'spayload-…collection, the job queue'srun / queue / cancelrules. - Not changed, and important: an account that has not set TOTP up yet is an ordinary logged-in account —
its password alone opens everything its role allows. Set 2FA up right after an account is created;
ipal-doctor --urlreports accounts without it. - Who was affected, in short. Every site with 2FA on: a staff password without the code opened the plugin's settings, integrations (SMTP password, Turnstile secret), forms, submissions and consent records. Sites with a second auth collection: also visitor accounts. Neither leaves a trace in the data.
Changed
ipalEnvRules()checks thePAYLOAD_SECRETlength in production. A new option,secretMinLength, defaults to 32;0turns the check off. It is checked only withNODE_ENV=production, and it uses thesecretVaryou set. The error gives the length only, never the value.- ipal-doctor never writes first-seen dates (
seeninipal-doctor.json) whenCIis set. A normal local run still writes them, anduntilsilences do not depend on them. ipal-kit create <domain> --externalwith no list installs every vendoredext-*skill. A list is used as given; without the flag the answers decide.- Docs brought in line with the code (38 files): forms reject text over 5000 characters instead of cutting it;
Site settings
updateneeds editor or higher; tab and group names (Search engines, More, Privacy, Image viewer, Form messages);prepublishOnly, CLI usage, seedingsummary(),switchLocalePath. Source comments and theipal-kitusage line name the current labels. - Visible with 2FA on:
- A session that typed the password but not the code gets
403from the API on everything, including public globals, pages and media files. Anonymous visitors are unaffected. An editor who leaves the panel at the code screen and opens the public site in the same browser may see missing images until they enter the code or log out. - Accounts of other auth collections get
403from the 2FA endpoints (/api/setup-totp,/api/verify-totp, …).
- A session that typed the password but not the code gets
Added
access.staffCollections: name further auth collections whose accounts are staff.adminOrSelfIn(slug),staffCollectionSlugs(payload),secondFactorPassed(req),requireSecondFactor(access)for the project's own access functions and endpoints.isAdmin,isEditorandhasMinimumRoletake an optional last argument that says which collections are staff:req.payload, a config, or{ staffCollections: [...] }.twoFactor.verifyLimit: false | { max, windowMinutes }.- Per-entity opt-out from the second factor:
custom.ipal.secondFactor: false | { read: false }on a collection or global; the package'scustom.totp.disableAccessWrapperis honoured as before. twoFactor.guard: false: ipal-kit's second-factor check off everywhere, the package's wrapper only (not recommended).
Requires project changes
- Every site: upgrade and redeploy. No config change for a site with one auth collection and
@clocklimited/payload-2fa3.0.0-beta.7 (tested: beta.1 and beta.7).pnpm ipal:skillsafterwards. PAYLOAD_SECRETat least 32 characters in production.- Check before you deploy 1.16.4: Coolify app → Terminal →
node -e 'console.log(process.env.PAYLOAD_SECRET.length)'. 32 or more: nothing to do. - Shorter: either set a random value of 32+ characters (
openssl rand -base64 48) in Coolify → Environment Variables and redeploy, or for now addsecretMinLength: 0(or a lower number) toipalEnvRules({ … })insrc/instrumentation.ts. - Changing the secret on a live site (Payload derives its signing key from it): everyone is logged out;
every user enters the 2FA code again (authenticator apps keep working); stored API keys (
useAPIKey) stop working; uploads in progress fail. Do it with the owner's OK at a quiet time. If you rotate it as part of the security steps below, do both in one deploy (deployment.md "PAYLOAD_SECRET— length and changing it").
- Check before you deploy 1.16.4: Coolify app → Terminal →
- Every site: no account without 2FA.
pnpm exec ipal-doctor --url <site>→ accounts without 2FA must be 0; have each such account set TOTP up now, or remove it. - Because the earlier behaviour left no trace (there is no audit log), decide per site with the owner:
- change the SMTP password and the Turnstile secret stored in Site integrations when a staff password may have been known to someone else (a reused or shared password, a former employee, a phishing report) — or simply do it once, it is cheap;
- look through Site settings and Site integrations for values nobody on the team set (analytics and tag manager IDs, sender address, construction mode), and through each form's Emails tab for unknown recipients or BCC addresses;
- form submissions and consent records could have been read; whether that needs a data-protection assessment is the client's decision.
- A site with a second auth collection: treat the points above as required, not optional. Set
admin: { user: '<staff collection>' }inbuildConfig, useadminOrSelfIn('<slug>')in your own auth collections, and if the second collection really is staff, name it inaccess.staffCollections. Roles no longer count for accounts of other collections: a rule that usedisAdmin/adminOnlyfor them needs its own check ofreq.user.collection. On Postgres or SQLite also ask every staff member to confirm their authenticator still works; if it does not, reset that account's 2FA and set it up again. isAdmin/isEditor/hasMinimumRolein a client component or inproxy.ts/ middleware returnfalseunless they are told which collections are staff:isAdmin(user, config)with the config fromuseConfig(), orisAdmin(user, { staffCollections: ['users'] }). A client component imports them from@intecion/ipal-kit/client(corrected later: the main entry, which this note implied, does not build there with webpack;/clienthas them since 1.16.7). On the server (isAdmin(req.user)in hooks, endpoints, access functions) nothing changes;isAdmin(req.user, req.payload)is the explicit form.- A second staff collection (
access.staffCollections) is not covered by 2FA — the log says so at start. - Own code that reads a plugin collection or global with
overrideAccess: falsemust pass auserfrompayload.auth({ headers }); a user fetched by id and passed by hand is refused when it has TOTP set up, and its role does not count withoutcollection. Own endpoints: addsecondFactorPassed(req)oruserMeetsRole(req, role). - Startup stops with
[ipal] twoFactor: the injected 2FA plugin did not add …: the installed 2FA package is not one the check recognises. Install a supported version;twoFactor.guard: falseonly as a stop-gap. - Check after deploy: security.md → "What the second factor covers" → Check (three
403), then log in fully and open Site integrations and a form submission in the panel.
Known limitations
- An account that has not set up 2FA yet is an ordinary logged-in account: its password alone opens what its
role allows, SMTP credentials included. A later release addresses this. Until then: set 2FA up right after
creating an account, and check the
ipal-doctor --urlcount. - The verify limit is per server instance and in memory. A restart or redeploy resets it. Whoever already holds a staff password can keep trying slowly (about 720 tries a day), or lock the owner out of entering the code for 10 minutes at a time. A hostile page on a sibling subdomain of the site can cause that lockout without the password, while the owner is logged in to the panel.
- Accounts of an extra staff collection (
access.staffCollections) are not covered by 2FA. The log warns at start. - Dashboard alert widgets (Integration alerts, Cookie crawl alert) show integration error text to every panel role. This is older than this release.
1.16.3
Changed
- Payload 3.94.1 in the reference site and the project starter (was 3.90.2), with
react/react-dom19.3.1 and Node.js>=22.23.5 <23in the referenceengines. The plugin is built and tested against 3.94.1; its peer range is unchanged (^3.90.2), so a project on 3.90.x is not forced to move. What Payload 3.91–3.94 change that a project notices: Node.js 22.23.5 or later (24.22.3 / 26.13.1 on newer lines),react^19.3.1, Next.js 16.4.5 or later,@payloadcms/db-mongodbshipsmongoose8.24.7 (3.94.0), thedeepmergedependency is gone (3.94.1), field access now receives the document id, draft read access and block child read access are checked more strictly, and the slug field no longer fails required validation on create (a 3.90.2 bug). Nothing in the plugin needed a code change; the generated types and the import map of the reference site are unchanged. - Overrides re-checked against Payload 3.94.1 (AGENT.md §4 item 12):
dompurifyandhappy-domare still needed (Lexical still bringshappy-dom^20.9.0: two highs).mongoose(MongoDB, Payload 3.90–3.93) andundici(Payload 3.90–3.91) are needed only on an older Payload.graphql-scalarsneeds no override any more: GHSA-x8rm-f576-gq67 now covers 1.24.1–2.0.0 only, and@payloadcms/graphqlpins 1.22.2. The reference site and the starter keep only thedompurifyandhappy-domlines. - ipal-doctor
transitive-min: themongoosefinding names the Payload upgrade (3.94.1) as the first fix; the thresholds are unchanged. - Dependencies:
nodemailer10.6.1 (runtime). Dev tooling: Playwright 1.65.1 (runpnpm exec playwright install chromiumonce), Vitest 5.1.1, Prettier 3.10.1,@swc/cli0.8.2 (withpiscina4.9.4 and@xhmikosr/decompress11: clears the two critical dev advisories),vite7.3.8 as a direct dev dependency (Vitest's peer; clears the vite high),rimraf6,cross-env10 (also in the reference site),open11,sort-package-json4,@swc-node/register1.12.1,vite-tsconfig-paths6.1.1, Tailwind 4.3.5 and PostCSS 8.5.33 in the reference site.pnpm auditof the plugin's dev tree: 31 → 4 (0 critical, 0 high; what is left sits underdrizzle-kitand the ESLint toolchain).--prodstays at 0, and the reference site at 0. - Kept back, with the reason: TypeScript 7 (typescript-eslint supports TypeScript below 6.1 only), ESLint 10
(
eslint-config-next16.4.6 plugins do not support it — the lint run crashes),graphql17 (Payload requires ^16.8.1),@types/node26 (projects stay on Node 22),lucide-react1.x (a runtime dependency: projects are told to keep their own lucide on 0.400.x; moving needs its own change and icon-map checks).
What projects must update
- Nothing is required. The plugin still works with Payload 3.90.2 and later.
- Recommended — move to Payload 3.94.1 (the
ipal-upgradeskill, "Every upgrade — Payload"): everypayload/@payloadcms/*to 3.94.1 (independenciesandpnpm.overrides),reactandreact-dom19.3.1, Node.js 22.23.5 or later ("engines": { "node": ">=22.23.5 <23" },.nvmrcstays22),pnpm install,pnpm payload generate:types,pnpm payload generate:importmap,rm -rf .next, build, redeploy on Coolify. Postgres/SQLite: runpnpm payload migrate:createand commit it if it is not empty (Payload 3.94.1 changes how long index and foreign key names are built). MongoDB: no migration. - Node.js 22.23.5 or later everywhere the site runs — before you move to Payload 3.94. Payload 3.94 refuses older
Node (
engines:^22.23.5 || ^24.22.3 || >=26.13.1). Locally:node -v. Coolify: Nixpacks picks the Node major fromengines/.nvmrc, and the patch version comes from the Nixpacks release on the server — so after the first deploy open the app → Terminal and runnode -v(the build log shows it too). If it is below 22.23.5, update Coolify (newer Nixpacks) before you deploy Payload 3.94; until then, stay on 3.90.x. CI images (node:22/setup-nodewith22) must resolve to 22.23.5 or later as well. - Overrides (
pnpm.overrides): on 3.94.x keep"dompurify@<3.4.17": "^3.4.17"and"happy-dom@<21.0.4": "^21.0.4"; themongooseandundicilines do nothing there — remove them. Remove"graphql-scalars@<2.0.1": "^2.0.1"if you have it (optional). Sites that stay on 3.90–3.93 keep the 1.16.2 lines. - Verify:
pnpm ls payload→ 3.94.1;pnpm audit --prod→ no high or critical;pnpm exec ipal-doctor→ noversionsfinding; the panel opens and a document saves; a form submission arrives. pnpm ipal:skillsfor the updatedipal-setup/ipal-upgradeskills.
1.16.2
Security
mongooseandhappy-domoverrides for Payload's own dependencies.@payloadcms/db-mongodbpinsmongoose8.24.1 exactly (still so in Payload 3.93.0). 8.x below 8.24.7 has five advisories published 2026-11-10: GHSA-pcrw-h46h-c93h (critical,sanitizeFilternot applied oncountDocuments; fixed in 8.24.3), GHSA-gg4r-jv3p-qx3c and GHSA-8332-j7wj-wjw4 (high), GHSA-wr5m-5jph-8m96 and GHSA-6972-9mcm-vhwj (moderate) — all fixed in 8.24.7.@payloadcms/richtext-lexical→@lexical/headless0.50 bringshappy-dom20.x, which has GHSA-c8p4-j97h-3vg8 (high, fixed in 21.0.0) and GHSA-834v-8h66-3h79 (high, fixed in 21.0.4). The plugin has no part in either; only the project's lockfile can lift them. The reference site and the project starter now carry"mongoose@>=8 <8.24.7": "~8.24.10"and"happy-dom@<21.0.4": "^21.0.4"inpnpm.overrides; with thempnpm audit --prodon the reference site reports no known vulnerabilities, and its seed, production build, smoke tests and doctor pass. The plugin forces neither override on a project.
Added
- ipal-doctor
transitive-min(groupversions): reports amongoose8.x below 8.24.7 (error) and ahappy-dombelow 21.0.4 (warning) anywhere in the dependency tree, read frompnpm-lock.yaml, and prints the exactpnpm.overridesline. Silence it inipal-doctor.jsonlike any rule ("transitive-min": { "off": true, "reason": "…" }).DoctorContext.installedAll(name)is the building block for your own rules on transitive packages.
Changed
- AGENT.md §4 item 12, the
ipal-setupandipal-upgradeskills, doctor.md and the README list five overrides.
What projects must update
- Every MongoDB site (
@payloadcms/db-mongodb): add the two lines topnpm.overridesinpackage.json, next to the existingdompurify/graphql-scalars/undicientries:then"happy-dom@<21.0.4": "^21.0.4", "mongoose@>=8 <8.24.7": "~8.24.10"pnpm install,pnpm build, commitpackage.jsonandpnpm-lock.yaml, redeploy on Coolify. No data change, no migration, no import map change. The selectors only touch the vulnerable versions: a mongoose 9 or a mongoose 8.24.7 and later is left as it is. - Postgres / SQLite sites: only the
happy-domline (they have no mongoose). - Verify:
pnpm why mongoose happy-dom→ mongoose 8.24.10 (MongoDB sites), happy-dom 21.0.4;pnpm audit --prod→ no high or critical;pnpm exec ipal-doctor→ notransitive-minfinding; open the panel and save a document. pnpm ipal:skillsfor the updatedipal-setup/ipal-upgradeskills.
1.16.1
Security
- Next.js 16.4.6; the minimum safe version is now 16.4.5. Next.js 16.3.0–16.4.4 is affected by
GHSA-mfr8-8qww-v76h (CVE-2026-119790, moderate): information
disclosure across root params when a
'use cache'function is called throughunstable_cache(). Fixed in 16.4.5. This is the advisory behind thepnpm devwarning "Next.js 16.4.3 is affected by a known security vulnerability". The plugin's dev dependencies (next,eslint-config-next), the reference site and the project starter move to 16.4.6. The Next.js 15 lines Payload 3.90 accepts are not affected by this advisory but still carry older critical ones, so 16.4.x stays the only safe line. The plugin's peer range is unchanged (next >=15).
Changed
- ipal-doctor
next-minnow reportsnextbelow 16.4.5 as an error, naming GHSA-mfr8-8qww-v76h (below 16.4.1 it still names the RCE and DoS advisories). The fix it prints:pnpm add [email protected] [email protected]. It can be silenced inipal-doctor.jsonas before ("next-min": { "off": true, "reason": "…" }). - AGENT.md §4 item 11, the
ipal-setupandipal-upgradeskills and doctor.md state 16.4.5 as the minimum.
What projects must update
- Every client site below Next.js 16.4.5:
pnpm add [email protected] [email protected],rm -rf .next,pnpm build, commit the lockfile and redeploy on Coolify.pnpm ls next→ 16.4.6;pnpm exec ipal-doctor→ nonext-minfinding;pnpm devprints no security warning. No plugin option, migration or import map change. pnpm ipal:skillsbrings the updatedipal-setup/ipal-upgradeskills.
1.16.0
Added
- Files on forms, sent by e-mail and never stored (
forms: { attachments: true }, forms.md "Files"). A new File field in the form builder: label and help text per language, required, allowed file types, maximum size and number of files, "Show only when". A file a visitor attaches is checked, attached to the company notification e-mail and dropped. There is no upload collection, bucket, disk write or download route; the submission keeps the file's name, type and size and whether the mail server took the message.- Checks, in order, before a file is accepted: same origin, rate limit, declared size, a concurrency guard,
honeypot, Turnstile, field validation and GDPR consent, then per file: count, name (double and refused
extensions), size while reading, content signature, container and macro checks. An upload that breaks off,
stalls (
submit.idleTimeoutMs, 30 s) or runs too long (submit.timeoutMs, 5 minutes) is given up and frees everything it held. Programs, scripts, macro-enabled Office files, archives, HTML and SVG are refused unless the project allows the extension (allowRisky). No antivirus is built in —attachments.scanis the hook for one. - E-mail: the file goes to every e-mail of the form whose recipients are fixed addresses from the panel; an
e-mail addressed with a placeholder (the confirmation to the visitor) never carries it.
{{field}},{{*}}and{{*:table}}show the file name. - The visitor is told when the problem is the file: too large (with the limit), a format the field does not take (with the formats), a refused file (a program, an archive, macros, content that does not match), too many files, or a file that could not be e-mailed. Each message names the file, says what to do, shows at the File field, and on an optional field adds "You can also send the form without the file." What the visitor typed stays in the form. A failure that is not about the file keeps its own message.
- A failed send is visible: the visitor sees "We could not send the file …" and can retry, staff get the notification without the file, the submission is marked File delivery: Not sent. A repeated request (double click, a resend) sends nothing twice.
- Browser:
RenderForm/BuilderFormrender a native file input with help text, the list of picked files and a "Remove" button;useBuilderFormgainsgetFileProps,getFiles,removeFile,helpId,getHoneypotProps; newclassNameskeysfile,help,fileList,fileItem,fileRemove. - New texts in Form messages → Files (
fileTooLarge,fileType,fileRefused,fileCount,fileNotSent,fileOptional,fileRemove), English and Polish defaults. - New exports:
buildFileBlock,fileBlock,FORM_FILE_TYPES,RISKY_FILE_EXTENSIONS,formatFileSize,mailAttachmentLimit(root);fileFieldRules,fileFieldError,formatFileSize(/client);splitFormFiles(/server);submitForm({ files, attemptKey }); result codeskind: 'file_too_large' | 'file_type' | 'file_refused' | 'file_count'andreason: 'delivery'.
- Checks, in order, before a file is accepted: same origin, rate limit, declared size, a concurrency guard,
honeypot, Turnstile, field validation and GDPR consent, then per file: count, name (double and refused
extensions), size while reading, content signature, container and macro checks. An upload that breaks off,
stalls (
- Attachments over both e-mail transports (email.md "Attachments"). SMTP passes them through.
Microsoft Graph sends attachments under 3 MB in the one
sendMailcall; larger ones go through a draft and an upload session, and the copy the mailbox keeps is deleted afterwards. That path needs theMail.ReadWriteapplication permission (limit it to the forms mailbox — steps in email.md). Without the permission the message goes over SMTP when the panel has SMTP settings; otherwise the form's file limit drops to about 2.8 MB.mailAdapter({ graph: { largeAttachments: false } })turns the large path off. - Test e-mail with a 10 MB file: a checkbox next to "Send test e-mail" (endpoint body
attachmentMB) — shows whether the mail server takes a file of that size.
Fixed
- A form can be sent again after the server refused it. After a refused submission (a field error from the
server, a failed e-mail)
useTurnstile().reset()cleared the token but never asked the widget for a new one, so with Turnstile on, the next click on Send answered "The form could not be sent" without sending anything.reset()now makes the widget issue a new token (Turnstiletakes aresetSignalprop for your own wiring). No project change. - The honeypot of
BuilderForm/RenderFormnow reaches the server. The hidden field was rendered, but its value was not part of what the form sent, so a bot that filled it was not dropped. It is now sent with the submission (createSubmitActionchecks and strips it, as before). A hand-written action that callssubmitFormdirectly must stripHONEYPOT_FIELDfirst, as the example in forms.md always did — otherwise a filled honeypot is answered with "unknown field" instead of the fake success.
Changed
- The Microsoft Graph access token is cached in the process until a minute before it expires (it was fetched on every send).
What projects must update
- Nothing is required; existing forms need nothing. Without
forms.attachmentsthe forms config, collections, routes and e-mails are unchanged, and a form without a File field behaves as before even with the option on.pnpm ipal:skillsbrings the updatedipal-form/ipal-referenceskills. - Import map: no new admin component —
pnpm payload generate:importmapchanges nothing (running it is harmless). - To use files on forms: set
forms: { attachments: true }, add a File field to the form (panel or seed), keep one e-mail with a fixed recipient on that form, runpnpm generate:types. Postgres / SQLite:pnpm payload migrate:create(the File block tables, three columns and one array table on submissions, the new Form messages columns — all additive). MongoDB: no migration. - Add the classes
file,help,fileList,fileItem,fileRemovetosrc/components/forms/formClasses.ts(template in theipal-formskill) and fill Form messages → Files for languages other than English and Polish. - Proxy body limit (deployment.md "Form files"): the browser posts up to
maxTotalMB(10 MB) plus the answers to/api/ipal/forms/submit. Coolify's Traefik and Caddy have no body limit by default; an nginx in front needsclient_max_body_size 12m;; Cloudflare (proxied) allows 100 MB. Keep/apiout of the i18n proxy matcher (the default one does). - Mail transport for files: with Microsoft Graph, grant
Mail.ReadWrite(application permission) limited to the forms mailbox with an application access policy (email.md), or fill SMTP settings in Site integrations (files of 3 MB and more then go over SMTP), or accept a limit of about 2.8 MB per form. With SMTP only, nothing to grant — the mail server's own size limit applies. Send the test e-mail with the 10 MB file once per site.
Verify on your real systems
The plugin's tests use a mock of Microsoft Graph and a local mail sink; check these once on the real setup:
- Graph, 10 MB file: a form submission with a 10 MB file arrives with the attachment; the sender mailbox keeps no draft and no copy in Sent Items a minute later, and no draft after a failed send either. Checklist: email.md "Verify on the real tenant".
- Traefik timeout on a slow upload: a 10 MB upload over a throttled connection (browser dev tools, "Slow 4G")
finishes; if it is cut, raise the entry point's
respondingTimeouts.readTimeout. - SMTP size limit: the test e-mail with the 10 MB file is accepted by the SMTP server (many limit a message to
10–25 MB, and base64 adds a third); if not, lower
maxSizeMB/maxTotalMBor use Graph.
1.15.5
Fixed
- Seeding a required field with references (
createSeeder,upsertBySlug/upsertBy): a page whose requiredlayoutholds a{ $page }or{ $form }reference can be created. The first pass used to leave the whole field out, so validation rejected the record ("The following field is invalid: … > Layout") while the dry run reported a create. Now references to records that exist are resolved in the first pass, so the field is written complete. A link to a page created later in the same call is filled in the second pass, and a record whose required field needs that page waits until it exists. Required links in a cycle, and links to a page or form that never appears, are an error with nothing written. The dry run now reports the same outcome, including a missing form. Seed scripts need no change.
Changed
- A stricter dry run:
SEED_DRY_RUN=1with a{ $form }to a form that neither exists nor is seeded earlier in the same run is now an error, as the real run would be (before, the dry run printed a placeholder and reported a create). The same holds for a{ $page }that never appears.
What projects must update
- Nothing is required: seed scripts need no change.
- A seed with a required reference cycle (two new pages whose required fields link to each other) now stops with a clear error naming the pages, and nothing is written for them; make one of the links optional or seed one page first. Before, such a run could look successful in the dry run and fail on validation in the real one.
- A dry run that now reports a missing form or page: seed that record first (or create it in the panel), then run again.
1.15.4
Fixed
- Seeding whole localized arrays (
createSeeder,writeLocales): a value written per language as a whole —fields: { pl: [...], en: [...], de: [...] }, a pagelayout, a global array — now keeps the stored row ids in every language. Before, each locale write made new shared rows and only the last language survived (form fields, nested select options, layouts, global arrays); an editor's later save could then fail validation. Fields that are themselveslocalized: true(a localized layout) keep rows per language, as before. Seed scripts need no change; repairing records an earlier seed already wrote: "What projects must update".
What projects must update
- Nothing is required: seed scripts need no change.
- A project that seeded whole localized arrays (form fields with options, a page
layout, a global array written as{ pl: [...], en: [...] }) and lost languages: a plain re-run skips existing records (create-only), so rewrite them withSEED_UPDATE=1— locally first, then check every language in the panel. On a live site only for the named records:SEED_ONLY="forms:<title>,pages:<slug>" SEED_UPDATE=1 IPAL_SEED_ALLOW_PROD_UPDATE=1,SEED_DRY_RUN=1first, after a backup (Coolify). Records an editor changed since seeding are skipped — fix those in the panel. A global array:fillGlobalfills empty fields only, so clear the field in the panel before the run, or fix it by hand.
1.15.3
Fixed
- ipal-audit and ipal-doctor no longer report the panel's own bilingual labels as hardcoded text. "Hardcoded Polish
text in code" (
i18n-literalsin the doctor) flaggedadminText('Title', 'Tytuł')and{ en: 'Title', pl: 'Tytuł' }, the labels AGENT.md §6.5a asks for. The check now reads the syntax tree (polish-literals.mjs, with the project's TypeScript; a plain grep without it). In a schema file — a.tsfile undercollections/,globals/,fields/orblocks/, or one importing Payload's schema types — it acceptsadminText(),{ en, pl }aslabel,singular,plural,description,placeholderorgroup, arowLabel()fallback and aconst x: AdminText, also over several lines. Still reported: every.tsxfile, a Polish-only label, other keys, anything underdefaultValue.
What projects must update
- Nothing is required.
- Run
pnpm ipal:skillsafter upgrading, so the updated audit scripts reach the project: the ipal-audit skill runs the project's own copy in.agents/skills/ipal-audit/scripts(audit.sh,polish-literals.mjs);ipal-doctoralready uses the plugin's.
1.15.2
Fixed
- ipal-doctor finds the frontend by structure, not by the name
(frontend). A site with its pages in another route group (src/app/(site)/[locale]) was treated as single-language: false "missing" routes and a demand for the single-language Markdown route.layout-requirednow takes anyapp/(<group>)(orappitself) that holds the catch-all page, a localized one first; two candidates give a warning naming both. The lazy 404's server action may benotFoundView.tsornotFoundView.tsx(pages.md), and the other required files accept their usual extensions (.ts/.tsx, route.js). New:ipal-doctor.json"layout": { "frontend": "src/app/(site)" }for a layout the doctor cannot tell; new exportfindFrontend.
What projects must update
- Nothing is required.
- After upgrading, remove any temporary
layout-requiredsilence inipal-doctor.jsonthat was added for a route group with another name (e.g.(site)) or anotFoundView.tsx, then runpnpm exec ipal-doctoragain. Only if the doctor reports two frontend candidates: set"layout": { "frontend": "src/app/(<group>)" }. pnpm ipal:skillsfor the updatedipal-doctorandipal-referenceskills.
1.15.1
A seed run that stops early now fails loudly instead of looking like a success.
New
guardSeedExit()in@intecion/ipal-kit/seed(seeding.md): call it first in a seed script. A run that ends before Payload initializes or beforesummary()—payload runexits with code 0 and no output when the script's top-level await is left without anything that keeps Node running — now prints[seed] ended before Payload initialized/… before the seed finishedand exits 1.createSeederandsummary()report to it; normal runs, dry runs, write errors and the production refusals keep their exit codes and messages. AlsoactiveSeedExitGuard()and the typesSeedExitGuard,SeedExitGuardOptions,SeedExitProcess.- The seed templates (
ipal-site,ipal-form) and the reference site call it, so sites made withipal-kit createhave it.
Changed
- Reference site (not shipped): the Playwright smoke tests start their own server and fail when the port is taken
(
reuseExistingServeronly withE2E_REUSE_SERVER=1), so another project's dev server is never tested by mistake.
What projects must update
- Nothing is required.
- Recommended: add
guardSeedExit()(imported from@intecion/ipal-kit/seed) as the first statement of every seed script, beforegetPayload(); without it nothing changes. A guarded script must end withseed.summary()(the seed templates do), otherwise it exits 1 as "ended before the seed finished". - Check in Coolify: after a seed in the app's Terminal,
echo $?must print0;1with a[seed] ended …line means the run stopped early and nothing after that point was written — run it again. pnpm ipal:skillsfor the updatedipal-site/ipal-formseed templates andipal-reference.
1.15.0
A new site in one command (ipal-kit create), built from a complete reference site; ipal-doctor, which checks any site
against the team rules; a design-token standard; a block library of fifteen ready page sections and ten page templates.
Database names follow one rule, and seeding a live site touches only the records you name. Everything new is opt-in for
existing sites, except the few changes listed under "What projects must update".
New
ipal-doctor(doctor.md): one command, run in a site, that checks it against the team rules and lists every gap with a fix hint — plugin/Next/sharp/Node versions, the AGENT.md §3 layout and naming, database names, env rules, security headers, X-Powered-By, CSP, 2FA, the cookie scanner, adminMeta, AGENTS.md "Project decisions", current skills, seeds (createSeeder, no deletes, guard on), the block library (blockLibraryManifest),pnpm audit --prod, hardcoded texts (it runsipal-audit --quick).--urlchecks the running site (and runsipal-seo-check),--deepreads the database read-only throughpayload run. Human or--jsonoutput,--strict, exit codes 0/1/2/3,--sites '../*-web'for a read-only drift table.ipal-doctor.jsonsilences, lowers or raises a rule with a reason (until,files). New binipal-doctor, new entry@intecion/ipal-kit/doctor, new skill ipal-doctor.GET /api/ipal/doctor: read-only counts for the doctor (users without TOTP, cookies waiting for approval, versions). 404 untilIPAL_DOCTOR_TOKEN(≥ 32 characters) is set; Bearer token, rate-limited.ipalKit({ doctor: false })removes it.ipal-kit create— a new site in one command (project-starter.md):pnpm --config.auto-install-peers=false dlx @intecion/ipal-kit@<version> create intecion.comasks the architecture questions (or reads--answers answers.json), generates the site from the reference site (reference/throughstarter.manifest.json: placeholders,@starter:ifvariants, demo left out), writes the answers intoAGENTS.md→ Project decisions andipal-doctor.json, installs from a shipped lockfile, runsipal-skills,ipal-tokens,generate:types,generate:importmap,typecheck, checks for secrets and makes the first commit. New binipal-kit(subcommandcreate), new entry@intecion/ipal-kit/starterwith the building blocks (renderSite,validateAnswers,applyVariants,collectBundle…). New scriptsbuild:starterandstarter:gateinprepublishOnly: a site made from the packed tarball must install frozen, seed, build, run the targeted seed in production mode and serve/plbefore a publish. Adds ~180 KB to the tarball. Not yet: single-language sites and a default language other thanpl— the command stops and points to the manualipal-setuppath.- Design-token standard (design-tokens.md): one set of
--ipal-*names for every site, only the values differ per brand.@intecion/ipal-kit/tokens.css(neutral defaults, light/dark ondata-theme,[data-surface="inverse"]scope, reduced motion),@intecion/ipal-kit/tailwind.css(Tailwind 4 preset:bg-surface,text-fg,text-on-primary,py-section,rounded-card,duration-fast…),@intecion/ipal-kit/a11y.css(the accessibility widget's CSS through the tokens). New entry@intecion/ipal-kit/tokens(defineTokens,tokensToCss,contrastReport,fluidClamp,IPAL_TOKENS,ipalVar,IPAL_BREAKPOINTS…; the first four names also from the root). New binipal-tokens:src/design/tokens.ts→src/design/tokens.css+ WCAG contrast check (--checkfor CI). TemplatesDESIGN.mdandtokens.tsinipal-setup/resources.ipal-auditchecks the standard. fluid.css/fluid-wide.css:--ipal-fs-xs,--ipal-fs-h4,--ipal-space-stack,--ipal-space-section-sm.- Design tokens:
data-theme="dark"/"light"switches the tokens on any element (a dark panel, a styleguide), not only on<html>(LIGHT_SELECTOR,DARK_SELECTOR). Inside an inverted sectionprimaryreads the newprimary-inverse/primary-inverse-textroles (default: the brand primary), and the contrast report checks primary buttons there. Theipal-formformClasses.tstemplate uses the token utilities andbuttonClass(). - Block library (block-library.md):
hero,textMedia,featureGrid,cta,richText,faq,contact,gallery,testimonials,stats,steps,logos,team,pricing,entryList— Payload block + server component each,{ en, pl }panel, accessibility built in, styled only with design-token utilities. Opt in per block:libraryBlocks({ hero: true, … })(@intecion/ipal-kit/blocks); render withcreateBlockRegistry(content, { Image, Link, sendForm })(@intecion/ipal-kit/blocks/rsc). Nothing is on by default. Override fields, variants, slugs, labels, part classes, primitives or whole components; own blocks share the registry. - Page templates:
pageTemplates(@intecion/ipal-kit/templates) — home, about, services, service, contact, blog index, post, legal pages, cookie policy, 404 — ascreateSeederdata in English and Polish;systemPageRefs. ipal-blocks eject <block>copies a library block intosrc/blocks/(same slug and data shape).blockLibraryManifest— the library's blocks, variants, fields and primitives as data, for checks.- Seeder:
{ $form: 'Contact form' }references (by title,formsCollection, defaultforms). - Database name rule:
<domain without dots>_prod/_dev(e.g.acmepl_prod), docs/deployment.md.ipalEnvRules({ databaseName: true })(domain fromNEXT_PUBLIC_SERVER_URL, skipped on localhost) or{ databaseName: { domain, warn } }checksDATABASE_URIand warns only — never fails startup. Default off. Helpers:databaseNamesFor(domain),databaseNameFromUri(uri),checkDatabaseName({ databaseUri, domain }). - Seeding after launch:
createSeeder(payload, { only })/SEED_ONLY="pages:kontakt,global:header"(alsoforms:<title>,pages:*) — the run touches only the listed records; the rest are reported asskip (not listed). The seed templates (ipal-site,ipal-form) read it. - Reference site for agents:
docs/agent/reference-site/INDEX.md(shipped) maps every plugin feature to a file in a complete example site built on ipal-kit, so an agent can copy a working pattern. The site itself lives in the plugin repo (reference/, not shipped) and is built, seeded and smoke-tested in the plugin's CI. - 2FA screens in plain English and Polish:
TOTP_TEXTS(en, pl) go over@clocklimited/payload-2fa's texts, and the setup / verify screens get a tab title (TOTP_VIEW_TITLE, in the site's default language) instead of "Payload". The project's owni18n.translations.<lang>.totpPluginstill wins, a view's ownmeta.titlestays, andtwoFactor: { …, texts: false }keeps the package's texts. The admin language still follows the browser. <CookieButton>stays clear of the footer: when the footer scrolls into view the button moves up above it (avoid, defaultCOOKIE_BUTTON_AVOID=footer, [role="contentinfo"];avoid={false}turns it off),side('left'default /'right'), position tokens--ipal-cookie-button-inset;bottomOverlapfor your own widget. TypeCookieButtonProps.
Fixed
- Meta descriptions,
/mdpages andllms-full.txtnow read the section header of blocks (header: { heading, intro }frombuildSectionHeaderField, every library block) and testimonialquotes (blocksToMarkdown). Before, a page whose text sat only in its hero (an archive page, a form page, the 404) got no auto-filled meta description and fell back to the site description — the same text on several pages, which Google ignores. Requires project changes: none; pages saved before keep their stored description — re-save them (or seedmeta.description) to fill an empty one. - Block library — headings and the LCP image (found by
ipal-doctorlive-seo on the archive pages): item headings follow the section —h3under a section heading,h2when the block shows none (an entry list under the page header no longer jumpsh1→h3); override withcreateBlockRegistry({ itemHeadings: { entryList: 'h3' } }). The first image of the block that leads the page loads eagerly with high priority —createPageRoutenow passesfirstImage("no block before this one shows an image",blockPosition) next toisFirst;priorityImage: falseturns it off. - Sitemap, llms.txt, the site index (MCP
list_pages), search (searchContent, the search route, MCPsearch_content): the page assigned as the 404 page is no longer listed — it answers 404 at its own address (unlistedPageIds(settings)). A 404 page that is also the homepage stays. buildImagesConfigin production without R2: withR2_PUBLIC_URLempty (the default: media served by the app) the site's own/api/media/file/**onNEXT_PUBLIC_SERVER_URLis allowed, so next/image no longer answers 400. With R2 nothing changes; a production build on localhost still never opens private IPs.fillGlobal: a choice field (select, radio, checkbox, number, date) still at itsdefaultValuecounts as empty, so e.g. Theme →defaultTheme: 'system'can be seeded over the stored defaultlight. Text is never overwritten, even when it equals a default. A field already holding exactly the seeded value is not rewritten (skip (exists)), so a seed of defaults stays idempotent.- Docs:
LanguageSwitcherwithrenderLabelneeds a'use client'wrapper (i18n.md, ipal-site).
Changed
- ipal-seo-check: duplicate titles are counted per language (the same word in two languages is not a duplicate).
- ipal-audit: array
labels/rowLabelafter thefieldskey are found (were reported missing); a form seeded from any seed file (src/seed/forms.ts,upsertBy('forms', …)) counts as a form seed; the script runs grep in UTF-8 (in the C locale an en dash matched the Polish-letter check). - The plugin's own dependencies are pinned to exact versions (
lucide-react0.400.0,nodemailer10.3.1,server-only0.0.1,slugify1.6.9), so two sites created from the same release get identical trees. Projects: nothing to do (pnpm installs the pinned versions;nodemailermoves from 10.2.1 to 10.3.1). - The reference site carries
@starter:ifmarkers (comment lines) and the starter's alternatives as//:lines; it runs exactly as before. - Cookie banner / button colours read the single token names (
--ipal-surface,--ipal-text…) instead ofdark:+--ipal-*-dark. Withtokens.cssthey switch with the theme. Without it, the built-in fallback follows the page'scolor-scheme(light-dark()): a site without a dark theme no longer gets a dark banner on a dark-mode device. A-darkvariable a site still sets is used as the dark fallback. The secondary button's dark fallback text is#d4d4d4(was#e5e5e5). - Lightbox fade:
--ipal-lightbox-durationdefaults tovar(--ipal-duration, 200ms); new--ipal-lightbox-easing. - Admin labels: the link "Open in new tab" checkbox is now New tab (with a description) and the table-of-contents switch Show contents — shorter labels per admin-ux; the stored fields are unchanged.
- A full seed of a live database is refused: a run without
only/SEED_ONLYagainstNODE_ENV=productionor a non-local database now throws (with the steps to follow). Dry runs (SEED_DRY_RUN=1) are never refused. Allow it only with the owner's explicit OK:IPAL_SEED_ALLOW_FULL=1orguard: { allowFull: true };guard: falseturns every guard off.
What projects must update
- Production seed scripts / Coolify jobs: a seed run against production without a record list now stops. List
the records:
SEED_ONLY="pages:kontakt,global:header" pnpm seed(check withSEED_DRY_RUN=1first, back up the database). A deliberate full re-seed:IPAL_SEED_ALLOW_FULL=1, with the owner's OK. Local seeding is unchanged. - Optional: name the databases
<domain without dots>_prod/_devand addipalEnvRules({ databaseName: true })to see a warning whenDATABASE_URIpoints elsewhere. Existing databases need not be renamed. - Seed scripts copied from older templates: take the new
SEED_ONLYhandling fromipal-site/ipal-form. - Optional: adopt the design-token standard (design-tokens.md → "Migrating an existing site"; ipal-upgrade). A
site that styles the cookie banner only through
--ipal-*-darkfor its dark theme and does not adopttokens.css: check the banner in the dark theme (the dark fallback now needscolor-scheme: dark, which<ThemeScript>sets). - Block library — optional, nothing changes until you turn blocks on. New sites: the starter turns on eight blocks.
Existing sites move block by block when they get work (an own block with the same slug and fields can be replaced by
the library block with
slug, else a migration with ipal-migrate-fields). After turning blocks on:pnpm generate:types,pnpm payload generate:importmap, Postgres/SQLitepnpm payload migrate:create. - CookieButton: it now lifts above the site footer when the footer is in view. A site with its own fixed footer
bar or a button placed by
className: check it;avoid={false}keeps the old fixed position. - Agent skills:
pnpm ipal:skills— new skill ipal-doctor, and the updatedipal-reference,ipal-setup,ipal-site,ipal-audit(the audit now skips the starter's//:alternative lines). - Recommended: run
pnpm exec ipal-doctorin the site (and--url https://<site>against production) and fix or silence each finding with a reason inipal-doctor.json. TheGET /api/ipal/doctorendpoint stays a 404 untilIPAL_DOCTOR_TOKEN(≥ 32 characters) is set;ipalKit({ doctor: false })removes it. - Exact dependency pins: the plugin's own
lucide-react,nodemailer(10.3.1),server-onlyandslugifyare pinned — nothing to do;pnpm installpicks them up. Node.js stays>=20.9for the plugin (new sites fromipal-kit createuse Node 22). - New sites:
pnpm --config.auto-install-peers=false dlx @intecion/[email protected] create <domain>(project-starter.md). Not yet: single-language sites and a default language other thanpl— the command stops and points to the manual ipal-setup path.
1.14.6
The release of everything listed under 1.14.5. 1.14.5 was tagged but never published (its pre-publish test run failed on the bug below): projects upgrade from 1.14.4 straight to 1.14.6 and follow the 1.14.5 "What projects must update" steps.
Fixed
- The admin link-preview hook no longer throws without a Payload instance. The Site settings
afterChangehook added in 1.14.5 (adminMeta) calledsyncAdminMeta(req.payload, …); with nopayloadon the request (tests, scripts calling hooks by hand) it threw, and its own error handler threw again.syncAdminMetanow returns when there is no Payload instance and logs only throughpayload?.logger, and the hook skips it withoutreq.payload. ThefillEmptyLocaleshooks got the same guard. In a running sitereq.payloadis always set.
What projects must update
- From 1.14.4: the 1.14.5 steps below (storage-type and title-separator migrations, theme key, cookie list, admin link preview, dependency overrides, agent skills). Nothing more for 1.14.6.
1.14.5
Tagged but never published — use 1.14.6, which contains everything below.
The theme choice moves to the standard theme key, the cookie scanner declares the plugin's own browser-storage
key, and the cookie list tells cookies from browser storage. A pasted /admin link now shows the site's own name,
description and preview image instead of Payload's, and search engines are told not to index the panel.
/api/graphql works again: it answered 500 on every site since 1.0.1. The graphql-scalars advisory is fixed in the
plugin and recommended to projects, and the agent guide asks the architecture questions first and can add pinned
third-party skills.
Fixed
/api/graphqlreturned 500 for every project (Names must start with [_a-zA-Z] but "|" does not.). The values of Site settings → Title separator became GraphQL enum names, and|,–,·are not valid names (-and/both became_). Present since 1.0.1. The admin, REST and Local API were not affected, because they don't use GraphQL. Stored values are now names:pipe,endash,hyphen,middot,slash. The labels are the same, andTITLE_SEPARATORS/titleSeparatorCharmap a name to its character. An old stored character still works: titles use it, and the field reads and saves it as its name. A test now builds the full plugin's GraphQL schema and fails on any invalid or duplicate enum name.
Changed
- Theme key
ipal-theme→theme(THEME_STORAGE_KEY), the key andlight/darkvalues next-themes uses. Visitors keep their choice:<ThemeScript>moves an oldipal-themevalue to the new key before the first paint (no flash) and removes the old key;useTheme/<ThemeSwitcher>do the same on pages without the script (migrateThemeStorage,LEGACY_THEME_STORAGE_KEY). A project that also runs next-themes now shares the key — setipalKit({ theme: { storageKey } })to keep them apart. - White-label credit text "Technology supported by Intecion.com" → "Technology support: Intecion.com" (pl:
"Wsparcie technologiczne: Intecion.com"), with the name from the
agencyoption.
New
theme.storageKeyoption (ThemeOptions):getSiteShell().theme.storageKey→<ThemeScript>→<html data-theme-storage>(THEME_STORAGE_ATTRIBUTE) →useTheme/<ThemeSwitcher>; both also takestorageKey.- Cookie scanner declares browser storage: the theme choice (Theme choice, on when Site settings → Theme → Allow theme toggle is on) as necessary, local storage, "until changed or site data is cleared" — so Scan cookies finds it without a crawl.
- Type in the cookie list: Cookies → Cookie list rows have Type (
storage: cookie · local storage · session storage, default cookie, shared by every language), filled by scan, review and approval. The detailed settings window shows it for storage entries (heading: Settings window → Cookie list headings → Type);<CookieTable>adds a Type column when the list has a storage entry (storageColumn,storageTypes,COOKIE_STORAGE_LABELS).CookieTableRow.storage,texts.details.storage/.storageTypes, typeConsentStorage. The approval page marks storage entries. - Admin link previews (
adminMeta, default on): the panel's<title>suffix, description,og:site_name, preview image and favicon come from Site settings (site name, logo, site icon), and/admingetsrobots: noindex, nofollow. The preview image isGET /api/ipal/admin-og(1200×630 PNG rendered with next/og: the logo or site name, "Administration panel", a technology-support line) and the iconGET /api/ipal/admin-icon. Both are public, like the link previews that fetch them, and show only what Site settings already serves publicly (name, logo, icon). Per piece:adminMeta: { description, image, icons, robots, titleSuffix, language }(falsefor a piece = Payload's own);adminMeta: falseturns it all off; keys the project sets in its ownadmin.metaalways win. Building blocks:buildAdminMeta,adminMetaForSite,syncAdminMeta,buildAdminImageEndpoints,ADMIN_META_TEXTS, typesAdminMetaOptions,ResolvedAdminMeta(white-label.md). agencyoption (default{ name: 'Intecion.com', url: 'https://intecion.com' },AgencyOption,DEFAULT_AGENCY): the technology-support name in the white-label credit, the admin description and the preview image. Another agency:agency: { name, url }; none anywhere:agency: false. The credit itself still turns off withwhiteLabel: { credit: false }.- Agent guide — ask before you build: AGENT.md and the
ipal-*skills start with one list of architecture questions (languages, content model, forms, integrations, hosting…) that the agent asks once and waits for; an unanswered question is never guessed. ipal-kit first: use the plugin's function when one exists; a gap is reported (ipal-plugin-gap) and the agent waits instead of writing its own version. Plus code rules for the project (ipal-block,ipal-collection,ipal-form,ipal-site,ipal-setup,ipal-debug). - External skills (opt-in):
pnpm exec ipal-skills --external(or--external ext-react-best-practices,ext-payload) also copies five vendored third-party skills —ext-react-best-practices,ext-composition-patterns(vercel-labs/agent-skills, MIT),ext-accessibility(addyosmani/web-quality-skills, MIT),ext-frontend-design(anthropics/skills, Apache-2.0),ext-payload(payloadcms/payload, MIT). Text only, pinned to a commit, with each licence and a sha256 manifest (docs/agent/external/manifest.json); nothing is fetched at install time. Without--externalnothing changes.
Security
graphql-scalarsadvisory (high, ReDoS in thePhoneNumberscalar, GHSA-x8rm-f576-gq67):@payloadcms/graphqlpins 1.22.2 up to the latest Payload (3.92.1). The plugin's repo overrides it to^2.0.1; Payload's GraphQL (DateTime,EmailAddress, JSON) works unchanged with it. Projects get the recommendation in AGENT.md §4 item 12.pnpm audit --prodon the plugin: 0 high, only the unfixeddeepmergelow. graphql-scalars 2.x is a major (graphql-js 16+); Node.js 22 is recommended for projects that add the override (the package itself declaresnode >=10, and the plugin'senginesstay>=20.9).
Known issue
deepmerge4.2.0–4.3.1 (low, GHSA-gcqx-w48m-w2h4) throughpayload: no patched version yet; nothing to do.
What projects must update
- Migration (Postgres / SQLite):
pnpm payload migrate:create cookie-storage-type— it only addscookie_settings_cookies.storage(enum,DEFAULT 'cookie') andcookie_settings_locales.detail_labels_storage. Existing rows become Cookie: set the type of storage rows by hand. MongoDB: nothing to do. - A project that reads
localStorage.getItem('ipal-theme')itself: useTHEME_STORAGE_KEY(ordocumentThemeStorageKey()). - Cookie list: after the next Scan cookies, approve the new theme entry; remove an old ipal-theme row from Cookies → Cookie list once the site runs this version.
- Admin link previews: nothing required — the preview, noindex and favicon come from Site settings by default.
Remove a hand-written
admin.metathat only set the panel title, description,openGraphorrobots: noindex(keep any key you really want: youradmin.metakeys win). WithwhiteLabel, the credit reads "Technology support: Intecion.com";agency: falseorwhiteLabel: { credit: false }to remove it. No new admin components (the import map is unchanged). Check:curl -s $URL/admin/login | grep -E 'og:|robots', open$URL/api/ipal/admin-og, and paste an/adminlink in Slack or Messenger. - Security (recommended): on
payload3.90.x–3.92.x add"graphql-scalars@<2.0.1": "^2.0.1"topnpm.overridesnext to thedompurifyandundiciones (AGENT.md §4 item 12),pnpm install; Node.js 22 recommended with this override (check the Coolify build image). Check:pnpm audit --prod→ no high or critical; with GraphQL in use, a query on aDateTime/EmailAddressfield still answers 200. - Title separator (Postgres):
pnpm payload migrate:create title-separator. The generated SQL turns the column into text, recreates the enum with the new names and casts back, and that cast fails on a stored|. Add the data update right after the firstSET DATA TYPE text;inup(and the'down'variant indown):SQLite: the column is plain text, so nothing fails. Optionally runimport { titleSeparatorSql } from '@intecion/ipal-kit' // up: ALTER TABLE "site_settings" ALTER COLUMN "title_separator" SET DATA TYPE text; // ${sql.raw(titleSeparatorSql())} // down: ALTER TABLE "site_settings" ALTER COLUMN "title_separator" SET DATA TYPE text; // ${sql.raw(titleSeparatorSql({ direction: 'down' }))}titleSeparatorSql()in a migration to store the names. MongoDB: nothing to do, because the plugin rewrites the stored character at start ([ipal] Site Settings: title separator … stored as …). If you overrode the field's options (globalOverrides), use GraphQL-safe values (/^[_A-Za-z][_A-Za-z0-9]*$/). Check:curl -s -X POST $URL/api/graphql -H 'content-type: application/json' -d '{"query":"{ SiteSetting { titleSeparator } }"}'returns 200, and the browser tab shows the same separator as before. Project code that readssettings.titleSeparatoritself now gets a name (pipe, …): pass it throughtitleSeparatorChar()before putting it in a title. - Agent skills:
pnpm ipal:skills(orpnpm exec ipal-skills) to get the new agent rules. Optional, only if the owner wants them (record it in AGENTS.md → "Project decisions"):pnpm exec ipal-skills --external.
1.14.4
Cookie texts in every language without retyping them, and one Cookies entry in the admin instead of three. Both are on by default and can be turned off; no schema change.
New
- Empty languages are filled automatically (
fillEmptyLocales, default on): text written in one language goes to every language where the same field is still empty — the cookie list (Cookies → Cookie list:purpose,duration) and the cookie review (purpose,retention). A language that has its own text is never overwritten, so editors can still change each language on its own.fillEmptyLocales: falseturns it off; an object sets the fields per slug ({ 'cookie-settings': [...], 'cookie-review': [...] },[]= off for that slug). Building blocks:fillEmptyLocales,withFillLocales,buildFillEmptyLocalesGlobalHook,buildFillEmptyLocalesCollectionHook, typeFillEmptyLocalesTarget(docs/hooks.md). - One Cookies entry in the admin (
cookieScanner.adminLayout, default'combined'): with the cookie scanner, the Cookies global gets Review and approve and Site check tabs (CookieReviewTab,CookieSiteCheckTab,/admin;addCookieScannerTabs). The Cookie review collection and the Cookie check global leave the navigation; their data, API and/admin/cookie-approvalstay.adminLayout: 'separate'keeps the separate entries.collectionOverridesandcrawl.globalOverridestill win (e.g.admin.groupto show an entry again).
Changed
- The Cookie banner global is labelled Cookies (pl: Cookies) in every project; the slug
cookie-settingsand the data are unchanged. Docs and skills use the new name.
Known issue
pnpm audit --prodstill reports one low advisory:deepmerge4.2.0–4.3.1 (GHSA-gcqx-w48m-w2h4), reached throughpayload. No patched version exists yet; nothing to do in projects.
What projects must update
pnpm payload generate:importmap— withcookieScannerit adds@intecion/ipal-kit/admin#CookieReviewTaband (withcrawl)@intecion/ipal-kit/admin#CookieSiteCheckTab; commitimportMap.js. No migration (no schema change).- Behaviour to know (both overridable):
- Empty languages of the cookie texts are now filled from the language an editor writes in. To keep empty
languages empty:
ipalKit({ fillEmptyLocales: false }). - With
cookieScanner, the cookie screens are one Cookies entry with tabs; Cookie review and Cookie check are no longer in the navigation. To keep the old entries:cookieScanner: { adminLayout: 'separate' }.
- Empty languages of the cookie texts are now filled from the language an editor writes in. To keep empty
languages empty:
- Tell editors: Cookie banner is now Cookies; the review list and the site check are its tabs. Update screenshots and instructions. Check: the admin navigation shows one Cookies entry; its Review and approve tab lists the review entries; type a cookie purpose in one language, save → the other languages show it.
1.14.3
One approval for everything the cookie scanner finds: editors tick the cookies and add them all to the cookie list
at once, instead of opening every review entry. Only for projects with cookieScanner.
New
- Approve cookies page (
/admin/cookie-approval,CookieApprovalView; linked from the scan box on Privacy → Cookie review and from the dashboard): the cookies a scan or crawl found, grouped by category, with one Approve and add button for every ticked cookie. They go into Cookie banner → Cookies in every locale. Nothing reaches the cookie list until an editor approves it. The approve and list endpoints are for editors and up by default (cookieScanner.access). - Markers on each review entry (new
changeandneedsDescriptionfields): New, Changed (a scan changed its suggested values), Needs description (no purpose yet; cleared when an editor writes one) and No longer found (a scan or crawl no longer sees it). A cookie that is no longer found is flagged for review only; neither the review entry nor the list row is deleted. - Never overwrites, never duplicates: an existing list row (same name, or a pattern such as
_ga_*that covers it) only gets its empty texts filled; editor text is kept, and no second row is added. - Unknown cookies that no integration or database knows go to
cookieScanner.approval.unknownCategory(defaultmarketing, so they need consent until an editor describes them). - Reminders: a dashboard notice while cookies wait (
CookieCrawlAlert;approval.dashboard: falsehides it), and the crawl e-mail says how many cookies wait, with a link to the approval page. cookieScanner.approval: falsekeeps the old review, entry by entry.- New exports:
approveCookies,loadCookieApproval,countPendingCookies,flagGoneEntries,nextChange,sameCookie,buildCookieApprovalEndpoints,COOKIE_APPROVAL_PATH,COOKIE_APPROVAL_VIEW_PATH,DEFAULT_UNKNOWN_CATEGORY,PENDING_WHERE;CookieApprovalView,CookieApprovalForm(/admin); typesCookieApprovalOptions,CookieApprovalItem,CookieApprovalList,CookieApprovalResult,CookieChange.
Changed
- Hand-typed cookie list rows: a scan looks a row up (database, integrations) only while it has no review entry. Once it has one, the review entry and the approval page are the place to change it.
Known issue
pnpm audit --prodstill reports one low advisory:deepmerge4.2.0–4.3.1 (GHSA-gcqx-w48m-w2h4), reached throughpayload. No patched version exists yet; nothing to do in projects.
What projects must update
- Projects with
cookieScanner:pnpm payload generate:importmap— adds@intecion/ipal-kit/admin#CookieApprovalViewand@intecion/ipal-kit/admin#CookieCrawlAlert(the dashboard reminder now uses it even withoutcrawl); commitimportMap.js.- Postgres/SQLite:
pnpm payload migrate:create→migrate— thecookie-reviewcollection getschange(an enum column with an index) andneeds_description(boolean). Only new columns; nothing is dropped or renamed. MongoDB: nothing. - Tell editors: after a scan, open Approve cookies (from the scan box on Privacy → Cookie review, or the
dashboard), tick and Approve and add. Fill in the cookies
marked Needs description. Check: run a scan → the new cookies appear on
/admin/cookie-approval; approve one → it is in Cookie banner → Cookies in every language. - Keep the old review instead:
cookieScanner: { approval: false }.
- Projects without
cookieScanner: nothing.
1.14.2
Fixed
- 2FA setup loop. A user without TOTP (every new admin) was sent to
/admin/setup-totp?back=null, and that page redirected to itself forever.@clocklimited/payload-2fa's admin provider reads the path from anx-pathnamerequest header, which nothing sets on/admin(thecreateProxymatcher skips it). ipal-kit now swaps in its own provider,TotpRedirectProvider(@intecion/ipal-kit/admin): it reads the path in the browser, never redirects away from the setup or verify screen or from logout, and renders nothing while a redirect is pending.
New
twoFactor.provider— your own redirect component (path or{ path, clientProps, serverProps }), orfalseto keep the package's (then setx-pathnameon/adminyourself).totpRedirectTarget/totpAdminPath— the redirect rules as a pure function, for your own provider.
Known issue
pnpm audit --prodreports one low advisory:deepmerge4.2.0–4.3.1, prototype poisoning inmergeObject()(GHSA-gcqx-w48m-w2h4), reached throughpayload(@clocklimited/payload-2fa→payload→deepmerge). No patched version exists yet; nothing to do in projects until Payload ordeepmergeships a fix.
What projects must update
- Projects with 2FA on:
pnpm payload generate:importmap(adds@intecion/ipal-kit/admin#TotpRedirectProvider), commitimportMap.js,rm -rf .next, redeploy on Coolify. Check: a new admin lands on/admin/setup-totp?back=%2Fadminand sees the QR code. Remove an ownx-pathnamerule on/adminif one was added as a workaround. - Projects without 2FA (
twoFactor: false): nothing.
1.14.1
Response-header hardening from the intecion.com audit: hide X-Powered-By, and a Content-Security-Policy the project
can roll out safely (report-only first, with reports). Everything is opt-in; nothing changes until the project uses it.
New
withSecurityConfig(nextConfig, { hidePoweredBy })— hidesX-Powered-By(Next'sNext.jsand theNext.js, PayloadthatwithPayloadadds) by settingpoweredByHeader: falseand dropping the header fromheaders()rules. Works on either side ofwithPayload. Opt out:hidePoweredBy: false.buildSecurityHeaders({ csp })— off by default (csp: false). PassbuildCspargs to add the policy:mode: 'report-only'(Content-Security-Policy-Report-Only) or'enforce'; withreportUrithe policy getsreport-uri/report-toand theReporting-Endpointsheader is added (reportGroup, defaultcsp-endpoint). A hand-written policy inadditionalstill wins.createCspReportRoute()— a POST route for violation reports (both the legacyapplication/csp-reportand the Reporting API format), logged as one[csp]line each (onReportto send them elsewhere,maxBytes);parseCspReportsfor your own handler.buildAdminCspHeaders/buildAdminCsp— a policy for/admin/:path*that fits Payload's admin, with the samemode/reportUri/extra/override.- Nonces (opt-in) —
createProxy(config, { csp })creates a per-request nonce, puts the policy on the request (Next adds the nonce to its own scripts) and the response, and exposes it as thex-noncerequest header;<SiteProviders nonce>passes it to the theme script and the analytics tags (ThemeScript,Analytics,ConsentScripttakenonce).strictDynamic(default on with a nonce). Nonces need dynamic rendering, so they are only for sites that render per request; static and ISR sites keep the header-only CSP.createCspNonce,CSP_NONCE_HEADER. buildCspflags —metaPixel,linkedIn,tiktok,claritynext toanalytics,turnstile,youtube,googleMaps,r2Url;dev(adds'unsafe-eval', defaultNODE_ENV === 'development');extraadds sources to any directive;overridereplaces a directive (nulldrops it).buildCspHeaders,buildReportingEndpoints,cspHeaderKey, typesCspDirective,CspSources,CspViolation.- ipal-audit — checks the response headers:
X-Powered-Byanywhere → ERROR; no CSP on the site or/admin→ WARNING; report-only for weeks with clean reports → WARNING (switch to enforce).
Changed
buildCspallowlists are slightly wider (nothing that was allowed is now blocked):analyticsalso allows the Google Signals hosts (https://*.g.doubleclick.net,https://www.google.com) inconnect-srcandimg-src;r2Urlis also added tomedia-src; in development'unsafe-eval'is added (dev: falseto turn it off). The order of the directives in the header changed (cosmetic).buildSecurityHeaders({})output is unchanged.
Documentation
- security.md rewritten: X-Powered-By, CSP roll-out (report-only → enforce), report route, admin policy, nonces vs static pages. AGENT.md, ipal-setup, ipal-reference, ipal-audit, ipal-upgrade.
What projects must update
Nothing is required. Recommended, in this order (ipal-upgrade → 1.14.1, security.md):
- Hide
X-Powered-By:export default withPayload(withSecurityConfig(nextConfig)); remove a hand-writtenpoweredByHeader: false. Check:curl -sI <site>/pl | grep -i x-powered-by→ nothing (also/admin). - CSP report-only:
buildSecurityHeaders({ csp: { mode: 'report-only', reportUri: '/api/csp-report', r2Url: process.env.R2_PUBLIC_URL, …flags for what the site loads } }), the admin rule{ source: '/admin/:path*', headers: buildAdminCspHeaders({ mode: 'report-only', reportUri: '/api/csp-report' }) }andsrc/app/api/csp-report/route.ts→export const POST = createCspReportRoute(). Deploy and read the[csp]lines in the Coolify logs. - Enforce: after a few days of clean reports,
mode: 'enforce'in both places; redeploy and check the pages. - Projects that already call
buildCsp({ analytics })or passr2Url: the policy gets the wider allowlists above after upgrading — review them if the policy is audited line by line.
1.14.0
An image lightbox, a cookie scanner with a browser pre-consent check, an admin panel in English and Polish, and dependency security fixes. Every new feature is opt-in or overridable — AGENT.md §7.1 lists the switches.
Image lightbox
- One shared viewer for the site —
<LightboxProvider>,<LightboxTrigger>,<LightboxDialog>,useLightbox(/client) and the pure helperslightboxImage(media, { size }),lightboxIndex,formatLightboxCounter,resolveLightboxTexts(root and/client). Galleries bygroup, keyboard and swipe, focus trap, reduced motion, unstyled mode,classNames/icons/renderImage/renderDialog. <SiteProviders lightbox>mounts the provider for the whole site (default off).RenderRichText lightboxmakes image uploads in rich text click-to-enlarge (opt-in);withLightboxUploads(/rsc) for your own converters.ipalKit({ lightbox: true })adds an Image viewer group to Form messages so editors translate the labels (default off; English and Polish fallbacks without it). docs/lightbox.md.
Cookie scanner
- Phase 1 — declarations and lookup:
ipalKit({ cookieScanner: true })adds the Cookie review collection (Privacy group) and a Scan cookies box above its list (GET/POST /api/ipal/cookie-scan, editors and up by default —cookieScanner.access). A scan lists the cookies of the integrations the project switches on, your owndeclarationsand names looked up in the bundled Open Cookie Database (Apache-2.0, loaded only when a scan runs), as drafts. An editor accepts (→ Cookie banner → Cookie list), edits or rejects; a rescan never overwrites edited text, never deletes and never publishes by itself. Overrides:collectionOverrides,integrations,labels,database,databaseCategories,syncAccepted. - Phase 2 — "Check site":
cookieScanner: { crawl: true }sends a real browser through the sharedservices/cookie-crawlerservice (one Coolify deployment for all sites). It visits the site before consent and reports cookies and tracker requests set without consent as violations: drafts in Cookie review, the latest result in thecookie-crawlglobal, a dashboard warning (CookieCrawlAlert,crawl.dashboard: falseto hide) and an e-mail. Site env:IPAL_COOKIE_SCAN_URL,IPAL_COOKIE_SCAN_TOKEN(ipalEnvRules({ cookieCrawl: true })); service env:IPAL_CRAWLER_SITES. docs/cookie-scanner.md. - Building blocks are exported (
runCookieScan,lookupCookie,findCrawlViolations,parseCrawlResult, …).
Admin panel in English and Polish
- The admin speaks English and Polish by default when the project sets no
i18n.supportedLanguages; a project's own list always wins. Plugin texts live under theipalnamespace and the project'si18n.translationswin key by key. New exports:applyAdminI18n,ipalT,adminTexts,defineTexts,formatNumber,formatDateTime,adminDocumentTitle,<DocumentTitle>(/admin). - All wording rewritten (docs/dev/admin-ux.md): plain names (Site settings, Site integrations, Cookie banner,
Form messages, Search engines, Maintenance), descriptions that say what a field does, labels as
{ en, pl }. - Regrouped, same data: a Privacy group (Cookie banner, Consent records, Cookie review), Forms under one group,
the
rolesfield and Cookie banner → Consent version in the sidebar. No slugs, field names or columns changed (Postgresmigrate:createreports no schema changes). - Frontend texts: validator messages are full sentences (
VALIDATION_MESSAGES,validationMessages(locale),localizedRules(locale)), andpllocales get Polish fallbacks for consent, form messages and the lightbox (CONSENT_FALLBACK_PL,NOTIFICATION_FALLBACK_PL,LIGHTBOX_FALLBACK_PL,consentFallback, …).
Admin follow-ups
- The statistics tab title follows the admin language; the cookie scanner's integration names are Polish in a Polish admin; the maintenance notice's close button has a screen-reader label in the page language.
- Favicon warning:
FaviconCheck(/admin) shows under Site settings → Site icon when the image is under 48×48 px or not square; saving is never blocked.faviconProblems,FAVICON_MIN_SIZEfor your own checks.
Dependencies and security
- Next.js: dev dependencies on
nextandeslint-config-next16.4.3 andsharp0.35.5. The docs set 16.4.1 as the minimum safe Next. The peer range staysnext >=15. - nodemailer 10 (was 8; ships its own types,
@types/nodemailerdropped). Node.js 20.9 or later (engines.node: ">=20.9.0"; Payload 3 already needs it). pnpm audit --prodon the plugin: no known vulnerabilities. Repo-onlypnpm.overridesfix Payload's pinned transitive dependencies; projects are not bound by them (see "What projects must update").
Tests and dev
- Tests boot Payload through
buildTestConfig(typescript.autoGenerate: false), and a guard test fails on a rawbuildConfig. The dev app no longer spawnspayload generate:typeson every start. Both left orphan processes.
What projects must update
pnpm payload generate:importmap—FaviconCheckand theRowLabelcomponents are injected into every project. Missing entries leave the Site settings screen or array rows broken. Thenpnpm ipal:skills,rm -rf .next.- Node.js 20.9 or later — check the Coolify build image,
.nvmrcandengines. Removenodemailer/@types/nodemailerfrom the project's ownpackage.jsonif someone added them. - Next.js 16.4.1 or later (16.4.3 recommended) with sharp 0.35.5 or later:
pnpm add next@^16.4.3 eslint-config-next@^16.4.3 sharp@^0.35.5. Next 16.0.0–16.4.0 is affected by GHSA-2464-fhr4-w9xw, GHSA-673q-mjm6-r5xr and GHSA-p3m5-59mp-jv5r (two unauthenticated remote code executions and a Server Actions denial of service). pnpm audit --prod. Withpayload3.90.x add the recommended overrides to the project'spnpm.overrides:"dompurify@<3.4.17": "^3.4.17","undici@>=7 <7.30.1": "^7.30.1", thenpnpm installand audit again (AGENT.md §4 item 12).- Postgres/SQLite:
pnpm payload migrate:create→migratewhen turning oncookieScanner(thecookie-reviewcollection),cookieScanner.crawl(thecookie-crawlglobal) orlightbox: true(Form messages → Image viewer). For the crawl setIPAL_COOKIE_SCAN_URLandIPAL_COOKIE_SCAN_TOKENand add the site to the service'sIPAL_CRAWLER_SITES. Without these options there is no schema change. MongoDB: nothing. - Admin languages: the admin now offers English and Polish when the project sets no
i18n.supportedLanguages. To keep English only:i18n: { supportedLanguages: { en } }in the Payload config. - Frontend texts: default validator messages are now full sentences ("Fill in this field." instead of
"required"), and
pllocales get Polish fallback texts where the panel fields are empty. Tests or code that compare these strings need updating; pass your own message to a rule to keep it. - Sidebar moves: the
rolesfield (users) and Cookie banner → Consent version now sit in the admin sidebar. Data is unchanged; update screenshots and editor instructions.
1.13.0
Security and performance fixes from an audit, SEO/GEO and Search Console features, a seed helper, and English docs. Every new default can be turned off or overridden — AGENT.md §7.1 lists each one with its switch.
Security and access
- Staff features follow roles through one rule,
userMeetsRole(req, minimum)(exported). Withaccess(arolesfield), the role decides. Withoutaccess, every logged-in account passes — see "What projects must update". Used by Site Integrations, the settings globals, the test e-mail endpoint, stats, consent records, forms and form submissions. - Plugin globals: Site Settings, Cookie Settings and Notifications are written by editor+ only, Site
Integrations by admins only. Before, any logged-in account (a plain
user) could rewrite the brand, homepage or construction mode. Override:ipalKit({ globalOverrides: { <slug>: { access, admin, hooks } } }), where an object merges key by key and a function(global) => globaltakes over (applyGlobalOverrides). - Forms: forms are created, edited and deleted by editor+, and the Emails tab (recipients, BCC) is readable by
editor+ only, so a plain
usercan no longer BCC every submission to itself. Override:forms.formOverrides.access/.fields(the protected fields reach yourfieldsfunction, so you can change the rule). - Injected
userscollection (withaccess): create, delete and unlock are admin-only; read and update are admin or self. Override:access.authAccess(your keys win). Your own auth collection still wins whole. - First account = admin: the account made on Payload's "create first user" screen becomes admin; an open
sign-up on an empty collection still gets
defaultRole. Turn off:access.firstUserAdmin: false. - 2FA targets
admin.user. AtwoFactor.collectionSlugthat is not an auth collection, or differs fromadmin.user, stops startup with a clear error. Override:twoFactor.allowCollectionMismatch: true. - Rate limit: requests without a client IP share one
unknown-ipbucket at 20× the limit (before: no limit).setUnknownIpFactor(n),UNKNOWN_IP_FACTOR;setUnknownIpFactor(0)only with a limiter in front. - Turnstile hostname check (opt-in):
createSubmitAction({ turnstileHostnames }),verifyTurnstile({ hostnames }). RenderRichTextneutralises unsafe link URLs (javascript:and similar →#). Off:safeLinks={false}(fully trusted content only).- Consent Mode
'basic'(opt-in):<Analytics consentMode="basic">sends nothing to Google until analytics or marketing consent. Default stays'advanced'. The rule is exported:shouldLoadGoogle(root and/client). - Construction mode now also hides pages from the Markdown mirror, MCP and search
(
isPathVisible,isPathVisibleIn,pathOf, typePathVisibility). Opt out per route:markdown: { isPathVisible: () => true },mcp: { isPathVisible: () => true }. - Old-slug redirects skip never-published drafts (
resolveRedirect({ draft: true })to include them). MCP rejects non-object messages (-32600). The locale cookie honours consent saved under a bumped policy version (createProxy(config, { policyVersion })). enabled: falsekeeps the plugin's schema (collections, globals, fields) and drops only endpoints,onInitand admin components. Before, it dropped the collections and globals, so a Postgresmigrate:createwould drop their tables.- Collection overrides for consent records and stats:
consentLog.collectionOverrides,stats.collectionOverrides(object mergesaccess/admin/hooks, function takes over;applyCollectionOverride, typeCollectionOverride). The stats view and dashboard chart follow thestats-visitsread access, so an override narrows the panel too.
Performance
getSettings/getSiteShellread Site Settings atdepth: 1(was 2, which pulled every assigned page's blocks and media on every request). The archive page is re-fetched at page depth. Override:createContentHelpers({ settingsDepth: 2 }).- Stats and consent-log retention purges run off the request, as one
deleteMany. isPathVisiblereads construction mode once per list. Global saves can revalidate the layout:ipalKit({ revalidatePath })(opt-in),buildGlobalRevalidateHookfor your own globals; skip once withcontext: { disableRevalidate: true }.- Hooks run Local API calls with
req(same transaction); cross-locale sync restoresreq.locale. - Server entries no longer load
'use client'modules.
SEO, GEO and Search Console
- Site Settings → Search & AI tab: search-engine verification codes (Google, Bing, Yandex →
<meta>viageneratePageMetadata), AI crawler policy and rules (→ robots.txt viagetRobots), localizedllmsIntro(→ top of/llms.txt). Empty fields change nothing. Off: top-levelsearchSettings: false(works withoutseo;seo.searchSettingsstill works, the top-level option wins). Your own fields:searchSettings: (fields) => fields. Building blocks:verificationFrom,robotsOptionsFrom,AI_ASSISTANT_BOTS,AI_TRAINING_BOTS. getRobotsincreateContentHelpers:app/robots.ts→export { getRobots as default } from '@/lib/content'.- Sitemap index above 10 000 URLs (
/sitemap.xml?part=N), CDN cache headers and an in-memory memo, documents read in batches of 500.sitemapOptions: { maxUrls, cacheControl, memoSeconds },sitemapEntries,createSitemapRouteHandler,buildSitemapIndexXml. - Sitemap errors are errors: at runtime
sitemapRouteanswers 503 withRetry-Afterandsitemap()throws (before: an empty 200 /[], which told Google the site had no pages). The build phase still falls back. - Construction mode filters the sitemap and llms.txt. Off:
underConstructionSeo: false. - Unknown-route metadata is
noindex.collectSiteIndexno longer caps at 1000 entries (MCP keepslimit: 1000). seo.uploadsCollection(default'media') — the upload collectionmeta.imagerelates to.- DNS verification is the default path for Search Console;
ipal-seo-checkreports a missing verification tag as INFO only, and follows the sitemap index.
Seeding — @intecion/ipal-kit/seed (new entry)
createSeeder(payload, options)→upsertBySlug,upsertBy,fillGlobal,summary(). Dry run, update vs skip of entries edited in the panel, production guard (refuses non-local databases andNODE_ENV=productionunless allowed), seed context that skips revalidation and IndexNow. Reads the same env vars as the old templates (SEED_DRY_RUN/--dry-run,SEED_UPDATE,SEED_FORCE,IPAL_SEED_ALLOW_PROD_UPDATE,SEED_LOCAL_HOSTS,SEED_DB_URL_ENV,SEED_UNTOUCHED_SECONDS,SEED_HASH_FIELD).guard: falseturns the guard off.- Building blocks:
isLocalDatabase,writeLocales,seedHash,projectOnto,editedSinceSeed. - The
ipal-siteandipal-formseed templates are now thin scripts over the helper. - IndexNow skips writes with
context.ipalSkipIndexNow.
Documentation and agent guide
- All docs, the agent guide (
docs/agent/AGENT.md) and theipal-*skills are in English. - The agent guide covers every export, option, env var, route, middleware, layout component, import-map entry and hook a project wires, with steps to verify. New: §7.1 "Newer defaults — turn off / override", a seeding guide, Coolify deployment (env, migrations, seeding, backups), a DNS records checklist.
CLAUDE.mdstates the plugin's two rules: the plugin helps projects and never limits them; an agent that adds the plugin gets the complete guide.
Small and gap fixes
ipalEnvRules({ storage: true }):R2_PUBLIC_URLis optional;storage: { requirePublicUrl: true }requires it.forms.consentFieldNamenow works:submitFormreads it from theipalKitoptions.- Top-level
searchSettingsoption, publicshouldLoadGoogle, collection overrides forconsent-recordsandstats-visits(see above).
What projects must update
- Behaviour change — projects without
access: every logged-in account can now use the plugin's admin and editor features: Site Integrations, the settings globals, the test e-mail endpoint, stats, consent records, forms and form submissions. Before, nobody could through the API. If the project lets untrusted people log in (open sign-up, customer accounts), addaccess(roles), or narrow each feature withglobalOverrides,forms.formOverrides/forms.formSubmissionOverrides,consentLog.collectionOverrides,stats.collectionOverrides. - Projects with
access: accounts with the plainuserrole can no longer edit Site Settings, Cookie Settings, Notifications or forms, or create and delete users. Give staff accountseditororadmin, or loosen withglobalOverrides,forms.formOverrides.access,access.authAccess. - Postgres/SQLite:
payload migrate:create→migrate(Site Settings → Search & AI:search_verification_*,ai_crawlers_policy, theai_crawlers_rulestable, localizedllms_intro). Withenabled: false, the migration now keeps (or restores) the plugin's tables. MongoDB: no changes. pnpm payload generate:importmap,pnpm ipal:skills.- Check:
- code that reads a relation of a relation from
getSettings/getSiteShell→settingsDepth: 2; - a hand-written
sitemap()caller that relied on[]on errors (it throws now); twoFactor.collectionSlugother thanadmin.user(stops startup →allowCollectionMismatch: true);- rate limits behind a proxy that hides the client IP (
setUnknownIpFactor); - rich text with deliberately unusual link schemes (
safeLinks).
- code that reads a relation of a relation from
- Review the new options and defaults:
consentMode('basic'for "zero tags before consent"),revalidatePath,turnstileHostnames, the Search & AI tab (fill in verification codes or keep DNS verification),app/robots.ts→getRobots,createSearchRoute({ isPathVisible }),access.firstUserAdmin. - Remove workarounds: a plugin after
ipalKitthat adds hooks or access to the plugin globals →globalOverrides/revalidatePath; a hand-written global revalidation hook →buildGlobalRevalidateHook; your own seed guard and upsert code →@intecion/ipal-kit/seed.
1.12.3
New
- Large cookie settings window with details —
<CookieBanner settings="detailed" />. Each category is a card with a switch (on/off), a description and an expandable list of the cookies it covers (name, provider, purpose, duration) — from Cookie Settings → Cookies. The developer picks the mode:'inline'(default, unchanged),'modal','detailed'. New group in the Cookie Settings → Detail labels global (list labels, per language; empty → English).ConsentTextshas optionalcookiesanddetails(filled bygetConsentTexts). NewclassNamesslots:categoryCard,cookies,cookiesToggle,cookieList,cookie,cookieName,cookieMeta. consent.md → "Large window with details".
Documentation
- consent.md: comparison of the three
settingsmodes, which one to pick (brief says nothing →detailedwhen the Cookies list is filled in), new fields in the table of panel texts, slots anddata-ipalhooks. - AGENT.md (§0b item 12, §7, compliance), PROGRAMISTA §2.8 / §2.11 / §6 item 46, skills
ipal-setup,ipal-site,ipal-upgrade,ipal-locale-add(Detail labels and Cookies in every language),ipal-consent-check(the import also feeds thedetailedwindow — check it after the import).
Requires project changes
- Postgres/SQLite: new fields in the Cookie Settings global →
payload migrate:create. MongoDB: no changes. - Optional:
<CookieBanner settings="detailed" />, fill in Cookie Settings → Cookies (scan:ipal-consent-check→ cookie-scan) and Detail labels in every language.
1.12.2
Fixes
- Empty admin panel in production because of the import map from dev.
buildR2StoragewithoutR2_*returned a no-op, sopnpm dev/generate:importmapwithout R2 wroteimportMap.jswithoutS3ClientUploadHandler; the project committed it, and the production panel (with R2) rendered a blank page with no console error. Now the adapter is always registered (without R2 asenabled: false, media still on disk) — the import map is identical in every environment.ipal-audit: ERROR "import map without the R2 upload handler". - Cookie Settings — the "Zapisz" text is no longer lost after 1.11.1 (MongoDB). The first save of the global
removed the old
buttons.saveand the button fell back to "Save preferences" in all languages. On startup the plugin copiesbuttons.save→buttons.savePreferences(all languages) when the new field is missing.getConsentTextsread the old field as text, but Mongo returns it as a{ pl, en }map (the field is not in the schema) — the banner could show "[object Object]". ipal-audit: a multi-line"exclude"in tsconfig is no longer reported;a11y,i18n,l10nare not "numbered fields"; it catches links`${prefix}/${slug}`and page paths hard-coded in code (`${prefix}/kontakt`); message "panel text in Polish — admin labels/descriptions are English" (was the misleading "panel is English").
New
- Read-only media:
R2_PUBLIC_URLalone (absolute, outside production) → file URLs from the media domain, upload and delete blocked (403). Local dev on the production database without bucket keys.ipalEnvRulesin dev then does not require the rest ofR2_*. storage.md → "Behavior". context: { ipalSkipAutoFill: true }(SKIP_AUTO_FILL) — save without auto-filling meta andaiSummary. For data migrations and scripts that must save only what they set. seo.md.createPageRouteredirects the home page from its slug (/pl/home→ 308/pl). Turn off:homeAlias: false. Remove your own redirect frompage.tsx. pages.md.
Documentation
- i18n.md:
fallback: truepersists default-language text into empty fields of other languages on save — the consequences and how to write scripts. - PROGRAMISTA §1:
pnpm up --latest @intecion/ipal-kit(plainpnpm upwill not go past the exact version); 401 on the public registry = old token in~/.npmrc.
Requires project changes
pnpm up --latest @intecion/ipal-kit, thenpnpm payload generate:importmapand check thatimportMap.jshas@payloadcms/storage-s3/client#S3ClientUploadHandler(project withbuildR2Storage). Commit it.- Your own redirect of the home page from its slug (e.g. in
renderwithbuildLocalizedPath) — remove it,createPageRoutedoes this now. - Optional: local dev on the production database → only
R2_PUBLIC_URLin.envinstead of R2 keys.
1.12.1
New
-
A description for every page from its content — auto-fill fills an empty
meta.descriptionfrom the page's blocks (layout→ paragraphs without headings, whole sentences up to ~155 characters) whenautoFill.descriptionyields nothing. Before, a page without a description gotsiteDescription— the same on every page, so Google ignored it and quoted the footer.autoFill: { content: 'blocks' | false, descriptionLength }. A description typed by hand is never overwritten. -
<NoSnippet>(/rsc,/client) —data-nosnippetondiv/section/span. For the footer, contact bar, repeated CTA: Google stops showing the address and opening hours from the footer as the description of subpages.CookieBannerandLanguageSwitcherhavedata-nosnippetthemselves. Details: seo.md → "Descriptions in Google". -
Hint under the description in the SEO tab (
MetaDescriptionCheck) — description empty, identical tositeDescription, or identical to another document in the collection. Does not block saving.seo.descriptionCheck: { settingsSlug, siteDescriptionField }orfalse. -
ipal-seo-check — warnings: duplicated meta description, footer without
data-nosnippet. -
Statistics in the panel —
ipalKit({ stats: true })+<SiteProviders stats={{ locale }}>(or<PageStats>from/client). The/admin/statsview: daily visits over 30 days, pages, entries, sources, devices; chart on the dashboard. No cookies and no IP stored — no consent required (hash with a salt rotated daily). Visitors with analytics consent (the same as GA4) get theipal_vidcookie and a multi-day history; the server checks the consent cookie itself. Collectionstats-visits, 90-day retention. Details + privacy policy text: stats.md. -
@payloadcms/nextin peerDependencies (the/admin/statsview uses itsDefaultTemplate; every Payload+Next project already has it).
Fixes
- Auto-fill on a partial save —
payload.update/ REST PATCH without themetagroup no longer treats the saved title as empty (it reads it from the document).
Requires project changes
pnpm payload generate:importmap— new panel component@intecion/ipal-kit/admin#MetaDescriptionCheck.- Footer: content in
<NoSnippet>inside<footer>(not on<footer>— Google ignores the attribute there):import { NoSnippet } from '@intecion/ipal-kit/rsc'. The same for a repeated contact bar / CTA. - Optional: existing pages without a description get one on their next save. To get it now — save them in the panel.
Project without a
layoutfield (blocks under another name):autoFill: { content: '<field name>' }. - Check:
ipal-seo-checkwith no warnings about the footer and duplicated descriptions; in Search Console → URL Inspection → request re-indexing of the main pages. - Optional, statistics:
stats: trueinipalKit,stats={{ locale }}in<SiteProviders>,pnpm payload generate:importmap, migration (Postgres). In the panel, addipal_vid(analytics) to Cookie Settings → Cookies and update the privacy policy — ready-made text in stats.md.
1.12.0
New
- Lazy 404 page —
createNotFoundPage(content, { load })+renderNotFoundView(content, { blocks, blockProps, fallback }, locale)(/rsc) in a project server action;<NotFoundLoader>(/client). Next puts the layout'snot-foundtree into the RSC data of EVERY page; the{ blocks }variant rendered the 404 page from the panel there in every language (404 = home page, 2 languages: home page HTML 195 → 146 KB gzip, RSC data −42%). Now the data holds only the loader; the content arrives when the 404 is shown.renderNotFoundViewaccepts only configured languages. Details: pages.md → "404 page".
Requires project changes
Nothing mandatory — createNotFoundPage(content, { blocks }) works as before. Recommended (every project with a 404
from the panel, especially 404 = home page or several languages):
src/app/(frontend)/[locale]/notFoundView.ts(.tsxwhenfallbackis JSX):'use server'+export async function loadNotFoundView(locale: string) { return renderNotFoundView(content, { blocks: blockRegistry, blockProps, fallback }, locale) }— move the options over fromnot-found.tsx.not-found.tsx:export default createNotFoundPage(content, { load: loadNotFoundView }).- Check: the HTML of any page has no 404 page content (
self.__next_f), and an unknown address (e.g./xx/test) still gives a 404 with the content from the panel.
1.11.1
New
- Light / dark theme —
<ThemeScript>(/rsc, or<SiteProviders theme>) setsdata-themeandcolor-schemeon<html>before paint; unstyled<ThemeSwitcher>(role="switch"),useTheme(),applyTheme(/client). The choice is kept inlocalStorage(ipal-theme), synced across tabs. Site Settings → Theme:defaultTheme: 'system',themeToggleLabel;getSiteShell(locale).theme. Details: theme.md. - Turnstile in the page theme —
turnstileThemedefaults to'page'(no page theme ='auto'as before). - Table of contents —
extractHeadings,RenderRichText headingIds(the same ids),<TableOfContents>(/client,aria-current="location"),buildTableOfContentsField(). Details: richtext.md. - Missing page → home page —
createPageRoute(…, { redirect, onMissing: 'redirectHome' })or your own function. - Forms — "Placeholder" field (localized) in the text, email, textarea, number blocks; new Time type
(
HH:MM, validated on the server). buildLinkField({ interfaceName }).
Fixes
buildRevalidateHookoutside Next — withoutNEXT_RUNTIME(payload run, seed, migrations) or withcontext.disableRevalidatethe hook does nothing. Before:Invariant: static generation store missing.BuilderFormno longer scrolls the page to the form — focus only on step change. Before, React re-ran the effect (Next restoring a visited page, StrictMode) and focus jumped to the first field.- Placeholder color under transparent images —
mediaImagePropsgivesbackgroundColoronly for JPEG (placeholderColor), the hook does not compute a color for images with alpha. No more black rectangles under logos. - The link type does not depend on field order — each shape has its own name:
CmsLink,CmsLinkPlain(appearances: false),CmsLinkNoLabel,CmsLinkPlainNoLabel. All of them fitCmsLink. - Mongoose warning on every start — Cookie Settings field
buttons.save→buttons.savePreferences(saveis a reserved name). Frontend API unchanged (texts.buttons.save). - ipal-audit — object keys between JSX elements (
narrow: <A />, wide: <B />) are no longer reported as hard-coded text; the "page routes rendered dynamically" rule skips the/md/[locale]route (route handlers areforce-dynamicby design).
Requires project changes
- Migration (Postgres/SQLite):
pnpm payload migrate:create— new fields (placeholder, time,themeToggleLabel, thesystemvalue), renamebuttons_save→buttons_save_preferences: when drizzle asks about the column, choose rename; otherwise the button text falls back to the default "Save preferences" and has to be typed in the panel. MongoDB: no migration; the plugin tries to read the old value, but check the "Zapisz" button in the banner and if needed type the text in Cookie Settings → Buttons → Save. pnpm payload generate:types— links without appearance / without a label have new type names; code usingCmsLinkkeeps working.- Remove the workarounds from PROGRAMISTA §6 items 38–45 (
WORKAROUND ipal-kitcomments in the project).pnpm ipal:skills(new audit).
1.11.0
New
- Form fields filled by the page —
valuesinRenderForm,BuilderFormanduseBuilderForm({ subject: 'Pierścionek · białe złoto · 0,70 ct' }): a read-only field (classNames.fixed), in SSR, sent and validated like any other.prepareBuilderForm(/rsc) — the server half ofRenderFormfor a client component with changing values (a configurator);publicFormis exported. No morepublicFormcopies in projects. - Links to collection entries —
buildLinkField({ relationTo: ['pages', 'categories', 'products'] });resolveLinkHref/resolveLink/resolveNavbuild/{locale}/{archive}/{entry},getLinkOptionsprovides the archives from Site Settings. - JSON-LD for entries that are not articles —
pageJsonLd.entries(a node per collection) andbuildProductJsonLd(Offeronly with a real price). isFirstfor blocks fromcreatePageRoute/createNotFoundPage— the first section carries the onlyh1.
Fixes
ipalEnvRules({ storage: true }):R2_*required in production; optional in dev (media on disk), but all or none. Before, dev without R2 did not start, so projects madestorageconditional themselves.buildImagesConfig(): outside production it allows media served by the app (/api/media/file/**onNEXT_PUBLIC_SERVER_URL) and localhost (dangerouslyAllowLocalIP) — without R2, images in dev no longer give 500.
Requires project changes
- Remove the workarounds from PROGRAMISTA §6 items 34–37 (
publicFormcopies, manual remotePatterns for localhost, conditionalstorage, your own JSON-LD graph for entries). - Changing a link's
relationToto an array changes the data shape of existing links — migration (ipal-migrate-fields).
1.10.1
Fixes
- The fallback meta description works.
createPageMetadata(and socreatePageRoute/generatePageMetadata) read Site Settings →siteDescriptionbut did not pass it tobuildMetadata— a page without its ownmeta.descriptionhad no<meta name="description">and noog:description(Lighthouse SEO: "Document does not have a meta description"). Regression test intest/seo.test.ts.
Documentation
- storage.md → "Media caching": a Cloudflare Cache Rules rule for the media domain (1 year). Files in R2
have no
Cache-Control(the S3 adapter does not let you set it), and Cloudflare defaults to 4 h.
Requires project changes
- A meta description workaround in the project (filling
descriptionyourself ingenerateMetadata) can be removed —export const generateMetadata = route.generateMetadatais enough. - Cloudflare: add a Cache Rules rule for the media domain (storage.md).
1.10.0
New
- Cookie banner tailored to the project —
CookieBanner:order(button order),settings="modal"(settings in a centered window: ✕, Escape, click on the backdrop),controls="switch"(role="switch"switches),settingsActions(e.g. Save / Necessary only / Accept),icon={false};classNameshas a slot for every element (text, each button, modal, category card, switch, badge). Cookie Settings:eyebrow,title,settingsDescription,alwaysActiveLabel,buttons.close. Details: consent.md → "Layout".
Fixes
/clientno longer pulls the admin panel into the page.MaskedField,TestEmailButton,IntegrationStatusBanner(they import@payloadcms/ui) are now in/admin;sideEffectsin package.json. Every page importing anything from/client(CookieBanner, LanguageSwitcher…) loaded ~235 KB gz of panel code. A test guards against regression.
Requires project changes
pnpm payload generate:importmap(panel component paths:/client#…→/admin#…),rm -rf .next.- Import
MaskedField/TestEmailButton/IntegrationStatusBannerfrom@intecion/ipal-kit/client→@intecion/ipal-kit/admin. - New Cookie Settings fields: Postgres/SQLite →
pnpm payload migrate:create; MongoDB: no changes.
1.9.9
New
- Nice emails from forms (
forms: { emailLayout: true }):{{*:table}}→ a readable summary (questions, answer labels, grouped by step, no empty fields) + an email template (logo, accent color, footer from Site Settings → Emails; tables + inline CSS). Hookforms.beforeEmail. Details: forms.md → "Nice emails".
Fixes
submitFormsaves the submission in the page language — emails (subject, body, confirmation) always went out in the default language, also for visitors of the English version.
Requires project changes
emailLayout: trueadds fields to Site Settings → migration (pnpm payload migrate:create, with the full set ofR2_*). SetserverURLinbuildConfig(absolute logo URL and the link in the email).
1.9.8
New
- Under construction (developer tool): Site Settings → Under construction — a switch, a
"Pages still available" list and the popup texts. When on, only the home page and the selected pages open
(in every language); other addresses → home page with a popup, clicking a link to a blocked page →
popup instead of navigation.
createPageRoute(…, { redirect }),getConstructionMode(locale),<ConstructionNotice>(/client). Details: construction.md.
Requires project changes
- New fields in Site Settings → migration (
pnpm payload migrate:create, with the full set ofR2_*if the project uses them). WithoutredirectincreatePageRouteand without<ConstructionNotice>the mode does not work (nothing changes).
1.9.7
New
- Conditional fields and steps in forms from the panel ("Show only when",
showWhen): every field, Checkbox group, message and Step can show only for a chosen answer of another field (field+ comma-separatedvalues). A hidden Step drops out of the form together with its fields, the following steps are renumbered. The browser and the server apply the same rule (visibleFields): a hidden field is neither required nor saved; GDPR consent (consent) is always enforced. Details: forms.md → "Conditional fields and steps".
Requires project changes
- A new group in the form blocks = new database columns. After the upgrade:
pnpm payload migrate:create(with the full set ofR2_*if the project uses them) andpnpm payload migrate. Existing forms work unchanged (empty "Show only when" = field always visible).
1.9.6
Fixes
- Markdown route: a safe type when reading language codes from the config (no change in behavior).
Roll-up release — contains everything from 1.9.2–1.9.5 (multi-step forms,
SiteProviders,createPageRoute, one-line routes, custom link styles,getSystemLinks, Markdown on a single-language site, new audit rules). When upgrading from an older version, go through the "Requires project changes" sections from your version upwards.
1.9.5
Fixes
- Markdown (GEO) on a single-language site:
/md/kontaktwent to themd/[locale]/[[...slug]]route as the language "kontakt" → 404, and/md(home page) had no route.markdownRoute/createMarkdownRoutenow works without thelocaleparameter (app/md/[[...slug]]/route.ts, language from config), and a route with[locale]on a single-language site reads that segment as the slug.
Documentation
- i18n.md: a single-language site on
SiteProviders,createPageRoute,createNotFoundPageandapp/md/[[...slug]]. Removed the wrong advice "set up[locale]in advance with one language" (links would be without/pl, pages with/pl); described moving to several languages (the proxy redirects old addresses).
Requires project changes
- Single-language site with
app/md/[locale]/[[...slug]]/route.ts→ move the file toapp/md/[[...slug]]/route.ts(no content changes), so that/mdworks for the home page.
1.9.4
New
- Link styles from the project:
buildLinkField/buildLinksField({ appearances })accept any names and panel labels —['primary', { label: 'Highlighted', value: 'highlight' }]. Before, only primary / secondary / link, which pushed projects to conditions on content (label === 'Tesla'). - Legal links:
getSystemLinks(locale, roles?)inlib/content(andresolveSystemLinks) — href and label (page title in the given language) from Site Settings → System Pages.
Audit
- ERROR: logic based on content (
label?.toLowerCase() === '…'), Polish text in frontend code literals, link/button fields in globals (prefooterButtonUrl,ctaLabel…); WARNING: a relationship topagesin a global instead ofbuildLinkField.
Requires project changes
- Header/Footer globals with
page+url+labelfields →buildLinkField(the data must be moved — the ipal-migrate-fields skill), thenresolveNav/resolveLink; legal links →getSystemLinks.
1.9.3
Audit
ipal-auditcatches hand-written link building under any name (resolveHref,getHref…): a home page slug hard-coded in code (=== 'home','strona-glowna') and a URL glued from the slug (`/${slug}`,'/' + slug) — ERROR pointing toresolveLink/resolveNav. Such a copy loses the language prefix, the home page from Site Settings, thejavascript:filter and dead links.- Fix: a comment that starts a line is no longer reported by rules that ignore comments (fewer false alarms).
- AGENT.md (forbidden substitutes) and links.md: how to remap a
page+urlfield toresolveLink.
Requires project changes
- New audit ERRORs point to your own link functions — replace them with
resolveLink(link, locale)fromlib/content(PROGRAMISTA §6 item 33).
1.9.2
Import instead of code: what every project wrote the same way is in the plugin — logic and skeleton. The look stays in the project (classes, your own markup on hooks). Everything is optional: existing project code works unchanged.
Requires project changes
- Security — your own
FormRenderer: the template fromipal-formpassed the whole form document to the client component. The Local API reads withoverrideAccess, so the Emails tab (company addresses, templates) ended up in the HTML/RSC. Replace the block with<RenderForm>(below) or pass to the client only the fields, labels and the confirmation. PROGRAMISTA §6 item 28. - Postgres:
pnpm payload migrate:create— new form field types (Step, Checkbox group, Radio, Date) and thenext/back/stepOftexts in Notifications. MongoDB/SQLite (push): no changes.
New
- Forms from the panel in one line:
<RenderForm form action locale texts classNames>(/rsc) — rich text, action binding, redirect, only the public part of the form in the browser. Underneath:BuilderForm(/client, clean accessible HTML without styles,classNames,renderField) anduseBuilderForm(all the logic for your own markup). Templates:ipal-form/resources/FormBlock.tsx,formClasses.ts,CustomForm.example.tsx(the oldFormRenderer.tsxremoved). - Multi-step forms and choice lists: in the panel, the Step blocks (split into screens, title and
description per language), Checkbox group (multiple choice, min/max), Radio, Date — on by default
(
forms.fields.<type>: falseturns one off). The server checks values from the panel, the number of choices and dates; choices are saved readably ("www, seo"). "Next" validates the current step, a server error returns to the step with the field, focus moves to the new step. Texts: Notifications →next,back,stepOf. - Layout:
getSiteShell(locale)(consent, analytics, Turnstile key, form texts, JSON-LD WebSite + Organization, Site Settings) +<SiteProviders shell>(/rsc) — providers, banner, cookie button, Analytics, JSON-LD and preconnect in the right order; every part can be replaced or turned off.siteJsonLdincreateContentHelpersfor LocalBusiness. - Page and 404:
createPageRoute(content, { blocks, notFound, permanentRedirect, blockProps, render })andcreateNotFoundPage(content, { blocks, fallback })(/rsc). - One-line routes:
createContentHelpersreturnsllmsRoute,llmsFullRoute,markdownRoute,mcpGET/mcpPOST,healthRoute,indexNowKeyRoute,manifest; the optionssummaryField,mcp,markdown,redirectCollectionsonce inlib/content.ts. - Links and menus:
resolveLink(href,internal,targetProps,appearance),resolveNav(any depth, dead links skipped),homeSlugFrom; inlib/content:resolveLink(link, locale),resolveNav(items, locale),getLinkOptions,getHomeSlug,resolvePageRedirect,getFormTexts. - Section fields:
buildSectionHeaderField,buildSectionSettingsField({ backgrounds, anchor, fields })— the same data shape as the oldsrc/fields/section*.ts(no migration). useOptionalTurnstile()— without a provider returnsenabled: falseinstead of throwing.
Documentation and audit
- AGENT.md §7 is a full "need → import" catalog; §0b, §3, §6 and PROGRAMISTA §2.7–2.8, §6 (items 28–33) describe the new way; skills ipal-form, ipal-nav, ipal-block, ipal-setup, ipal-upgrade updated.
ipal-auditaccepts re-export routes andSiteProviders; new rules: a copy of the form engine,src/fields/section*.ts/lib/navigation.ts(WARNING), importing the root //rsc//serverin a client component (ERROR).docsConsistencytest: every import in the docs exists in the code, every public export is documented.- The sandbox (
dev/) has a frontend built on these imports (multi-step form at/pl/kontakt).
1.9.1
Requires project changes
- Security — drafts: never-published pages and entries were available at their address
(and in Markdown, MCP, archive lists). Now they are not. Editor preview:
draft: trueinresolveRoute/getArchiveEntriesindraftMode(). - Form submissions are readable only by the
editor/adminroles (before: any panel account); recipient addresses (Emails tab) disappeared from the publicGET /api/forms. - Forms: the
emailfield accepts exactly one address, select only options from the panel, types checked on the server (kind: 'invalid_format'). A form sending data in a different shape will be rejected. - Withdrawing consent deletes tool cookies (
_ga*,_fbp,_gcl_*, Clarity, LinkedIn…), also on the parent domain. - New fields in globals (Postgres:
pnpm payload migrate:create): Site Settings → sameAs; Cookie Settings → Policy version, Cookies; Site Integrations → IndexNow. - Exports:
@intecion/ipal-kit/envand/fluid.cssfinally work (they were in the docs, not in the package). users: the plugin adds an auth collection when the project has none — remove the workarounds frompayload.config.- The AGENT.md §0b set extended to 18 items (
ipal-auditreports gaps).
New
- SEO/GEO:
getPageJsonLd,buildNavigationJsonLd,formatOpeningHours+typeinbuildLocalBusinessJsonLd,sameAsUrls, IndexNow (indexNow: true,createIndexNowKeyRoute),collectSiteIndex(blog and all languages in llms.txt and MCP), URL + date in the Markdown frontmatter, X/Twitter card,og:type=article, images in the sitemap, the default share image works. - Ready-made routes and actions:
createMarkdownRoute,createSubmitAction,createProxy({ markdown: true }). - Consent: policy version from the panel,
equalChoice, consent log (consentLog), cookie table (getCookieTable,<CookieTable>), thecookie-scanscanner + import into the panel. - noindex:
IPAL_NOINDEX=1for staging, Markdown/llms withX-Robots-Tag: noindexand canonical, noindex blocked on the home page and archives. - Media:
mediaImageProps,videoProps,MEDIA_SIZES, placeholders on upload,buildImagesConfig,<YouTubeEmbed>,buildUploadSecurityHeaders. - Scaling:
fluid-wide.css(up to 1920 px) and variables that depend on screen height. safeHref(CMS links withoutjavascript:), analytics ID validation, full Google Maps CSP preset.- Agent: AGENT.md §0c (content for Google and AI, when to use noindex), §6.0 (component rules), §6.11a/b
(scaling, Core Web Vitals), §8a (tests) + the
smoke.spec.tstemplate; form seed; new checks inipal-auditandipal-seo-check.
1.9.0
Requires project changes
- 2FA:
twoFactor.pluginis required. Removed the fallback dynamic import of@clocklimited/payload-2fa(it did not work in Next anyway, and produced a Turbopack warning).twoFactor: { issuer, plugin: payloadTotp }— withoutpluginstartup ends with a clear error.twoFactor: falseunchanged. - Turnstile required when configured. Both keys (panel or env) →
submitFormrejects a submission without a valid token (before, a missing token meant skipping verification — a bot could avoid it). No keys → no widget and no verification. One key → turned off + an alert on the dashboard. Layout:siteKeyfrom the newgetTurnstileConfig(payload)instead ofgetSiteIntegrations(…).turnstileSiteKey. Check that every form has the widget. - The
/api/ipal/test-emailendpoint only for theadminrole (other logged-in users → 403). rolesfield: only an admin assigns roles, also when creating an account. Open registration no longer letsroles: ['admin']through; the first user and the seed (overrideAccess) unchanged.- The AGENT.md §0b set is mandatory — SEO, JSON-LD, GEO (llms.txt,
llms-full.txt, Markdown, MCP), R2, Turnstile, builder forms, consent,
2FA, health, env.
ipal-auditreports gaps as[ERROR] missing: …,ipal-seo-checkchecks them on the running site. An exception only with the client's decision:ipal-audit-skip:inAGENTS.md.
New
createProxy(…, { markdown: true })— lets/md/…through (before, on a multilingual site the proxy redirected/md/pl/xto/pl/md/pl/x, so the Markdown route did not work) and rewrites requests withAccept: text/markdown.createContentHelpers({ markdownAlternate: true })—generatePageMetadataadds<link rel="alternate" type="text/markdown">.- MCP: the
get_site_infoandlist_pagestools; the server stays public (AI browses the site). New helperlistContent. getTurnstileConfig(payload)→{ enabled, siteKey }.clientIp(req | headers, { header, trustedProxies })—X-Forwarded-Forread from the right (the leftmost entry is set by the client), header pinned viaIPAL_IP_HEADER; a log warning in production when it is missing.ipalEnvRules({ ipHeader: true })requires it in production.setRateLimitStore({ hit })— a shared counter (e.g. Redis) for several instances.clientIpoption increateSearchRouteandcreateMcpRoute.
Fixes
- Accessibility: category checkboxes in the cookie banner have labels, buttons have
type, the address field in "Send test" has a label. - Localized collection labels no longer turn into "[object Object]" in the
Content tab (
injectSeoTabs). - Object values in a form submission are saved as JSON, not "[object Object]".
- JSDoc and docs: JSON-LD only through
<JsonLdGraph>(removed examples withdangerouslySetInnerHTML).
Plugin (for ipal-kit developers)
dist/out of git;prepublishOnly= clean + build + tests,preparebuilds on install from git. CI in.gitea/workflows/ci.yml.- 79 tests (vitest), including integration tests on a real Payload (in-memory SQLite).
pnpm typecheck,pnpm lint(0 errors),pnpm test:int.
1.8.14
Requires project changes
- 2FA: in Next you must inject
twoFactor.plugin(plugin: payloadTotp).serverExternalPackagesis not a workaround — the package imports its own.css, which Node cannot load. Remove the entry fromnext.configand the adapter with the cast.
Fixes
collectionin the 2FA type isCollectionSlug(before:string) —plugin: payloadTotppasses typecheck without a cast (TS2322).- The package publishes
bin—ipal-skillsworks.
1.8.13
New
- Email sending status in the panel:
mailAdapter()saves the result in Site Integrations; an error → an alert on the dashboard and a banner in the SMTP tab. The form keeps working (the submission is saved). After the upgrade:generate:importmap, Postgres:migrate:create. - Forms in the panel in the Forms group with labels (
forms.adminGroup); Notifications in the Settings group — no overrides in the project.
Requires project changes
POST /api/form-submissionsclosed to anonymous users (403). The frontend submits through a server action +submitForm(theipal-formskill). Deliberately public REST →formSubmissionOverrides.access.create.
1.8.12
New
- Turnstile: a failure on our side does not block forms.
checkTurnstile(/server) distinguishespass/reject(bad visitor token) /degraded(missing or bad secret, Cloudflare unreachable).degraded→ submission accepted, an alert on the dashboard (IntegrationAlerts) and a banner in Site Integrations → Turnstile. Strict:submitForm({ turnstileOnConfigError: 'reject' }). - Turnstile secret from the panel or the
TURNSTILE_SECRET_KEYenv; the rejection reason in the server log.remoteipis not sent by default (sendRemoteIp: true). - After the upgrade:
generate:importmap, Postgres:migrate:create(turnstileStatus).
1.8.11
New
- Per-IP request limit: search (
createSearchRoute, 120/min) and MCP (createMcpRoute, 60 messages/min, batch max 10) →429withRetry-After.rateLimit: { max, windowMs }orfalse(a limiter in front, e.g. Cloudflare WAF). - A shared limiter module (
shared/rateLimit) for forms, search and MCP.
1.8.10
Changes
- The styled sitemap heading is a fixed "XML Sitemap" (without the site name from Site
Settings); the
siteNameFieldoption removed. Your own title:sitemapStyle: { title }.
1.8.9
New
@intecion/ipal-kit/env— env validation without Payload and Node, safe ininstrumentation.ts(the package root broke Edge/Turbopack).fluid.css— a fluid typography and spacing scale 360→1280 px (variables only, opt-in, mapping in@theme).R2_PUBLIC_URLoutside production can be a path (/media) — prefixed withNEXT_PUBLIC_SERVER_URL; CSP does not add it toimg-src.ipal-audit:html-check.mjs— inline JSON-LD without escaping<= ERROR (XSS).
Fixes
createSitemapRouteHandlerrequiresreq— Next 16 checks the type of the route handler's first argument (Request | undefinedbroke the build).
1.8.8
- Restored the optional
reqin the sitemap handler (reverted in 1.8.9).
1.8.7
- Type fixes for
routeHandlers(sitemap handler).
1.8.6
Fixes
buildLinkFieldimportedsrc/…instead of a relative path — an error in the project.
1.8.5
New
sitemapRoutefromcreateContentHelpers: XML for crawlers, and in the browser a look served by the plugin (/sitemap.xml?style, CSS on XML, not XSLT).sitemapStyle: { accent, credit, title } | false.
Requires project changes
- One sitemap:
app/sitemap.xml/route.ts(export { sitemapRoute as GET }); removeapp/sitemap.tsandpublic/sitemap.css(ipal-auditreports them).
1.8.4
New
rowLabel()(/admin) — array rows in the panel show their content ("Kontakt") instead of "Item 01". After adding it:generate:importmap.buildOptimizeUploadHook— image optimization on upload.- Agent skills:
ipal-site(a site from brief to report), content seed,ipal-upgradeand others. - Cookie banner:
data-ipalattributes on buttons (tests), labels from the panel texts.
1.8.3
New
- Links module:
buildLinkField,buildLinksField,resolveLinkHref— a link to a page / URL / file, section buttons as an array (instead ofcta1,cta2). createContentHelpers:generatePageMetadata(shares the cache with the route) and therobotsoption; one Site Settings read per language per request.- Section and navigation code templates for the agent (
ipal-block,ipal-nav).
1.8.2
Fixes
- Missing
LocaleViewexport in/client.
1.8.1
Fixes
- Restored the 1.7.14 changes that the 1.8.0 release reverted by accident
(
LocaleView, 404 withoutheaders(), R2 fixes). Do not use 1.8.0.
1.8.0
- Faulty release: it reverted the 1.7.14 changes — upgrade to 1.8.1 or newer.
- Agent documentation moved to
docs/agent/AGENT.md+ skills.
1.7.14
Requires project changes
not-found.tsxwithoutheaders()— Next 16 turned an SSG/ISR page into a dynamic one. The server renders the 404 for every language,<LocaleView>picks the version from the URL (pages.md).
Fixes
buildR2Storage: R2 configuration fixes.- Skills for agents (
ipal-auditand others).
1.7.12
New
- The privacy policy link in the cookie banner is taken automatically from Site
Settings → System Pages; the link text in the panel (
privacyLinkLabel, per language). The oldprivacyPolicy.labelin code — deprecated. - New documentation structure:
docs/dev/PROGRAMISTA.md, AGENT.md,vibe.md.
1.7.10
Fixes
- White-label: branding reads Site Settings through the
payloadpassed by Payload (withoutimport('@payload-config'), which Next did not bundle); the name is localized according to the panel language.
1.7.9
New
<Analytics defer>— tags load on the first interaction or afterdeferTimeoutMs(default 3500 ms) fromload; Consent Mode unchanged.- Exported loaders
loadMetaPixel,loadClarity,loadLinkedIn,loadTikTok.
1.7.8
New
- Meta Pixel, Microsoft Clarity, LinkedIn Insight, TikTok Pixel in Site Integrations — loaded only after consent to the matching category.
- 404 page from the panel (Site Settings → System Pages,
resolveNotFoundPage).
Requires project changes
<Analytics>must be inside<ConsentProvider>.
1.7.7
Security
/api/healthand MCP do not return error details (database host, schema) — only a generic message; details in the server log.
1.7.6
Fixes
- noindex: the
buildNoindexFieldfield is top-level (doc.noindex) — the earlier write tometa.noindexwas stripped by plugin-seo, so noindex pages ended up in the sitemap. Sitemap, llms.txt, search and metadata readnoindex.
1.7.4
New
- 2FA:
twoFactor.plugin— injectingpayloadTotpinstead of a dynamic import. - White-label: the "Technology supported by Intecion.com" credit under the navigation and on the login screen; a larger logo on the login screen.