FeatureFuel
1

Migrating existing installations from a 2048-bit to a 4096-bit RSA JWT key

Source: dani-garcia/vaultwarden#8018 · opened by @szaimen
Vaultwarden signs its JWTs with rsa_key.pem, which is generated as RSA-2048. RSA-2048 is still secure today, but NIST plans to deprecate it after 2030 (SP 800-131A / IR 8547). I'm about to open a small PR that makes new installations generate a 4096-bit key. Before writing any code, I'd like to discuss whether and how existing installations could be migrated. Why simply replacing the key isn't enough Admins can already replace rsa_key.pem by hand, but an automatic migration would need to handle these: 1. All sessions would end. Refresh tokens are signed with this key and are valid for up to 90 days on mobile (MOBILE_REFRESH_VALIDITY), and 30 days otherwise. "Remember this device" 2FA tokens last up to 90 days (two_factor_remember_days). Invitation, emergency access, email verification and delete links would also stop working. 2. The prelogin KDF secret would change. PRELOGIN_KDF_KEY is derived from the bytes of rsa_key.pem, and it is used to give non-existe…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests