Kill hub boot default-tenant ensure - #705
Merged
Merged
Conversation
An empty database is a valid hub. Process boot and createHub must serve health and auth with zero tenant rows and no boot admin. First signup remains the 0 to 1 path without a skip seam.
createHub no longer calls ensureDefaultTenant. A fresh database has zero tenants; first signup remains the 0→1 path. Tests that assumed a boot alice now sign her up through the same auth API the UI uses.
Empty database is the default after boot. First signup is genesis.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linear: CL-7580
Summary
Hub boot no longer mints a root tenant or an admin account.
ensureDefaultTenantandapps/hub/src/default-tenant.tsare gone. A fresh database has zero tenants;/statusand auth still serve. First signup (CL-7578) remains the 0→1 path.Env-credential plant is unchanged (sign-in only, retries until a bench exists).
packages/seedingstays. Tests that assumed a boot alice now sign her up through the same auth API the UI uses.Test plan
bun test apps/hub/test/boot-does-not-seed.test.ts— process +createHubscratch DB, zero tenant rows, alice sign-in is not 200bun test apps/hub/test/signup-genesis.test.ts— first signup still mints the root without a skip seambun run checkexit 0