ipal-upgrade: "→ 1.14.3" section for the cookie approval flow. PROGRAMISTA §6: item 52. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
44598bbef2
commit
a9e1adc03b
@@ -135,6 +135,19 @@ the banner → `<CookieBanner settings="detailed">` and remove the copy. With `d
|
||||
3. **Enforce later** — after a few days of clean `[csp]` lines in the Coolify logs: `mode: 'enforce'` in both places,
|
||||
redeploy, check the pages again. Record the date in `AGENTS.md` → "Project decisions".
|
||||
|
||||
**→ 1.14.3 (PROGRAMISTA §6, item 52; cookie approval; cookie-scanner.md) — only with `cookieScanner`:**
|
||||
1. `pnpm payload generate:importmap` — `@intecion/ipal-kit/admin#CookieApprovalView` and
|
||||
`@intecion/ipal-kit/admin#CookieCrawlAlert` (the dashboard reminder, also without `crawl`); commit `importMap.js`.
|
||||
2. Postgres/SQLite: `pnpm payload migrate:create` → `migrate` (`cookie_review.change` enum + index,
|
||||
`cookie_review.needs_description`); check the migration only adds columns. MongoDB: nothing.
|
||||
3. Tell the editors about **Approve cookies** (`/admin/cookie-approval`, linked from the scan box on Privacy →
|
||||
Cookie review and from the dashboard): tick, **Approve and add**, then
|
||||
describe the ones marked **Needs description**. The client wants the old entry-by-entry review →
|
||||
`cookieScanner: { approval: false }`; unknown cookies in another category → `approval: { unknownCategory }`.
|
||||
4. Behaviour: hand-typed Cookie list rows are looked up only while they have no review entry.
|
||||
**Check:** run a scan → the cookies appear on `/admin/cookie-approval`; approve one → it is in Cookie banner →
|
||||
Cookies in every language; the dashboard shows the reminder while cookies wait. Without `cookieScanner`: nothing.
|
||||
|
||||
## 2. Inventory (no code changes)
|
||||
For **every** item in the PROGRAMISTA §6 table show evidence (grep / file) of whether
|
||||
it applies to the project. Run the **ipal-audit** skill (`--quick`) and attach the result.
|
||||
|
||||
@@ -649,6 +649,7 @@ Do one item at a time, build, check. Order by importance:
|
||||
| 49 | **1.14.0** — import map, Node, Next, audit, cookie list, admin languages | `pnpm payload generate:importmap` (`FaviconCheck`, `RowLabel`); Node 20.9+; `next@^16.4.3` + `sharp@^0.35.5` (Next ≤16.4.0 has two RCEs); `pnpm audit --prod` + `dompurify` / `undici` overrides on payload 3.90.x; hand-kept cookie list → `cookieScanner` (+ `crawl`, `IPAL_COOKIE_SCAN_URL` / `IPAL_COOKIE_SCAN_TOKEN`) + `migrate:create`; English-only admin → `i18n.supportedLanguages`; tests on validator strings → full sentences | CHANGELOG 1.14.0, cookie-scanner.md, i18n.md, AGENT.md §4 items 11–12 |
|
||||
| 50 | **1.14.1** — `X-Powered-By: Next.js, Payload` in responses, no CSP or a hand-written one | `withPayload(withSecurityConfig(nextConfig))`; `buildSecurityHeaders({ csp: { mode: 'report-only', reportUri: '/api/csp-report', …flags } })` + `buildAdminCspHeaders` on `/admin/:path*` + `export const POST = createCspReportRoute()`; after clean reports `mode: 'enforce'`; nonces (`createProxy({ csp })` + `<SiteProviders nonce>`) only for dynamic sites | security.md, CHANGELOG 1.14.1 |
|
||||
| 51 | **1.14.2** — a new admin stuck on `/admin/setup-totp?back=null` (the page keeps redirecting to itself), or an own `x-pathname` rule on `/admin` added as a workaround | `pnpm payload generate:importmap` (`TotpRedirectProvider`), commit `importMap.js`, redeploy; delete the workaround; own redirect rules → `twoFactor.provider` | security.md → "The redirect to the 2FA screens", CHANGELOG |
|
||||
| 52 | **1.14.3** — editors open every Cookie review entry one by one to accept it | with `cookieScanner`: `pnpm payload generate:importmap` (`CookieApprovalView`, `CookieCrawlAlert`), Postgres/SQLite `migrate:create` (`change`, `needs_description`); editors use Approve cookies (`/admin/cookie-approval`, linked from Privacy → Cookie review); old flow: `cookieScanner: { approval: false }` | cookie-scanner.md, CHANGELOG 1.14.3 |
|
||||
|
||||
After updating the package: `pnpm ipal:skills` (new skill versions), `pnpm payload generate:importmap`, `rm -rf .next`, restart dev, grep for the new symbol in
|
||||
`node_modules/@intecion/ipal-kit/dist`.
|
||||
|
||||
Reference in New Issue
Block a user