Repository navigation
Image: ghcr.io/alejandroerickson/what-build:v0.50.0 (linux/amd64), built from ddfeea69b84d19cfe87f82d192bba282b27970c4.
Migrations. This release changes the database schema since v0.49.0, the last release with an image:
0059_better_auth.sql
Going back to an earlier release needs the database restored to before these ran. Take a restore point before deploying.
If a release breaks your deployment: recovering from a bad release.
Upgrading.
- Identity moves to Better Auth (decision). Migration
0059 adds Better Auth's tables in a schema of their own,better_auth, and makes every account
not deleted one of its users; rehearse it on the dev deployment. Then:- Everyone signs in again once, and every agent connects again once. No session or agent
connection carries over. - Each provider's redirect URI changes to
<public URL>/api/auth/callback/google,
/api/auth/callback/githuband/api/auth/callback/microsoft: add it to the provider's app
(Google Cloud console, GitHub OAuth app, Entra app registration) before deploying, and remove
the old/auth/<provider>/callbackonce it works. - Microsoft, one directory only, takes an address only when the ID token says it is
verified: the app registration's ID token needs the optional claimsemail,
verified_primary_emailandverified_secondary_email(the address is read fromemail, and
taken only when one of the other two lists it). It now asks foropenid profile emailonly, so the
registration needs no consent toUser.Readoroffline_access. A server refuses to start
withWHATBUILD_MICROSOFT_DOMAINS,WHATBUILD_MICROSOFT_ANY_DIRECTORY=1or
WHATBUILD_GITLAB_CLIENT_IDset: unset them. - Agents' addresses: connectors scoped to an organization or a product
(/mcp/t/...) answer 404; each person adds<public URL>/mcpinstead. OAuth's issuer is
<public URL>/api/auth. An MCP client must name/mcpas the resource it wants a token for
(RFC 8707, the MCP authorization spec of 2025-06-18 and later); an older one cannot connect,
and/mcpsays so. WHATBUILD_DATABASE_POOL_SIZEnow counts Better Auth's connections too (a fifth of it, at
least one), so an instance holds no more than it says; its least is now 6, and a server set to
5 refuses to start.- Abuse limits (
WHATBUILD_ABUSE_LIMITS) apply as before to sign-in links and agent
registrations. Better Auth's own short rate limits count only behind an edge that names client
addresses (the Cloudflare Worker withWHATBUILD_EDGE_KEY); elsewhere they are off and the
deployment's ceilings apply, as for every limit per client. - Nothing new to set: Better Auth's secret is derived from
WHATBUILD_GRANT_KEY. Changing that
key signs everyone out of the web app, and stops WhatBuild issuing agents' tokens until the
signing key made with the old one is removed: right after the new key is live, run
delete from better_auth.jwks;against the deployment's database. Each agent's access token is
then refused once, and it refreshes; no agent is disconnected. tools_version0.80.0: the guide and the tools' descriptions no longer speak of scoped
connectors, of changing a connection's level in Settings, or of turning feedback off; a
connected client sees them after a new session.
- Everyone signs in again once, and every agent connects again once. No session or agent
What's Changed
- Run identity on Better Auth by @alejandroerickson in #389
Full Changelog: v0.49.0...v0.50.0