Security fix for sign-up, and a faster first run
PermalinkThe password sign-up endpoint is now always closed. New projects run locally with one command and no third-party keys, and muse:doctor tells you and your AI agent what is ready.
This release fixes a sign-up security issue and makes the first hour with MuseMVP much shorter, for you and for AI coding agents.
Security: password sign-up endpoint
With config.auth.gates.allowRegister set to false, the register page was hidden, but POST /api/auth/sign-up/email still accepted requests. Anyone could create an account with an unverified email address and get a session.
- The password sign-up endpoint is now always closed. Accounts are created only through email OTP, which proves the address.
- Password sign-in still works for seeded and admin-created users, and never signs in an unverified address.
- If your product is live, apply the commit
fix(auth): close the password sign-up endpoint, or setdisableSignUp: true,autoSignIn: false, andrequireEmailVerification: trueunderemailAndPasswordinpackages/auth/src/create-auth.ts.
Faster first run
pnpm muse:init --app cloudflare(or--app node --docker) now does the whole local setup: env file, secrets, migrations, and seed accounts. Running it again keeps your values and custom keys.pnpm muse:doctorreports each feature as ready, local, disabled, or missing.--jsongives AI agents the same report without any secret values.- Mail is printed in the dev server terminal by default, in both apps, so sign-up codes work locally without a mail provider.
- Registration is open by default.
- In development, sign-in and API calls work from
localhoston any port, so several projects can run side by side. BILLING_DEFAULT_GATEWAY="dodo"now works as documented. Previously onlymuse_dodowas recognized.
Documentation
- A new guide walks from a fresh clone to production, including the steps that need a human (API keys, OAuth apps,
wrangler login) and the MCP servers that save the most manual work.