Files
crosscode-platform/apps/accounts/CHANGELOG.md
T
joshuaandClaude Opus 5.5 fd8f6c28b0 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>
2026-11-19 10:23:49 +02:00

2.3 KiB

Changelog — Accounts

[1.0.1] - 2026-11-19

Fixed

  • TRUST_PROXY=loopback turned proxy trust off. Accounts read TRUST_PROXY as true/false, so anything but true, including the loopback the Hub suggests behind frp, meant off: rate limiting and the audit log saw every visitor as 127.0.0.1, and oidc-provider ignored X-Forwarded-Proto. It's now read as Events reads it: loopback, a hop count, proxy IP addresses/CIDRs separated by commas, or true/false in any case (true is one hop, as before). Unset is still one hop in production.

[1.0.0] - 2026-11-18

The first release (docs/ACCOUNTS-1.0-PLAN.md), with Hub 2.3.0 and agent 1.1.0. Released before the VM test and a run on real Postgres; do both before installing it for a church.

Added

  • OpenID Connect provider (oidc-provider 9.13.3): authorization code with PKCE (S256) required, ES256 keys made on first start, crosscode.identity/1 claims in the ID token, no refresh tokens, RP-initiated logout and OIDC Back-Channel Logout. Clients are the linked products (Connect, crosscode.link/1), with exact redirect addresses and the client secret derived from the link.
  • Sign-in steps that all return to the product and page they started from: password, sign-up with an emailed code, two-step sign-in (authenticator app, email, WhatsApp, recovery codes) and setting it up when a product asks (acr_values=mfa) or for admins, privacy notice (asked again when a new version is published), news question, forgot / reset password.
  • The account page: details, email change by link, password, two-step sign-in, recovery codes, news consent, recent activity, sign out everywhere, download my data (bundled from every linked product), delete my account (approved by an admin, then every product, retried when a product says "not yet").
  • Admin: people (access-logged), deletion requests, the church profile (crosscode.church/1, served at /api/church/v1, church.changed to products), linked products, sign-in settings, email and WhatsApp, privacy notice versions, licence, audit log. First-run /setup.
  • Hub protocol v2 (product accounts, CCA- licence; never read-only), registering by itself from HUB_LICENCE_KEY.
  • crosscode hooks (scripts/products/accounts.sh), env.template.json, PM2 example.