Refuse a TRUST_PROXY the apps can't start with; Accounts reads loopback
A server configuration with TRUST_PROXY=TRUE made an Events install build for minutes, then fail: Express threw "invalid IP address: TRUE" at startup. - scripts/lib/envtpl.cjs: VALUE_RULES checked before any .env is written (exit 4, naming the value and the fix), for every release. - Contracts 1.6.0: agent.checkEnvValue / agent.invalidValues, the same rules for the Hub. - Accounts 1.0.1: TRUST_PROXY read as Events reads it; loopback used to turn proxy trust off. - Docs: CHANGELOGs, WHATS-NEW, HANDOVER, AGENT-1.0-PLAN, ROLLOUT-1.0, READMEs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,6 +2,22 @@
|
||||
|
||||
Each package and app has its own section and its own tags (`contracts@1.0.0`, `accounts@1.0.0`, …).
|
||||
|
||||
## accounts@1.0.1, contracts@1.6.0, crosscode script - 2026-11-19
|
||||
|
||||
A server configuration with `TRUST_PROXY=TRUE` made an Events install build for minutes, then
|
||||
fail: the backend crashed at startup (`invalid IP address: TRUE`) and the install was removed.
|
||||
|
||||
- **Scripts: a value the app can't start with stops the install before the build.**
|
||||
`lib/envtpl.cjs` checks values against `VALUE_RULES` (so far `TRUST_PROXY`: `loopback`, a hop
|
||||
count, lowercase `true`/`false`, or proxy IPs/CIDRs) and exits 4 naming the value and the fix,
|
||||
before any `.env` is written. The rules are in the script, so they apply to every release,
|
||||
including ones from before them. On deploy, values already in a `.env` aren't checked.
|
||||
- **Contracts 1.6.0:** `agent.checkEnvValue(name, value)` and `agent.invalidValues(values)`, the
|
||||
same rules for the Hub (Hub 2.3.3 refuses a bad value when the configuration is saved and before
|
||||
a job).
|
||||
- **Accounts 1.0.1:** `TRUST_PROXY=loopback` turned proxy trust off; it's now read as Events reads
|
||||
it. Details in `apps/accounts/CHANGELOG.md`.
|
||||
|
||||
## crosscode script - 2026-11-19 (no tag: servers run `main`)
|
||||
|
||||
- **Scripts: a failed install says why its apps didn't start.** Before removing what a failed
|
||||
|
||||
Reference in New Issue
Block a user