ipalEnvRules: PAYLOAD_SECRET at least 32 characters in production
New option secretMinLength (default 32, 0 turns it off); checked only with NODE_ENV=production. Docs: env table, deployment (what changing the secret does, checked in Payload 3.94.1 and payload-2fa), AGENT.md, ipal-reference, ipal-setup. Tests: short secret fails in production, passes in dev, 0 and a custom minimum. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
40fed78da2
commit
36f8f69f82
@@ -460,7 +460,7 @@ pnpm dev
|
||||
| Variable | Required | Description |
|
||||
|---|---|---|
|
||||
| `DATABASE_URI` | ✅ | Postgres / Mongo (dev can use SQLite) |
|
||||
| `PAYLOAD_SECRET` | ✅ | random, ≥32 characters, different in production |
|
||||
| `PAYLOAD_SECRET` | ✅ | random, ≥32 characters, different in production — `ipalEnvRules` checks the length in production (`secretMinLength`, default 32, `0` = off) |
|
||||
| `NEXT_PUBLIC_SERVER_URL` | ✅ | public URL (canonical, hreflang, OG); without it links are relative |
|
||||
| `GRAPH_TENANT_ID`, `GRAPH_CLIENT_ID`, `GRAPH_CLIENT_SECRET`, `GRAPH_SENDER` | ⬜ | email through Microsoft Graph |
|
||||
| `R2_BUCKET`, `R2_ENDPOINT`, `R2_ACCESS_KEY_ID`, `R2_SECRET_ACCESS_KEY` | ✅ prod | media in Cloudflare R2 — always in production (missing → container disk, files vanish on redeploy without a volume); in dev they can be empty (storage.md) |
|
||||
|
||||
Reference in New Issue
Block a user