Repository navigation
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.