IAPL rename: docs, agent guide, skills, reference site and starter on the new names; changelog draft

- docs, AGENT.md, the 16 skills, PROGRAMISTA and README use the preferred names (scripted, same list of forms);
  past CHANGELOG entries and the proposals in docs/dev are not rewritten
- AGENT.md: 'Names: IAPL and ipal-kit' — old name, new name, state in 1.x; what is not renamed; storageNames
- iapl-upgrade '→ 1.17.0', PROGRAMISTA §6 item 72, CHANGELOG 1.17.0 (draft): nothing required
- env.md, doctor.md (legacy-names, storage-names), stats.md, security.md, project-starter.md, iapl-reference, iapl-setup
- skill scripts read ipal-audit-skip and IPAL_IP_HEADER too; audit rule ids stay what they were
- reference site: iapl(), iapl-doctor.json, iapl-* skills, storageNames: 'iapl'; INDEX.md regenerated

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-25 17:36:09 +01:00
co-authored by Claude Fable 5.2
parent 425fac14fb
commit b91984fbcd
149 changed files with 1930 additions and 1747 deletions
+13 -13
View File
@@ -13,8 +13,8 @@ set", never the value ([security.md](./security.md) "Stored secrets"). Env fallb
> **Deprecated: `TURNSTILE_SECRET_KEY` from the environment.** It still works when the panel field is empty,
> and will be removed in a later release that the changelog names in advance. A site that relies on it logs
> `[ipal] Deprecated: the Turnstile secret key comes from the TURNSTILE_SECRET_KEY environment variable…` once
> per start, and `ipal-doctor --url` reports it (`turnstile-env-key`). **Move it:** copy the key into Site
> `[iapl] Deprecated: the Turnstile secret key comes from the TURNSTILE_SECRET_KEY environment variable…` once
> per start, and `iapl-doctor --url` reports it (`turnstile-env-key`). **Move it:** copy the key into Site
> integrations → Spam protection → Secret key, send a test form, then remove the variable from the environment
> (Coolify). Local development with Cloudflare's test keys in `.env` keeps working until the removal.
@@ -69,19 +69,19 @@ if (!ok) {
`verifyTurnstile` reads the secret from SiteIntegrations (Local API), and when the field is
empty — from the **`TURNSTILE_SECRET_KEY`** variable (deprecated, see Config; the same one
`ipalEnvRules({ turnstile: true })` names). It returns `true` for `pass`, `false` for `reject`,
`iaplEnvRules({ turnstile: true })` names). It returns `true` for `pass`, `false` for `reject`,
and for `degraded` (a problem on our side, see below) — depending on
`onConfigError`: **by default `'allow'` → `true`**, `'reject'` → `false`. No token
→ `false`. Every result other than `pass` is **logged** in the server logs:
| Log | Cause | Result |
|---|---|---|
| `[ipal] Turnstile degraded (missing-secret): …` | no secret in the panel or in env (on every verification) | `degraded` |
| `[ipal] Turnstile degraded (invalid-input-secret): …` | wrong secret, or a site key / secret pair from different widgets | `degraded` |
| `[ipal] Turnstile: siteverify request failed: …` + `degraded (network-error)` | the container cannot reach `challenges.cloudflare.com` (8 s timeout) | `degraded` |
| `[ipal] Turnstile degraded (internal-error \| bad-response)` | Cloudflare returned 5xx / an internal error / an unexpected response | `degraded` |
| `[ipal] Turnstile rejected: timeout-or-duplicate` | token used twice or older than 300 s | `reject` |
| `[ipal] Turnstile rejected: invalid-input-response` | broken / empty token from the frontend | `reject` |
| `[iapl] Turnstile degraded (missing-secret): …` | no secret in the panel or in env (on every verification) | `degraded` |
| `[iapl] Turnstile degraded (invalid-input-secret): …` | wrong secret, or a site key / secret pair from different widgets | `degraded` |
| `[iapl] Turnstile: siteverify request failed: …` + `degraded (network-error)` | the container cannot reach `challenges.cloudflare.com` (8 s timeout) | `degraded` |
| `[iapl] Turnstile degraded (internal-error \| bad-response)` | Cloudflare returned 5xx / an internal error / an unexpected response | `degraded` |
| `[iapl] Turnstile rejected: timeout-or-duplicate` | token used twice or older than 300 s | `reject` |
| `[iapl] Turnstile rejected: invalid-input-response` | broken / empty token from the frontend | `reject` |
`verifyTurnstile` / `checkTurnstile` options: `token`, `payload` (required), `ip?`,
`sendRemoteIp?` (`false`), `hostnames?`, and for `verifyTurnstile` only — `onConfigError?` (`'allow'`).
@@ -99,7 +99,7 @@ and for `degraded` (a problem on our side, see below) — depending on
**`forms.turnstileOnConfigError`** sets what `degraded` means, once for the project:
```ts
ipalKit({ forms: {
iapl({ forms: {
// turnstileOnConfigError: 'reject', // every form fails closed
// turnstileOnConfigError: 'allow', // every form keeps working, forms with files too
// turnstileOnConfigError: { text: 'allow', files: 'allow' }, // per kind
@@ -111,11 +111,11 @@ with a file puts an attachment into a mailbox. A value at a call site (`turnstil
`createSubmitAction` / `submitForm`, `attachments.submit.turnstileOnConfigError`) still wins. Not involved while
Turnstile is off (no keys). **What an existing site sees:** nothing while Turnstile works; while it is degraded,
forms with a File field answer "verification failed" instead of sending — fix the keys (the dashboard alert and
`ipal-doctor --url`, rule `turnstile-degraded`, say so), or set `{ files: 'allow' }`.
`iapl-doctor --url`, rule `turnstile-degraded`, say so), or set `{ files: 'allow' }`.
> Note: where the policy is `'allow'`, a wrong secret in the panel (`invalid-input-secret`)
> means forms accept submissions **without effective verification** —
> visible as an alert in the panel, in the log, and in `ipal-doctor --url` (`turnstile-degraded`: a warning,
> visible as an alert in the panel, in the log, and in `iapl-doctor --url` (`turnstile-degraded`: a warning,
> an error after a day). `submitForm` checks Turnstile only
> when both keys are set (`getTurnstileConfig().enabled`); then a missing token
> always → `reason: 'turnstile'`.
@@ -260,7 +260,7 @@ full control or have an unusual case. The provider is a convenience layer over i
env `TURNSTILE_SECRET_KEY` (**deprecated**, see Config). `turnstileSecretFromEnv(integrations)` and
`TURNSTILE_SECRET_ENV` are exported.
- **Access to the keys:** Site integrations is admin-only (read and update); change it with
`ipalKit({ globalOverrides: { 'site-integrations': { access: … } } })` — keep `read` restricted, the secret lives there.
`iapl({ globalOverrides: { 'site-integrations': { access: … } } })` — keep `read` restricted, the secret lives there.
- **Look:** `theme` on `<Turnstile>` / `<TurnstileWidget theme>`, `turnstileTheme` in `RenderForm` / `BuilderForm`.
- **Your own integration:** `checkTurnstile` (full `pass` / `reject` / `degraded` classification),
`verifyTurnstile`, `getTurnstileConfig`, `<Turnstile>`, `useTurnstile` / `useOptionalTurnstile`.