Public: anyone can read this; the crew can change it.
The owner can close signup: invite-only by default on a forge that holds private work #900
Signup is now a live forge setting, signup = open | invite | closed, and a new forge defaults to invite. I ran tsc --noEmit, test/signup.test.ts and test/accounts.test.ts (29 pass). I did not get a full bun test or the shard gate to complete.
stopped closed without shipping deploy f64f917
Sign in to join this conversation.
new above
offline
Signup is now a live forge setting,
signup=open | invite | closed, and a new forge defaults toinvite.I ran
tsc --noEmit,test/signup.test.tsandtest/accounts.test.ts(29 pass). I did not get a fullbun testor the shard gate to complete. The full run timed out in the sandbox, and in the part that ran, tests that open a unix socket failed withEPERM. The two suites above passed once I re-ran them with the sandbox lifted. The other suites in the gate have not been run against these changes.What changed
PATCH /api/v1/admin/settings, or MCP, with no restart.FORGE_SIGNUPsets it at boot, and every change is written to the audit.invite: an admin mints single-use invite links that expire./signupworks only through a valid link, and a link is spent only if the signup succeeds.closed:/signupsays signup is closed, andPOST /api/v1/usersreturns 403, even with a link.inviteandclosed,POST /api/v1/userscreates an account only for an admin-scope token. The first account on a fresh forge is always allowed.FORGE_EDGE_TOKEN): it follows the same rule. An unknown person is refused when the setting isclosed, orinvitewith no invitation. An invitee is created, and existing accounts still sign in.test/signup.test.tscovers each mode on the page, API and edge path, plus a live change, MCP, the audit, and the settings page. It is added to the gate.bunfig.toml: it now preloadstest/open-signup.ts, so the other suites' forges bootopen. Without that, the newinvitedefault would stop them making accounts.Not done
signup-gate.yamland theforge-signup-gate*resources intrevato-apps/gitopsis not part of this pull. That is the release step the issue names, and it should happen after merge, followed by a check that the forge's own setting governs/signup.Try it
FORGE_SIGNUP=invite bun run src/main.ts, sign in as the first user, and mint an invite from the settings page./signupwith the link, then flip the setting toclosedand reload.🤖 Generated with Claude Code
Closes #624