Commit Graph
716 Commits
Author SHA1 Message Date
Radosław SmolińskiandClaude Opus 5.5 713b28e79f Changelog: connect-link only from the site's own origin
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 23:00:59 +01:00
Radosław SmolińskiandClaude Opus 5.5 be30812423 connect-link ("Połącz z IWSN") is a panel action: only from the site's own origin (adminSameOrigin), like connect and disconnect
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 23:00:52 +01:00
Radosław SmolińskiandClaude Opus 5.5 9ca563e2af Merge claude/iwsn-connect: "Połącz z IWSN" — the IAPL side of IWSN contract 1.8.0 (connect)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 23:00:26 +01:00
Radosław SmolińskiandClaude Opus 5.5 68fb8fc8f3 Routes snapshot: the new admin route connect-link is judged; a test comment names the database variables in full
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 22:01:54 +01:00
Radosław SmolińskiandClaude Opus 5.5 25af43442e Real-service test: the connect flow against IWSN's code at IWDL de560ef (policy connect) — wait, link, confirm on the stand-in's page, active, send
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 21:44:19 +01:00
Radosław SmolińskiandClaude Opus 5.5 2c0262367d IWSN: "Połącz z IWSN" — a person of Intecion connects the site (contract 1.8.0)
- the state block on the e-mail tab (method IWSN): the button while the service offers the confirmation page
  (connectAvailable) or before the site has enrolled; a click asks the site's server for the link
  (POST /api/iapl/mail-relay/connect-link, admin only), which asks the service (POST /v1/connect, enrolling first),
  checks that it begins with the service's own {base}/connect?, and hands it over without storing or logging it;
  the browser opens it in a new tab with noopener noreferrer; the block asks /v1/status every 5 s for 10 min
- states: waiting for confirmation (button), waiting for approval (no page), connected, stopped; 503
  connect-unavailable and 429 said in the admin's language; a load of the panel asks the service while the site waits
- dashboard alert for a waiting site (live); doctor mail-relay-connect (error) — replaces the pending warning and the
  "not enrolled yet" note of mail-relay-state
- opt-out mail.relay.connectButton: false (no button, no route); building blocks requestRelayConnectLink,
  isRelayConnectUrl, RELAY_CONNECT_LINK_PATH; the fake service implements /v1/connect, connectAvailable and
  confirmConnect
