caelum0x a72111e9b6 fix(console): refuse the Scribase control-plane host as SCRIBASE_URL
railyard-console was deployed live on 2026-10-14 (railyard.ereboslab.com
returns 200) but sign-in has been silently broken since: SCRIBASE_URL is
set to https://api.scribase.com, the shared control-plane/management API,
not a project's own gateway host, so POST /auth/v1/otp there 404s. Verified
directly against the box's Scribase DB that no project exists for the
console at all yet (zero rows for organization_id='ereboslab').

Add a config-read guard + test so this exact misconfiguration fails loudly
on the next deploy instead of shipping a console that renders but can
never sign anyone in, and correct DEPLOY.md/README.md's stale "never
deployed" / "no action needed" claims to match verified reality, with the
missing owner step spelled out (replace SCRIBASE_URL with the real
project's api_url once provisioned).

Not deployed: redeploying the guard alone, before a real SCRIBASE_URL
exists, would turn today's "page loads, sign-in silently fails" into a
500 on every request, which is worse. Provisioning the real project is
confirmed owner-gated (needs a working SCRIBASE_ACCESS_TOKEN for the
ereboslab org; none found on this machine), matching migration 0001's own
header, not an oversight.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-17 01:14:27 +03:00
..