Repository navigation
feat(config): pin app.auth to nearbuilders.org's published auth entry - #123
Merged
Merged
Conversation
…#122) C3 phase 0 (#118): before the AUTH_DATABASE_URL flip, all nearbuilders.org apps must provably resolve the same auth plugin. Authoring the auth slot takes it out of our release plane — the resolver treats an entry naming 'extends' as authored (REMOTE_SOURCE_KEYS, release-composition.ts), so the deploy train and consumer boots no longer re-point app.auth at OUR pin's bytes, and the slot live-follows bos://nearbuilding.near/nearbuilders.org#app.auth. - ui: false drops nearbuilders.org's attached site UI (without it the extended app's app.ui composes as the auth plugin's ui); the runtime map correspondingly loses its auth-ui source entry. - Base platform extends, release pin, and our own ui/api surface unchanged. _resolved.extendsChain unchanged (the auth extends is per-entry, not a lineage edge). - Today the resolved auth bundle equals the base rc.39 bytes — nearbuilders.org publishes no custom auth yet. When they bump their framework and republish, our auth resolves to their entry with no code change here, and only nearbuilders.org boots can migrate the shared DB.
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.
Closes #122 — C3 phase 0 of the cutover plan (#118). Must land before the
AUTH_DATABASE_URLflip.Change
Top-level
authkey inbos.app.ts(sibling ofui/api):Why this is the correct mechanism (verified against the rc.39 resolver)
release-composition.tstreats any entry namingextends(REMOTE_SOURCE_KEYS) as child-authored; authored remotes are skipped bystampInheritedRemotesin both the deploy train and consumer boots. So authoring the auth slot removes it from OUR release plane — the slot live-follows nearbuilders.org's published entry instead of being re-pointed at our pin's bytes.ui: falsedrops nearbuilders.org's attached site UI (per the plugin opt-out convention); without it, theirapp.uiwould compose as the auth plugin's UI. The generated runtime map correspondingly loses itsauth-uisource (committed regenerated artifacts)._resolved.extendsChainunchanged (per-entry extends, not a lineage edge); base platform extends, release pin, and our ownui/apisurface untouched.Resolved state today
The resolved
app.authequals the base rc.39 bytes — expected: nearbuilders.org publishes no custom auth yet (nearbuilders.org/bos.app.tshas none; both apps are rc.39). The pin's value is prospective: when nearbuilders.org bumps their framework and republishes, our auth follows their entry with no code change here, and only nearbuilders.org boots can migrate the shared auth DB.Verify
pnpm run types:gen→.bos/bos.resolved-config.json:app.auth.extendsrecorded,_resolved.extendsChainunchanged,app.uistill ourspnpm run typecheckgreen;pnpm run testgreen (204 api + 110 ui)bos publishsnapshots the pinned auth remoteUpstream residual (journal-ahead boot guard): NEARBuilders/everything-dev#805.