Skip to content

chore: update version and changelog - #605

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

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).

    • A new migration adds a trigger to auth_event_chain_head that refuses INSERT, DELETE and TRUNCATE, and any change to seq or last_hash outside the auth_events insert 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, so GET /admin/auth-events/integrity reports the loss as head_mismatch.
    • New optional 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 new reason) 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 with node dist/scripts/sealAuditHead.js, and again after rotating the key. Production warns at boot while it is unset.
    • The integrity report gains headSigned.
    • docs/security-posture.md now recommends revoking writes on auth_event_chain_head as 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 redirectUri must match exactly (fix(magic-link): pin the landing path by default and bind confirm to a user action #594).

    Breaking, in two places:

    • redirectUri on POST /magic-link is no longer accepted on its origin alone. With magic_link_redirect_uris empty, the only accepted value is the /verify-magiclink page on frontend_url or a configured origin, spelled exactly with no query. Any other path, such as a mobile landing page, has to be listed in magic_link_redirect_uris.
    • The link is now ...?token=<token>#code=<code>. GET /magic-link/verify/:token no longer consumes the link, even on the device that requested it: it always answers 409 confirmation_required, with a new sameDevice boolean. POST /magic-link/verify/:token/confirm now requires a JSON body { "code": "<code>" } and answers 400 without 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 code from the fragment, confirm with it, and confirm without asking when sameDevice is 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 from delivery.token has to switch to delivery.magicLinkUrl, which carries the code.

    Run the database migrations: this adds magic_link_tokens.code_hash.

  • a335f78: Refresh rotation fixes:

    Adds a migration for the rotatedAt, replayTokenCiphertext and replayCount session columns.

  • 45530a8: With NODE_ENV=production, the server now refuses to start when SEAMLESS_SERVICE_TOKEN (or the fallback API_SERVICE_TOKEN) is shorter than 32 bytes or is a published default or placeholder value, such as local-development-service-token-not-for-deployment from docker-compose.yml or GRAB_FROM_SEAMLESS_AUTH_PORTAL_DEV from 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.sh applies the same check before migrations run, and src/config/serviceToken.ts applies 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 48 on the API and on every server adapter that calls it. Development and test runs are unchanged.

Patch Changes

  • 5902e00: Syslog audit sinks are available (Ship syslog audit sinks in 0.23.1 with the Fells Code IANA enterprise number #586). Creating or updating a syslog sink no longer returns a 400. Records go over RFC 5424 on TLS with octet counting, and carry seq and hash in the structured data element seamless@67592, under the Fells Code IANA Private Enterprise Number 67592. Key collector parsing rules on that SD-ID.
  • cc2a474: A system_config change 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 on phishing_resistant_only could 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.

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 3 times, most recently from b5f776c to 1409d69 Compare November 23, 2026 04:42
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 1409d69 to d846228 Compare November 23, 2026 04:44
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.

0 participants