Skip to content

Move to @samebase/identity-broker 0.37.0 - #40

Merged
nicu-chiciuc merged 2 commits into
mainfrom
hub-0.37.0
Nov 22, 2026
Merged

nicu-chiciuc merged 2 commits into
mainfrom
hub-0.37.0

Conversation

@nicu-chiciuc

@nicu-chiciuc nicu-chiciuc commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What changes for the operator

  • The hub runs on the new implementation of @samebase/identity-broker (0.37.0, Effect): convexHub with hubSettings and the GitHub registration layer, which mounts the moderation API.
  • The settings stay the same deployment variables: HUB_OWNERS, ISSUER, HUB_NAME, HUB_TERMS_URL, HUB_PRIVACY_URL, the four client values, IDENTITY_HUB_MODERATION_KEY, and APPS_PAUSED, where only true pauses.
  • The key set that the hub holds today stays valid: 0.37.0 reads the same IDENTITY_BROKER_KEYS format. pnpm run keys:init now makes a key set without the removed identity-broker keys command.
  • scripts/check-keys.ts is gone: a push already fails while IDENTITY_BROKER_KEYS is missing, because convex/convex.config.ts declares it required.
  • 0.37.0 keeps none of 0.34.0's data, so every client registers again on its next deploy, and blocks, sign-in page exemptions and connector grants set through the moderation API must be set again.

Parity gaps

  • The npx convex run admin functions listApps, listClients, deleteClient and deleteApp are 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 under identityBroker do not fit the new schema; the first push unmounts identityBroker and 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).
  • On a local anonymous Convex deployment: discovery answers 200 with the issuer; /moderation/counts answers 401 with WWW-Authenticate: Bearer realm="moderation" without a token and 200 with the key; with APPS_PAUSED=true a registration answers 403 "Registration is paused.", with 1 or unset it is created.
  • On a local anonymous Convex deployment that ran 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 under identityBroker; a push of main again ("Remounted component identityBroker.") answered with the old block.

Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@nicu-chiciuc
nicu-chiciuc merged commit 896c7ee into main Nov 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant