- Cross-site writes to
/api/rpcare refused. A write whoseOriginis neither the request's origin norBETTER_AUTH_URL's now gets HTTP 403. So does a write with noOriginthatSec-Fetch-Sitemarks ascross-siteorsame-site. This covers the OpenAPI mirror. A PR preview on a sibling subdomain can no longer write with a production cookie. The native app, scripts and server-to-server calls send neither header and are unaffected. See API. - Production no longer trusts
<scheme>-dev://. No production app registers the development build's scheme, so any app could claim a password-reset token sent there. The scheme is trusted in development, and on previews through the new preview-only switchNATIVE_DEV_SCHEME=1. Set it inapps/web/.dev.varsto sign a development build into a local built Worker. See Runtime switches. - Only owners and admins can purge the trash, and purge now checks the database session. The files gateway also no longer reuses a snapshot-authorized tenant where it asked for the database session. See Files.
BETTER_AUTH_SECRETmust be at least 32 characters.pnpm setupalready generates 44. A shorter secret now fails the production deploy before migrations, and the preview secrets step refuses it, so the running Worker is never replaced by one that refuses to boot. Changing a short secret signs every user out.- The cron tick is observable. Each failed job logs one
jobs.step_failedline with the type and code of its cause, never a message. Every tick logs onejobs.tickline: settled with counts, interrupted by the deadline, or failed. See Scheduled jobs. - Job and migration lock waits end on the server. The job pool's
lock_timeout(1 s) andstatement_timeout(1.5 s) now fire before its 2 s client timeout. A claim reported as failed can no longer commit later. The migration runner takes a transaction-scoped advisory lock per folder, which is safe on a pooled connection, and gives up a table lock after 5 seconds instead of queueing traffic behind it. See Database.
Security and backend quick wins
Cross-site writes to the API are refused, production stops trusting the development app scheme, purge needs an owner or admin, and jobs and migrations fail more safely.
Edit on GitHubDocumentation is in English.