Repository navigation
chore: update version and changelog - #605
Open
github-actions[bot] wants to merge 1 commit into
Open
github-actions[bot] wants to merge 1 commit into
github-actions[bot] wants to merge 1 commit into
Conversation
github-actions
Bot
force-pushed
the
changeset-release/main
branch
3 times, most recently
from
November 23, 2026 04:42
b5f776c to
1409d69
Compare
github-actions
Bot
force-pushed
the
changeset-release/main
branch
from
November 23, 2026 04:44
1409d69 to
d846228
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
seamless-auth-api@0.24.0
Minor Changes
e2bd56e: The audit chain head is protected and can be signed (fix(audit): protect the chain head and key it so a truncated tail cannot verify #595).
auth_event_chain_headthat refuses INSERT, DELETE and TRUNCATE, and any change toseqorlast_hashoutside theauth_eventsinsert trigger, which now runs as SECURITY DEFINER. A role that deletes the newest audit events can no longer move the head back to hide it, soGET /admin/auth-events/integrityreports the loss ashead_mismatch.AUDIT_CHAIN_KEY. When set, every audit insert signs the new head with an HMAC under it, and the integrity check fails a head whose signature is missing (head_unsigned, a newreason) or does not verify (head_mismatch). Set it on every instance. The migration signs the head when the key is set while it runs. Otherwise sign it once withnode dist/scripts/sealAuditHead.js, and again after rotating the key. Production warns at boot while it is unset.headSigned.docs/security-posture.mdnow recommends revoking writes onauth_event_chain_headas well, and notes that the retention setting is open to any session, so the DELETE privilege is the control.edb274f: Magic links now need a code from the link fragment to sign in, and a requested
redirectUrimust match exactly (fix(magic-link): pin the landing path by default and bind confirm to a user action #594).Breaking, in two places:
redirectUrionPOST /magic-linkis no longer accepted on its origin alone. Withmagic_link_redirect_urisempty, the only accepted value is the/verify-magiclinkpage onfrontend_urlor a configured origin, spelled exactly with no query. Any other path, such as a mobile landing page, has to be listed inmagic_link_redirect_uris....?token=<token>#code=<code>.GET /magic-link/verify/:tokenno longer consumes the link, even on the device that requested it: it always answers409 confirmation_required, with a newsameDeviceboolean.POST /magic-link/verify/:token/confirmnow requires a JSON body{ "code": "<code>" }and answers400without it. A wrong code spends the link. Links mailed before the upgrade carry no code and can no longer be completed, so a user with one in flight requests another.Clients need to read
codefrom the fragment, confirm with it, and confirm without asking whensameDeviceis true. Release a client that does this before upgrading the API: it keeps working against older API versions, which ignore the body. A caller using external delivery that builds its own URL fromdelivery.tokenhas to switch todelivery.magicLinkUrl, which carries the code.Run the database migrations: this adds
magic_link_tokens.code_hash.a335f78: Refresh rotation fixes:
DELETE /sessions/:idandDELETE /admin/sessions/by-id/:idrevoke the whole chain from the row given, so a session that rotated after it was listed is revoked at its head instead of surviving while the API answers 200 (fix(sessions): revoke the head of the rotation chain, not the row the caller saw #592).401 invalid_refresh_tokenonce the rotated row's idle window had passed, without revoking the chain. It is now401 refresh_token_reusedand the chain is revoked (fix(sessions): detect refresh token reuse after the rotated row's idle window #593).REFRESH_REPLAY_WINDOW_SECONDS(default 5, at most 60,0disables) after a rotation, the rotated token is answered with the same successor, up to three times, so two adapter instances refreshing at once no longer sign the user out. The response shape is unchanged. Only the immediate predecessor of a live head qualifies. The successor token is stored encrypted on the rotated row and cleared when the window lapses or the chain is revoked.Adds a migration for the
rotatedAt,replayTokenCiphertextandreplayCountsession columns.45530a8: With
NODE_ENV=production, the server now refuses to start whenSEAMLESS_SERVICE_TOKEN(or the fallbackAPI_SERVICE_TOKEN) is shorter than 32 bytes or is a published default or placeholder value, such aslocal-development-service-token-not-for-deploymentfromdocker-compose.ymlorGRAB_FROM_SEAMLESS_AUTH_PORTAL_DEVfrom the templates (fix(config): refuse weak or default SEAMLESS_SERVICE_TOKEN values in production #599). The token is the key that signs service tokens, so a guessable value lets anyone call the API as a trusted adapter.validateEnvs.shapplies the same check before migrations run, andsrc/config/serviceToken.tsapplies it at boot.This is a breaking change for a production deployment that kept one of those values. Before upgrading, set a new token with
openssl rand -base64 48on the API and on every server adapter that calls it. Development and test runs are unchanged.Patch Changes
seqandhashin the structured data elementseamless@67592, under the Fells Code IANA Private Enterprise Number 67592. Key collector parsing rules on that SD-ID.system_configchange now takes effect on every instance within about a second, not only on the instance that took the write (fix(config): invalidate the system config cache on every instance #597). Each instance used to cache config for five minutes, so disabling a login method, removing an OAuth provider or turning onphishing_resistant_onlycould stay ineffective on the other replicas for that long. Each instance now compares a hash of the stored rows with its cached copy at most once a second and reloads when they differ. Direct database edits are picked up the same way. If that check cannot reach the database, the config read fails instead of serving a copy it cannot show is current.