Repository navigation
Releases
3.2.0
Account self-service (email change, data export, deletion), breached password screening, and a slimmer API image with a separate migration image.
Added
- Email address change confirmed by a code sent to the new address (
POST /users/me/emailand/users/me/email/confirm); the old address is notified. - Account deletion (
DELETE /users/me, with re-authentication) and data export (GET /users/me/export). - Separate
migrateDocker target for the release step; the API image only contains what the server loads (on amd64, about 350 MB instead of 730 MB, and no Prisma CLI). - Breached password screening with Have I Been Pwned (k-anonymity) for signup, reset and change. Fails open;
PASSWORD_BREACH_CHECK=falseturns it off.
3.1.0
OpenID Connect provider: other applications can now sign their users in through this service.
Added
- OpenID Connect provider: authorization code flow with PKCE, refresh tokens, ID tokens signed with the ES256 keys, userinfo and discovery. Headless: the front end's login page (
OIDC_LOGIN_URL) completes authorization requests. Admin endpoints to register clients (/oauth-clients). New settingsOIDC_ISSUERandOIDC_LOGIN_URL; runyarn db:deployfor the new tables.
3.0.0
Passkeys, a transactional outbox, ES256 access tokens with a public JWKS, an account activity log with security alerts, OpenTelemetry, security automation in CI, and design documents (architecture, ADRs, threat model).
Breaking changes
- Access tokens are signed with ES256 instead of HS256.
JWT_SECRETis no longer used and can be removed. Access tokens issued before the upgrade stop working; clients get a new one throughPOST /auth/refresh-token(refresh tokens are unaffected).
Added
-
OpenTelemetry: traces for HTTP, Express, Prisma and SQL, business metrics, trace ids in logs; enabled with
OTEL_EXPORTER_OTLP_ENDPOINT.compose.observability.yamladds a Grafana stack. -
Account activity log (
GET /users/me/activity, andGET /users/:userId/activityfor admins) recording security-relevant changes, plus email alerts for sign-ins from a new browser/OS, account lockouts, refresh token reuse and recovery code use. New settingSECURITY_EVENT_RETENTION_DAYS. -
Security automation: CodeQL, a container build that is smoke tested and scanned with Trivy (with an SBOM), dependency review on pull requests. The runtime image no longer contains npm or yarn.
-
ES256 signing keys stored encrypted in the database, rotated automatically (
SIGNING_KEY_ROTATION_DAYS), and published at/.well-known/jwks.jsonso other services can verify access tokens. -
Passkeys (WebAuthn): usernameless passwordless sign-in, registration and management (list, rename, remove). New settings
WEBAUTHN_RP_IDandWEBAUTHN_ORIGINS. -
Transactional outbox: emails and security notices are written as jobs in the same database transaction as the change that triggers them, then delivered by a worker with retries and exponential backoff. The worker runs inside the API (
OUTBOX_WORKER_ENABLED) or separately (node dist/scripts/worker.js). -
Community files: code of conduct, security policy with private vulnerability reporting, support guide, issue forms and a detailed contributing guide.
Changed
- Run
yarn db:deployfor the newOutboxMessage,Passkey,WebAuthnChallenge,SigningKeyandSecurityEventtables. forgot-passwordandresend-verificationnow enqueue a job instead of sending directly.