Skip to content

v10.0.0

Latest

Choose a tag to compare

@zigazajc007 zigazajc007 released this 01 Dec 12:50

Passky Server 10.0.0

Passky Server 10 adds a new REST API, end-to-end encrypted password sharing and security keys for the new Passky clients. The legacy API is unchanged, so existing Passky clients keep working without an update.

Upgrading

Back up your database first, then run the usual commands:

docker compose pull
docker compose down
docker compose up -d

Passky Server updates the database on startup. It only adds new tables and columns, so existing accounts keep working and Passky Server 9 still runs on the upgraded database. With MySQL, MariaDB or PostgreSQL, the database user needs permission to create and alter tables.

To use security keys, set WEBAUTHN_RP_ID in your .env. If you use your own docker-compose.yml, also add WEBAUTHN_RP_ID, WEBAUTHN_RP_NAME and WEBAUTHN_ORIGINS to its environment list.

Read the upgrade guide before upgrading. To stay on the previous version for now, use the image rabbitcompany/passky-server:9.0.0.

Highlights

  • A REST API at /api/v1, described in the API documentation and as OpenAPI at /api/v1/openapi.json. The legacy ?action= API keeps working next to it.
  • End-to-end encrypted password sharing. People verify each other with a contact code, folder keys are protected with X25519 and ML-KEM-768, and the folder owner signs who may read and edit.
  • Security keys and passkeys (WebAuthn) as a second factor.
  • New item types: SSH keys, PGP keys, secure notes and payment cards, plus folders, favorites and two factor secrets for every item.
  • The administrator interface shows which accounts use the new key derivation, the second factors of each account and sharing statistics.

New features

  • Change the master password and move accounts to Argon2id key derivation from the new clients. The legacy API gains getKdf and changeMasterPassword for the same.
  • Ten backup codes like 4k7m-9qx2-h3vd when the first second factor is set up. Each code works once.
  • Every item records when it was created, changed and when its password last changed. Imports keep the dates from other password managers.
  • Batch changes and imports are applied completely or not at all.
  • Sessions end after 30 minutes without requests and after 12 hours at most, and users can sign out on every device.
  • The legacy API accepts folder, favorite, otp, kind and data when saving, editing and importing passwords. Old clients that edit an item keep its new fields.
  • WEBAUTHN_RP_ID, WEBAUTHN_RP_NAME and WEBAUTHN_ORIGINS settings for security keys.
  • LIMITER_GET_KDF and LIMITER_CHANGE_MASTER_PASSWORD settings for the new legacy actions.
  • The administrator can remove every second factor of an account, including security keys, to help users who are locked out.

Security

  • Authenticator and backup codes work once, even when two requests arrive at the same time.
  • After 10 wrong second factors within an hour, the account answers error 429 for the rest of that hour, on both APIs. The password step is not affected.
  • Unknown usernames get stable key derivation parameters that look like those of a real account, so the API does not reveal which accounts exist.
  • Two registrations at the same time can no longer pass the account limit or take the same username.
  • The REST API has its own rate limits for sign in, account creation, username reminders and account changes.
  • The administrator interface shows how many backup codes an account has left instead of the codes themselves.

Behavior changes

  • Accounts that use a security key as their only second factor can not sign in with legacy clients, because those clients do not support security keys.
  • Disabling 2FA in the administrator interface now also removes security keys.

Under the hood

  • Runs on Bun 1.4.5 and is checked with TypeScript 7.
  • Updated dependencies.