1.16.6 upgrade notes
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0356a329ca
commit
1270ebc3d1
@@ -380,16 +380,19 @@ gets `403` from the same addresses and from `POST /api/setup-totp`. The Coolify
|
||||
strips `back`, can keep them (`twoFactor.safeBack: false` turns the plugin's check off).
|
||||
2. `pnpm ipal:skills`.
|
||||
|
||||
**→ the release with `twoFactor.requireSetup` — 2FA setup required (CHANGELOG "Unreleased — 2FA setup required"; PROGRAMISTA §6, item 68; security.md "Setup required") — required
|
||||
with 2FA on:**
|
||||
**→ 1.16.6 — 2FA setup required (CHANGELOG 1.16.6; PROGRAMISTA §6, item 68; security.md "Setup required") — required with 2FA on:**
|
||||
**Not a routine patch, although the number is one.** From this version an account without 2FA can only set it up and is
|
||||
blocked after 72 hours; on Postgres / SQLite a missing migration locks everyone out of the panel. Do not upgrade a live
|
||||
site without steps 1–3 and a deploy day agreed with the owner. Steps 2, 3 and 5 go in ONE deploy.
|
||||
1. **Before upgrading a live site:** `pnpm exec ipal-doctor --url <site>` (doctor token) → accounts without 2FA.
|
||||
Tell the owner: from the upgrade on, such an account can only set 2FA up, and has 72 hours for it; after that
|
||||
an administrator must reopen setup on the account's page. Have them set it up now, or remove unused accounts.
|
||||
Make sure at least one administrator has 2FA set up — otherwise nobody can reopen setup from the panel.
|
||||
Make sure at least one administrator (better two) has 2FA set up — otherwise nobody can reopen setup from the panel.
|
||||
The 72 hours of existing accounts start at the first start after the deploy and are counted once (restarts
|
||||
and redeploys do not extend them): agree the deploy day with the owner.
|
||||
2. Update the package, `pnpm install`, `pnpm ipal:skills`, `pnpm payload generate:types`,
|
||||
**`pnpm payload generate:importmap`** (new: `TwoFactorStatusField`, `TwoFactorAlert`; commit `importMap.js`).
|
||||
**`pnpm payload generate:importmap`** (new: `TwoFactorStatusField`, `TwoFactorAlert`; commit `importMap.js`),
|
||||
then `pnpm exec ipal-doctor` before deploying.
|
||||
3. **Postgres/SQLite — required, same deploy, or nobody can log in:** `pnpm payload migrate:create` (adds the
|
||||
column `totp_setup_from` to the 2FA collection; needed whenever 2FA is on, also with `requireSetup: false`),
|
||||
commit, and have it applied **when the new container starts**: `prodMigrations` in the database adapter, or the
|
||||
@@ -406,8 +409,11 @@ with 2FA on:**
|
||||
Postgres/SQLite: if logins answer 500 after the deploy, the migration from step 3 did not run — check that it
|
||||
is committed and that the container runs migrations at start (deployment.md §4.3), then redeploy.
|
||||
6. `requireSetup.exempt` must be a plain function returning `true` / `false` (an `async` one stops the start).
|
||||
Scripts that used `POST /api/ipal/two-factor/reset` with an API key: refused by default now — pass
|
||||
`twoFactor.resetAccess` if that is wanted. A reset ends the account's sessions (it logs in again).
|
||||
A script on an API key is refused by `POST /api/ipal/two-factor/reset` by default — pass
|
||||
`twoFactor.resetAccess` if that is wanted. A reset ends the account's sessions (it logs in again); after a
|
||||
suspected compromise change the password too. An SVG favicon has no tab icon on the 2FA screens.
|
||||
7. Tell the owner what to tell the staff: a new account has 72 hours to set 2FA up, then an administrator must
|
||||
choose "Reopen setup". Not wanted: `twoFactor.requireSetup: false`, or `{ windowHours: false }`.
|
||||
**Every administrator is blocked** (all missed the 72 h): security.md "Every administrator is blocked" — a
|
||||
`pnpm payload run` script that sets `totpSetupFrom` to now for one administrator, or
|
||||
`requireSetup: { windowHours: false }` + redeploy, set 2FA up, put it back.
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ Write everything in this file in English.
|
||||
<!-- /starter:decisions -->
|
||||
|
||||
<!-- ipal-kit:start -->
|
||||
## ipal-kit 1.16.5 — agent guide
|
||||
## ipal-kit 1.16.6 — agent guide
|
||||
|
||||
<!-- Managed by `pnpm exec ipal-skills` — edits between the markers are overwritten. -->
|
||||
This project is built on `@intecion/ipal-kit` (a Payload CMS 3 plugin). Before you write code:
|
||||
|
||||
Reference in New Issue
Block a user