mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 01:12:27 -05:00
[PR #5934] [MERGED] Update webauthn-rs to 0.5.x #8628
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/5934
Author: @zUnixorn
Created: 6/6/2025
Status: ✅ Merged
Merged: 8/8/2025
Merged by: @dani-garcia
Base:
main← Head:update_webauthn_rs📝 Commits (10+)
d91d74eupdate webauthn to 0.5f2593a8add basic migration implb4cc006fix clippy warningsa7bc501clear upCOSEKeyType::EC_OKPcase82f3de2fix TODOs2ec66abuse same timeout as in webauthn 0.3 implbe39c6afix: clippy warnings and formatting562b23fUpdate Cargo.tomla1e78a5Update src/api/core/two_factor/webauthn.rs7ab565aUpdate src/api/core/two_factor/webauthn.rs📊 Changes
7 files changed (+346 additions, -105 deletions)
View changed files
📝
Cargo.lock(+158 -14)📝
Cargo.toml(+6 -1)📝
src/api/core/two_factor/webauthn.rs(+96 -72)📝
src/api/identity.rs(+16 -8)📝
src/db/models/two_factor.rs(+66 -9)📝
src/error.rs(+1 -1)📝
src/main.rs(+3 -0)📄 Description
Hello,
since there was a discussion in #5929 about upgrading webauthn-rs first, I tried to do this in this PR.
I tested it a few times and didn't have any problems on my machine. It also converts from the old webauthn credential to the new webauthn passkey. Currently this is done by trying to deserialize into the old credential, but this could also be checked via a new field in the DB or some other way.
Since I didn't remove the U2F migration for now, I could also test if that still works in combination with the new migration. Because U2F was used a long time ago, what version could I use, that uses U2F, to create the credentials, before updating to this branch for testing the migration?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.