Bitwarden EOL Electron 39

Hey I just upgraded my system from 25.11 to 26.05.
The rebuild command was complaining that Bitwarden is using an EOL Electron version as a dependency.

I did as recommended by the command output and added the version to the allowed insecure packages.

But it did make me wonder either nobody in the community is using Bitwarden or everybody is permitting this EOL package.

I am not all that familiar with the entire package development side of nix. So i was wondering what could be done about this. If it is just a few line changes or a massive undertaking.

Kind regards to any kind strangers listening to my crazy ramblings

It is indeed locked to v39 in the current release

but bumping bitwarden-desktop can move it to v41

PR welcome :slight_smile:

Optionally you can file an update request and ping the maintainers

bitwarden-desktop is affected but I think most people are using the browser extension.
It took a while to get bitwarden themselves to update to the newest electron, see [PM-34331] Update electron to 41 by dani-garcia · Pull Request #20448 · bitwarden/clients · GitHub. Then we have to wait for them to make a release, then we can bump it on our end in nixpkgs.

I find the usual Electron hate tiring and see the value it brings, but NixOS maintenance has opened my eyes to how ridiculously bad open and closed source devs are at keeping Electron up-to-date. Obsidian, feishin, bitwarden desktop - the list goes on.

I’m not trying to shame these people, but if upgrading is a big enough effort for them to avoid it, that in itself seems like a big downside of Electron.

Oh and to answer OP: Either I accept the insecure packages in situation like this, or I just move to the flatpak (via GitHub - gmodena/nix-flatpak: Install flatpaks declaratively · GitHub).

Doesn’t solve the underlying issue but for the very few programs I use that have this problem, it’s the path of least friction.

Bitwarden Desktop specifically is, as has been said already, not something that I think many people find very useful. I’m a long time Bitwarden user and removed it without feeling I lost anything.

What do you use it for?

3 Likes

There is an open issue about this: bitwarden-desktop depends on EOL electron · Issue #526914 · NixOS/nixpkgs · GitHub.

Workarounds mentioned there:

  1. Updating permittedInsecurePackages to allow using EOL Electron (accepting the risk).
  2. Optionally, adding an overlay e.g. bitwarden-desktop = prev.bitwarden-desktop.override { electron_39 = final.electron_39-bin; }; to avoid having to build Electron from source.

While I’m waiting for bitwarden to update to 41 or whatever, I just use the web interface from a self-hosted vaultwarden instance.

1 Like