Repository navigation
Move to @samebase/identity-broker 0.37.0 - #40
Merged
Merged
Conversation
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.
What changes for the operator
@samebase/identity-broker(0.37.0, Effect):convexHubwithhubSettingsand the GitHub registration layer, which mounts the moderation API.HUB_OWNERS,ISSUER,HUB_NAME,HUB_TERMS_URL,HUB_PRIVACY_URL, the four client values,IDENTITY_HUB_MODERATION_KEY, andAPPS_PAUSED, where onlytruepauses.IDENTITY_BROKER_KEYSformat.pnpm run keys:initnow makes a key set without the removedidentity-broker keyscommand.scripts/check-keys.tsis gone: a push already fails whileIDENTITY_BROKER_KEYSis missing, becauseconvex/convex.config.tsdeclares it required.Parity gaps
npx convex runadmin functionslistApps,listClients,deleteClientanddeleteAppare gone. The moderation API lists clients (GET /moderation/clients, also by owner) and deletes one (DELETE /moderation/clients/<client id>). Nothing lists or deletes a whole app.Component name
The component is mounted as
identityHub, because 0.34.0's rows underidentityBrokerdo not fit the new schema; the first push unmountsidentityBrokerand keeps its rows in the deployment, where a push of 0.34.0 finds them again and the Convex dashboard can delete them.Checks
pnpm run check: pass (format, lint, typecheck, 11 tests)./moderation/countsanswers 401 withWWW-Authenticate: Bearer realm="moderation"without a token and 200 with the key; withAPPS_PAUSED=truea registration answers 403 "Registration is paused.", with1or unset it is created.main(0.34.0) and held a block: this branch pushed ("Unmounted component identityBroker.", "Installed component identityHub."), discovery answered 200, and the block stayed readable underidentityBroker; a push ofmainagain ("Remounted component identityBroker.") answered with the old block.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.