Repository navigation
Feature request: fips mode #7976
Replies: 1 comment
|
This is not as easy as it looks like, there is a lot more which comes to play for this. Then, we can probably also only support SQLite for this, any other database we can not ensure compatibility with openssl-sys fips (which uses aws-lc-fips) with the mysqlclient-sys and pq-sys crates and that could be an issue too. And, we can also only support x86_64/amd64 and aarch64/arm64 architectures, as those are the only supported AWS-LC architectures. Any 32bit like armv6 and armv7 will be out of the question. Also the supported base OS will then probably only be Debian, as the musl builds also does not have FIPS supported libraries available. I'm also reluctant to provide a default image for this. I have not fully verified my quick findings, but it is not as easy to ensure that all is regulated as the FIPS guidelines demand it to be. And we have enough to do already besides supporting weaker encryption options and make all those if/else/feature options. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Feature Request: Optional FIPS Mode for Server-Side Cryptography
Summary
Add an optional FIPS mode that forces Vaultwarden to use only FIPS-approved algorithms and a FIPS-validated cryptographic module for all server-side cryptographic operations.
Motivation
Some organizations (U.S. federal agencies, defense contractors, healthcare, finance, and other regulated environments) are required to use FIPS 140-2/140-3 validated cryptographic modules when cryptography is used.
Vaultwarden currently has no FIPS mode. Its server-side crypto relies on
ring, theargon2crate, and OpenSSL/rustls. Argon2 is not a FIPS-approved algorithm, and none of the current libraries are FIPS-validated modules. This prevents adoption in environments with strict FIPS requirements, even when the host OS is running in FIPS mode.Bitwarden has been advancing in this area and has obtained FIPS 140-3 validation for its Cryptographic Module (used in their Government Cloud offering, with FIPS mode enabled by default for server-side operations). Adding a comparable optional FIPS mode to Vaultwarden would allow self-hosted deployments to move in a similar direction and better support regulated environments.
Proposed Behavior
When a new configuration option (e.g.
FIPS_MODE=true) is enabled:Suggested Implementation Approach
ringwith a FIPS-capable provider (e.g. wolfCrypt via a ring-compatible wrapper, FIPS OpenSSL, or BoringCrypto).ADMIN_TOKENand any other server-side hashing).Scope / Alignment with Bitwarden’s Direction
This request is focused on server-side cryptography performed by Vaultwarden, consistent with how Bitwarden has approached FIPS validation for its own Cryptographic Module.
Vaultwarden remains a zero-knowledge server: vault item encryption continues to occur in the official Bitwarden clients. As Bitwarden further develops FIPS support across its platform (including any future client-side capabilities), a server-side FIPS mode in Vaultwarden would position self-hosted deployments to benefit from and stay aligned with that direction. The goal is to give operators the ability to run Vaultwarden’s own cryptographic operations in a FIPS-approved mode, supporting the same compliance trajectory Bitwarden is pursuing.
Additional Notes
Official Bitwarden’s FIPS 140-3 validated module demonstrates the value of this capability for regulated use cases. Providing an optional equivalent for Vaultwarden’s server-side crypto would improve suitability for self-hosted deployments that want to follow a similar path.
Acceptance Criteria
FIPS_MODE(or equivalent) configuration optionAll reactions