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.
Comments
Similar requests
Improve RSA key file generation and reads
1 vote · 0 comments
Error decoding JWT
1 vote · 0 comments
Minimal support for external SSO-based keys
1 vote · 0 comments
Proposal: implement Bitwarden's Web Push device registration (`web-push-auth`) so third-party clients can get push without the relay
1 vote · 0 comments
Include S3 (OpenDAL) file storage in official Docker images, or publish an s3 variant tag
1 vote · 0 comments
No comments yet.