Skip to content

v0.50.0

Latest

Choose a tag to compare

@alejandroerickson alejandroerickson released this 01 Dec 03:22
ddfeea6

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/github and /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>/callback once 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 claims email,
      verified_primary_email and verified_secondary_email (the address is read from email, and
      taken only when one of the other two lists it). It now asks for openid profile email only, so the
      registration needs no consent to User.Read or offline_access. A server refuses to start
      with WHATBUILD_MICROSOFT_DOMAINS, WHATBUILD_MICROSOFT_ANY_DIRECTORY=1 or
      WHATBUILD_GITLAB_CLIENT_ID set: unset them.
    • Agents' addresses: connectors scoped to an organization or a product
      (/mcp/t/...) answer 404; each person adds <public URL>/mcp instead. OAuth's issuer is
      <public URL>/api/auth. An MCP client must name /mcp as 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 /mcp says so.
    • WHATBUILD_DATABASE_POOL_SIZE now 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 with WHATBUILD_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_version 0.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.

What's Changed

Full Changelog: v0.49.0...v0.50.0