- contract copy 1.8.0 (IWDL working tree, checksums match); docs, AGENT.md, setup / upgrade / debug skills, changelog

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 21:42:23 +01:00
Radosław SmolińskiandClaude Opus 5.5 347e3bafa1 Minimum safe Next.js 16.4.6 (owner's decision): doctor next-min, AGENT.md §4 item 11, doctor.md, setup and upgrade skills, changelog; O1 settled — Next 16.4.6's React copy carries the GHSA-xqc2-xf4c-x3h3 fix (checked in the code)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 20:57:47 +01:00
Radosław SmolińskiandClaude Opus 5.5 dcf820b365 F3 docs: HTML pages keep Next's own Vary and their ISR caching (measured on the built reference site, both bundlers); the private, no-store Markdown answer is what closes F3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 18:01:21 +01:00
Radosław SmolińskiandClaude Opus 5.5 631c583fa3 Lint: queryGuardHttp test config keys in order
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:47:56 +01:00
Radosław SmolińskiandClaude Opus 5.5 2af8ef180f List cap (F4): a server read with overrideAccess: true that passes a request on is not capped (the cookie scanner's scheduled crawl read its review list through the token request); reference types without the e2e fixtures; changelog heading covers all of 1.18.0
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:22:10 +01:00
Radosław SmolińskiandClaude Opus 5.5 e23edb2429 Merge claude/security-audit-1180-fixes: security audit fixes F1–F5, document locks for staff, strict access callbacks, the security suites and gate
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:20:40 +01:00
Radosław SmolińskiandClaude Opus 5.5 c6bfb621f5 Access callbacks allow only on a literal true (owner's decision for 1.18.0), strictAccessAnswers: false for the old reading; the new 1.18.0 security options checked strictly at start; docs, skills, changelog
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:07:04 +01:00
Radosław SmolińskiandClaude Opus 5.5 d90825a396 Security audit fixes: the document-locks door closed for customers, route reasons for the staff-only locks
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:03:56 +01:00
Radosław SmolińskiandClaude Opus 5.5 e5964d4e05 Security audit fixes: docs (security.md, content.md, i18n.md, AGENT.md, skills), changelog, static-rule judgments for the merged doctor and 2FA code, hook mark for the account-rule tests
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 17:02:20 +01:00
Radosław SmolińskiandClaude Opus 5.5 e9f9947eb7 Security audit fixes for 1.18.0: Markdown negotiation private + Vary: Accept (F3), public lists capped (F4), operator sort names refused (F5), CSP report log normalised and capped (F1), buildUrlField and the reference socials (F2), document locks for staff only
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 16:56:09 +01:00
Radosław SmolińskiandClaude Opus 5.5 d2f19095dc Security suites from the 2026-12 audit: static rules, attack probes, per-class tests, gate
- doctor: code-patterns (unescaped HTML/JSON-LD, eval, shell, NEXT_PUBLIC_ secrets,
  overrideAccess / Local API user, where from the request, redirects and fetches to a
  request address) and config-dangerous; live-probes runs the safe attack probes on --url
- ATTACK_PROBES / runAttackProbes / createProbeContext exported from /doctor; the reference
  site runs all of them in pnpm e2e:built (both bundlers) plus CSRF and cookie flags;
  project template iapl-audit/resources/attack-probes.spec.template.ts
- test/securityPatterns.test.ts gates every hit against test/security-patterns.allow.json;
  test/securityClasses.test.ts covers XSS, redirects, pollution, logs, DoS, cache poisoning
- pnpm security:gate (pnpm audit --prod, the two suites, optional offline ZAP) in prepublishOnly
- audit findings F1, F3, F4, F5 reproduced as expected-to-fail tests/probes; no fix built
- docs: security.md threat list + Security suites, doctor.md, AGENT.md, CHANGELOG, skills

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 16:46:42 +01:00
Radosław SmolińskiandClaude Opus 5.5 a416411f01 legacy:site accepts only the performance errors the unedited 1.16.7 site meets (perf-budgets); changelog: /client helpers are plain values in server components, iaplTtlFrom in MongoDB types
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 16:45:07 +01:00
Radosław SmolińskiandClaude Opus 5.5 c9285f0349 Merge claude/performance-1180-items: the owner's performance decisions for 1.18.0 (lazy form and Turnstile with /client/eager, metadata stripped on upload, MongoDB TTL indexes, version limit, unused-media notice, performance rules as errors)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 16:20:07 +01:00
Radosław SmolińskiandClaude Opus 5.5 8cf5a58045 Doctor: the performance rules are errors (owner's decision for 1.18.0); lowered or silenced per rule in iapl-doctor.json; growth stays warnings; audit reports them as errors; legacy:site lists perf-* errors an old site meets; docs, skills, changelog; reference skills refreshed
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 16:10:23 +01:00
Radosław SmolińskiandClaude Opus 5.5 f0127ac1b8 1.18.0 performance items: tests, the reference budget gate tightened (JS 195 kB, 404 without its exception, TTL check), docs (performance.md, AGENT.md, iapl-performance, module pages, api.md), changelog: what changes for an existing site
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 15:54:15 +01:00
Radosław SmolińskiandClaude Opus 5.5 d628839235 1.18.0 performance items: reference 404 placeholder and heading font without preload, lazy form and Turnstile code (eager entry /client/eager), Turnstile space kept, background video paused for reduced motion, card hover on opacity, metadata stripped on upload, MongoDB TTL indexes for the consent log and statistics, unused-media notice, version limit for the plugin's entities
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 15:38:38 +01:00
Radosław SmolińskiandClaude Opus 5.5 076b3ef707 Merge claude/performance-2026-12-36a376: fewer queries per render, no 'use client' on the /client barrels, budgets, the doctor's performance and growth groups
Conflicts kept both sides: the doctor status (twoFactorConfirm with growth and media), its key test, e2e:built (the 2FA
enrolment spec and the performance budgets), the reference index (regenerated). Reference skill copies synced
(iapl-performance added, iapl-audit and iapl-reference updated).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:58:44 +01:00
Radosław SmolińskiandClaude Opus 5.5 350e3147cf Merge claude/2fa-enrolment-email-confirm: the first two-step set-up is confirmed by e-mail (twoFactor.confirmByEmail, security audit F0)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:57:55 +01:00
Radosław SmolińskiandClaude Opus 5.5 8991867e01 What grows: the doctor's growth group (sizes, versions, retention, submissions, KV, unused media, disk) with thresholds, expired mail-service nonces swept, opt-in forms.submissionRetentionDays, docs
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:48:35 +01:00
Radosław SmolińskiandClaude Opus 5.5 6b16b9f933 perf-budgets reports only for a project that runs Playwright (a new starter site has no e2e yet)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:29:17 +01:00
Radosław SmolińskiandClaude Opus 5.5 3b32e659c5 Budget gate: Next's idle link prefetches counted apart, third parties recorded then aborted, spec filter safe for any checkout path; zero counted queries fail
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:19:26 +01:00
Radosław SmolińskiandClaude Opus 5.5 beef517c23 Tests: the lightbox viewer's first open waits for its chunk; reference index lists the performance spec and the lab helper
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:07:07 +01:00
Radosław SmolińskiandClaude Opus 5.5 9bac7e7bf0 Performance review: final numbers for both bundlers, memory measured on its own, the font decision measured
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 14:04:45 +01:00
Radosław SmolińskiandClaude Opus 5.5 45c6dcd968 e2e:built runs the performance budgets with both bundlers; Turbopack numbers after
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:53:57 +01:00
Radosław SmolińskiandClaude Opus 5.5 c6c5dfbcbf Docs: performance.md, the iapl-performance skill, AGENT.md 6.11b, doctor.md, audit, api.md, the measurements and the audit
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:51:43 +01:00
Radosław SmolińskiandClaude Opus 5.5 801b897ea0 Budgets and checks: PERF_BUDGETS / perfBudgets / overBudget, the reference gate (both bundlers), the doctor's performance group (static, live, deep)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:51:43 +01:00
Radosław SmolińskiandClaude Opus 5.5 21073d98d0 Client: no 'use client' on barrels, lazy lightbox viewer, rAF table of contents, Turnstile polling stops, reduced motion, Media eager, 404 placeholder option
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:51:39 +01:00
Radosław SmolińskiandClaude Opus 5.5 1d6108765c Fewer queries per render: resolveRoute and page metadata cached by value, select for slug-only reads, one Site integrations read
Home 43 -> 24 MongoDB queries per render, other pages -36 to -44 %.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:51:39 +01:00
Radosław SmolińskiandClaude Opus 5.5 f3be77b2bc Performance measurement: pnpm perf:measure and the lab helper (phone/desktop, vitals, bytes, queries per render)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:51:39 +01:00
Radosław SmolińskiandClaude Opus 5.5 c9d1f4b340 2FA: the first set-up is confirmed by e-mail (twoFactor.confirmByEmail, 1.18.0)
Security audit 2026-12, F0: inside an account's setup window its password alone
enrolled an authenticator of the caller's choosing; the owner was locked out.

- /setup-totp for an account without a factor: IAPL checks the code, keeps the
  secret pending (payload-kv), mails a single-use 30-min link to the account and
  ties it to the enrolling browser; the package's handler (and its -totp cookie)
  is never used for a first enrolment
- GET /api/iapl/two-factor/confirm = a page with one button; POST confirms
  (own origin, same browser), ends the account's sessions, signs nobody in
- notice mails on every enrolment, change, removal / reset (any path)
- mail not working: link to the server log, admin confirms on the account page
  (POST /api/iapl/two-factor/confirm-pending), doctor rule 2fa-enrolment-mail
- options and opt-out (confirmByEmail: false), building blocks exported
- tests: HTTP suite on SQLite, MongoDB, Postgres; built-site spec in e2e:built;
  closed doors and judged routes; docs, AGENT.md, skills, changelog

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:37:39 +01:00
Radosław SmolińskiandClaude Opus 5.5 2bf8502aae Reference site: import map regenerated (MaskedField moved by currentPassword), skill copies synced after the 1.18.0 merges
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:20:16 +01:00
Radosław SmolińskiandClaude Opus 5.5 84717804ae legacy:site: the same import-map entries in another order pass, and the old site is then built with its committed map
Payload writes import-map entries in the order it meets them; 1.18.0's currentPassword field moves MaskedField three
lines up. A new or a missing entry still fails. The typecheck and both builds run with the map the old site has,
which proves an unedited site works without generate:importmap (the 1.18.0 notes say so).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:03:32 +01:00
Radosław SmolińskiandClaude Opus 5.5 1ba191e580 Merge claude/security-a-118: a stranger cannot lock a staff account, staff sign-in only from the site's own origin, own e-mail and password changes ask for the current password
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 13:03:26 +01:00
Radosław SmolińskiandClaude Opus 5.5 8888a38c10 Lint: lockedAnswer suite after the merge
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 12:58:02 +01:00
Radosław SmolińskiandClaude Opus 5.5 1bc0ebca63 Merge local main (1.17.2) into security-a-118
Conflicts resolved by keeping both sides: lockedAnswer + sign-in rules in plugin.ts and switches.ts, IPv6 grouping in the
mail service's new per-visitor address count, both built-site specs in e2e:built, docs and skills (reference copies
synced). The lockedAnswer suite and the sign-in-answers spec now reach Payload's lock the 1.18.0 way: a spray from
50 IPs, one failure each (one IP alone gets 429 after five).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 12:57:52 +01:00
Radosław SmolińskiandClaude Opus 5.5 23215d91a8 Merge claude/security-b-118: plugin status written alone, access answers announced (strict in 1.19.0), drafts left out of related documents
Merged onto ee241de (the prepared 1.17.2). Conflicts kept both sides: AGENT.md rows (consent version; drafts, status, access answers), security.md sections (job queue, visitor accounts; access callbacks), src/index.ts (the jobs exports).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 12:53:59 +01:00
Radosław SmolińskiandClaude Opus 5.5 ee241deee0 1.17.2 upgrade notes
PROGRAMISTA §6 rows 84–87 (version history, sign-in and panel actions, REST submissions and jobs, consent version);
iapl-upgrade "→ 1.17.2, security"; reference skills, AGENTS.md and the reference index on 1.17.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 12:11:56 +01:00
Radosław SmolińskiandClaude Opus 5.5 0709141cae 1.17.2
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 12:11:56 +01:00
Radosław SmolińskiandClaude Opus 5.5 0dffd377a7 Merge claude/cookie-button-bottom: the cookie button never moves; the footer keeps room under its last row (owner's option 3)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 12:08:57 +01:00
Radosław SmolińskiandClaude Fable 5.2 3821174be4 Cookie button never moves; the footer gets room under its last row while the button is shown
Owner, 2026-12-01, after the review of fb92b35: option 3, "miejsce pod stopką" — the button stays in its corner at
all times and covers nothing; the page gets room under its last row.

- Removed: the step up at the end of the page (`clear`, COOKIE_BUTTON_CLEAR, stepAbove; never released).
- New: while the button is shown, the last footer (`reserve`, COOKIE_BUTTON_RESERVE; no footer: <body>) gets bottom
  padding, measured: button height + offset + safe area + 8 px, minus what is already free under the lowest text or
  control in the button's column. The footer's own padding counts (no double space); an empty corner gets nothing.
  Not before a decision, not while the banner is open, gone with the button; `reserve={false}` turns it off,
  `--ipal-cookie-button-space` on the footer sets the amount (0 = none, per breakpoint).
- No layout shift: on a static page <CookieButton> renders an inline script that makes the room before the first
  paint for a visitor who already decided — in a constructed style sheet, so the server's markup is untouched and
  React hydrates without a mismatch; after hydration the same function moves it onto the element.
- consentDecidedScript: the shared start of the banner's and the button's pre-paint scripts.
- avoid={COOKIE_BUTTON_AVOID} is still the placement before 1.17.2 (no room then).

Tests: test/cookieButtonPlacement.test.ts rewritten (24); reference e2e on desktop, 390 px and 360 px phones, light
and dark, five pages: the corner at every scroll position, nothing under the button at the very end, every footer
link clickable, layout shift < 0.001, the room before hydration.
Docs: consent.md, AGENT.md, skills, PROGRAMISTA item 83, changelog draft 1.17.2.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-12-01 12:08:00 +01:00
Radosław SmolińskiandClaude Opus 5.5 9ac56bc794 Docs: SIGN_IN_RULES_MARK; reference types with the field's description
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 11:25:25 +01:00
Radosław SmolińskiandClaude Opus 5.5 7fca1a5883 Reference site: generated types with the virtual currentPassword field (1.18.0)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 11:18:28 +01:00
Radosław SmolińskiandClaude Opus 5.5 420fe40442 Sign-in rules: tests that change their own password send the current one; field labels en/pl; the hook carries a mark
Tests and the late-staff built-site spec that change an account's OWN
password now send currentPassword (the 1.18.0 rule). The Current password
field's label and description are plain { en, pl } (house style checked by
the wording test). The beforeOperation hook carries SIGN_IN_RULES_MARK so
the password-rule hook counts stay what they measure. The injected users
collection carries Payload's lock defaults (50, 1 h).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 11:18:21 +01:00
Radosław SmolińskiandClaude Opus 5.5 66afd5ea43 Merge claude/cookie-button-bottom: the cookie button stays in the bottom corner of the window
Conflicts in the 1.17.2 changelog draft and the upgrade skill: both sides kept (rewritten into one entry at release).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 11:17:59 +01:00
Radosław SmolińskiandClaude Opus 5.5 07ad2bde60 Merge claude/security-b-1172: the consent version only goes up
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 11:17:51 +01:00