Update webauthn-rs to 0.5.x #43

Open
opened 2025-07-08 08:38:14 -04:00 by AtHeartEngineer · 0 comments

Originally created by @zUnixorn on 6/6/2025

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?

*Originally created by @zUnixorn on 6/6/2025* 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#43