Add passkey support to Vaultwarden #229

Closed
opened 2025-07-08 08:43:36 -04:00 by AtHeartEngineer · 0 comments

Originally created by @p4rzl on 1/28/2025

Add support for saving and using passkeys, and importing them via .json.

  • src/api/core/ciphers.rs

    • Add Passkey type to CipherData struct.
    • Update update_cipher_from_data function to handle passkeys.
    • Modify post_ciphers_import function to import passkeys.
  • src/db/models/cipher.rs

    • Add Passkey type to Cipher struct.
    • Update type_data_json handling to include passkeys.
    • Add validation for passkey entries.
  • Database Migrations

    • Add SQL statements to add passkey fields to MySQL, PostgreSQL, and SQLite schemas.
  • src/api/admin.rs

    • Add endpoints for managing passkeys: get_passkeys, get_passkey, create_passkey, update_passkey, delete_passkey.
*Originally created by @p4rzl on 1/28/2025* Add support for saving and using passkeys, and importing them via .json. * **src/api/core/ciphers.rs** - Add `Passkey` type to `CipherData` struct. - Update `update_cipher_from_data` function to handle passkeys. - Modify `post_ciphers_import` function to import passkeys. * **src/db/models/cipher.rs** - Add `Passkey` type to `Cipher` struct. - Update `type_data_json` handling to include passkeys. - Add validation for passkey entries. * **Database Migrations** - Add SQL statements to add passkey fields to MySQL, PostgreSQL, and SQLite schemas. * **src/api/admin.rs** - Add endpoints for managing passkeys: `get_passkeys`, `get_passkey`, `create_passkey`, `update_passkey`, `delete_passkey`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#229