5 ms·
Vaultwarden: Unofficial Bitwarden compatible server written in Rust
- deleted 2y ago[deleted]
- tryfinally 2y agoI've been self-hosting this for years now, works flawlessly.
- johnflan 2y agoSame, its become invaluable for me. + I really enjoy this era of self-hosted tools.
- stavros 2y agoSame, although in the end I figured I'll give BitWarden my money, as it's more than cheap enough.
- westonmyers 2y agoMy own "justification" is that while self-hosted is my main personal store, I maintain a paid but empty account with Bitwarden. Said empty account on their servers is to be the emergency access person for family members' personal official vaults. So, they get some money for a license out of me, without the server usage.
- stavros 2y agoAh nice, that's a good solution.
- csomar 2y agoI subscribed for two reasons: 1. To support their efforts and 2. They accept Bitcoin (and of course I paid with Bitcoin although the whole payment processing was garbage).
- HeatrayEnjoyer 2y agoBitcoin really isn't that anonymous
- dewey 2y agoThe parent didn't say they use Bitcoin for that feature though?
- tracker1 2y agoSimilar here... I also trust them to maintain their service slightly better than I trust myself to do so. I like supporting the project in general as well.
- ErneX 2y agoSame, it’s been great honestly.
- lcof 2y agoSame here too for personal/family vaults. Have been using the bitwarden cloud offering in professional context too. vaultwarden, or bitwarden-rs as it used to be called, have been working flawlessly for years on my side, updates always work just as expected, and it supports a lot of organizational features too. But I felt like it was better to trust bitwarden’s cloud for professional stuff, just for the reliability.
- kivle 2y agoI did too, and liked it until it taught me a valuable lesson about self hosting things. I started using the project while it was still called bitwarden-rs. Apparently they were told to rename by Bitwarden (understandable). My setup was based on their Docker images, and thinking it was the safest option I had set up Watchtower to automatically update to the latest image nightly to get the latest security patches. But then I discovered that the bitwarden-rs image had not been updated for _months_ because of the rename. So basically I was hosting my whole password database in this, and I had suddenly lost security updates without realizing. Btw, I'm not blaming neither Vaultwarden or Bitwarden. But if you're going to self-host something this security critical, just be sure that you definitely monitor it _manually_ to make sure you're not on some unpatched vulnerable version some months down the line.
- MrOwen 2y agoI've seen watchtower burn so many people... Better to put everything in git and run your own renovate bot which will create PRs for you to review and also pull in the changelogs to the PR itself so you can check for breaking changes.
- OptionOfT 2y agoPlease be careful with Watchtower. Its update functionally can not (by design) separate your ENV settings and the ones from the new container. E.g. you deploy with DATABASE_URL=x This becomes DATABASE_URL=x PYTHON=3.0.0 You did not set the Python one, the image did via ENV. Now a new version comes out with PYTHON=3.1.0. Watchtower doesn't know which ENVs you set and which ones came from the container as docker inspect exposes them in the same way. So now Watchtower deploys the new version (which only has Python 3.1.0) with DATABASE_URL=x PYTHON=3.0.0. And stuff stops working. I use an ansible playbook which maintains the only ENV vars that need to survive an update.
- cloogshicer 2y agoI evaluated this for a small business but came to the conclusion that self hosting this security critical software would cost more in work hours for initial setup and maintenance than just paying the cloud fees for a few years. Genuine question, in what scenario is the self hosting setup and maintenance worth it?
- cdman 2y agoAnother reason for NOT self hosting: I want the passwords for my family to be available in the event something happens to me. The probability of Bitwarden being more resilient (at least mid-term) is much higher than any self hosting solution I would come up with.
- tjoff 2y agoThe passwords are still stored client side, they won't disappear. Your family won't be able to add new passwords, but they can export them at their leisure.
- HeatrayEnjoyer 2y agoIt's often not possible to open a vault until internet access is restored
- Macha 2y agoIn which client? There's no technical requirement for that to be so. I do find the Firefox browser extension sometimes logs me out (this is separate to the vault lock timer which just asks for a password, the extension basically resets to asking for a user ID)
- lern_too_spel 2y agoIf you've opened it once on a device and haven't logged out, the encrypted vault is still available on that device and can be unlocked and read. You just can't modify it. There were bugs in the browser extension that made it log out without the user asking it to, but those should be fixed.
- darthrupert 2y agoI have successfully used this for some time, but migrated away to just pass because synchronizing a pass "db" with syncthing tends to work much better.
- zikduruqe 2y agoPass, then syncing to a bare git repo inside your own network is the simplest way to go.
- darthrupert 2y agoGood point, using git with this would probably make more sense.
- teekert 2y agoI switched away from KeePassXC because I kept having sync issues with the DB :). Could have something to do with the way I work (always several PC on/active and my own NextCloud install with issues from time to time...). Vaultwarden never had any sync issues. I guess because changing one login will give you 2 versions of the entire database when a conflict occurs, for Vaultwarden, it's just that one credential, which hardly ever happens.
- mbirth 2y agoKeepassXC can sync changes between your opened database and the (modified) file on your storage. However, you need to make sure your sync tool doesn’t see conflicts and renames the file, i.e. don’t save the database on multiple systems at nearly the same time.
- teekert 2y agoOh that is nice, but NextCloud never made effective use of that. It's been a while but I also found the browser plugins and methods to use the DB on mobile platforms cumbersome. Idk, perhaps much has changed, I have been on Vaultwarden for years now, and more recently switched to Proton Pass. Both have excellent Web UIs, iOS/Android apps and browser plugins. Moreover, Vaultwarden and Proton Pass make using Passkeys and sharing credentials with org or family members trivial (arguably Proton Pass even more so than Vaultwarden).
- rkwasny 2y agoUnfortunatelly I had to move from Bitwarden after I realised it's sometimes impossible to unlock the password store without connection to server.
- k8sToGo 2y agoThat’s why I stayed with KeePass. I can easily restore a file from my backups, but in case of BW, I’d have to set up the whole server first.
- Mattwmaster58 2y agoThis does not appear to be true - just tried with the beta and regular Android app with wifi + data off, and was able to access my credentials just fine.
- rkwasny 2y agoI was using firefox extension
- jaimehrubiks 2y agoI have never experienced this issue in 5 years on my android devices
- watusername 2y agoWhy downvote a valid, relevant anecdote? I'm using the browser extension on Chrome and have encountered being booted back to the login screen a few times. And I certainly want to avoid dependency on my own infra when it holds credentials that would enable me to fix said infra.
- davidee 2y agoAfter being fed up with AgileBits' (1P's owner) shenanigans (hiding critical threads on their user forum, ignoring customer voices wilfully, being generally dismissive of criticism), I decided to give Bitwarden a try. I used it in conjunction with Vaultwarden for a year with the idea that I'd evaluate it as a family-wide replacement for 1P. In the end I went back to 1P. 1P does some things amazingly well. Here's the shortlist: - It loads quickly. This wasn't the reason I went back to 1P, but it loads an order of magnitude more quickly than any of Bitwarden's clients: Windows, Linux, iOS, Mac. Bitwarden is slow, slow, slow. I was willing to put up with it for freedom. I wanted Electron 1P to be awful. It's not. Electron Bitwarden kinda is... - The (I can't believe I'm saying this) killer feature: being able to sort passwords by date (or well - being able to sort at all). If you use a password manager long enough, you'll have a lot of passwords. Sometimes you need to find one manually. Bitwarden made this far more difficult than it needs to be. There's no way to sort the passwords. You have to use the (lackluster) search. - 1P can put your most recent passwords, secrets and make them easily accessible by default. Yep, more sorting issues. This is particularly helpful in my work related to software and infra development. There are often a lot of secrets, especially during spikes. It's nice to not have to hunt for them too much. - Shared vaults are better with 1P. Easy to move secrets, easy to de-dupe. Etc. etc. Everything about Bitwarden is fine for a single, technical user, but it's not for sharing secrets with non-technical family members at any scale. It's just too clumsy with too many sharp edges. I really, really wanted to leave 1P behind. But I came back to it. And I don't regret it.
- Mattwmaster58 2y ago> Bitwarden is slow, slow, slow Agreed. The good news is this is changing, they have native apps already in beta: https://bitwarden.com/blog/native-mobile-apps/ https://bitwarden.com/blog/native-mobile-apps/ I'm using the Android beta and can confirm it's much faster.
- stavros 2y agoAndroid beta link: https://play.google.com/store/apps/details?id=com.x8bit.bitwarden.beta https://play.google.com/store/apps/details?id=com.x8bit.bitw... Web Android beta link: https://play.google.com/apps/testing/com.x8bit.bitwarden.beta https://play.google.com/apps/testing/com.x8bit.bitwarden.bet...
- flatline-84 2y agoMy main issue with Vaultwarden is that there doesn't appear to be any way to migrate a Bitwarden self-hosted instance to it. I run a Bitwarden server for myself and something like 5-10 family & friends so manually migrating everyone's data is tough. I'd really love to try Vaultwarden as Bitwarden is pretty heavy on the little server it runs on
- stavros 2y agoIsn't it just exporting/importing the data for each account?
- spiffytech 2y agoBitwarden's Vault export will not include attachments. I think there's a third party tool that will dump everything.
- stavros 2y agoOh wow, that's inconvenient, even for backups (instead of migrations).
- cyrnel 2y agoWhen you all self-host this, you also do the following, right? - Create threat models that identify weaknesses in the design of your self-hosted setup. - Harden the OS with things like MAC, and harden the container with dropped privs, read-only root filesystem, and outbound network filtering. - Deploy an intrusion detection system to know if you've been compromised. - Perform all OS and app patching automatically, or regularly without fail. - Follow CVE feeds in case a zero day needs to be fixed before the next patch window. - Arrange for an expert to perform regular penetration tests. - Deploy a tool that detects and alerts on things like firewall misconfigurations. - Regularly test your backup and recovery methods, since if you also store 2FA codes and backup codes in there, you could be permanently locked out of your accounts.
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- patwoz 2y agoMy vaultwarden server is behind a vpn, so I just don't need any security measurements at all :)
- teekert 2y agoYeah, so nice to just have it on the tailnet as https://vaultwarden https://vaultwarden That said, I got a Proton family account and switched, in Proton Pass it is much more intuitive and easy to share with family (just say: share this folder with that fam member, read or read/write), since you don't need the whole "Organizations" layer needed in Bit/Vaultwarden (which also has it's ups, I know). Happy to report that Vaultwarden exported everything nicely to .json and importing into Proton Pass was flawless. I also find Proton Pass to be a bit more helpful in associating urls with credentials, + I now use the 1 alias per login (each credential set has a unique email address) without any effort, Vaultwarden can't do that (yet? Although seems complicated to implement), only (paid) Bitwarden I guess.
- 2y ago
- aborsy 2y agoVaultwarden is impressive. Years of work without issue. It supports Yubikey now. Eventually, I ended up using Pass though, since I prefer terminal. Pass doesn’t have any database to break: it’s just gpg and git. With Yubikey, every password needs a touch.
- chx 2y agoI moved from Pass to Bitwarden so https://github.com/chx/ykgodot https://github.com/chx/ykgodot is abandoned but you still might find it useful.
- gaws 2y agoHow do you handle password management on mobile?
- aborsy 2y agoFor sharing, I use diceware passphrases (with few words quickly typed in iOS keychain). With autocomplete it’s quick. There is a good mobile app for Pass though (I don’t use it). I try to separate the systems, and not to share as much as possible. Otherwise, Vaultwarden would quickly sync, and is reliable. Pass with Yubikey is more secure than other password managers in my opinion: You decrypt the password for a site and other passwords are not exposed. With other password managers, the whole vault has to be decrypted.
- Ferret7446 2y agoBitwarden has a CLI interface btw, and be careful of phishing since that is one of the main reasons to use a password manager.
- aborsy 2y agoYes, phishing is a concern, but is addressed by the same Yubikey. Most websites that matter support it. There is a CLI, but like KeepassXC I’m not sure it’s per password. All passwords seem to be encrypted with the same master key. Note that since the encryption is symmetric, for encryption you still need to expose the master key.
- zaggynl 2y agoHow does the Bitwarden client handle loss of connection to the Bitwarden or Vaultwarden server? Last I checked the local cache is gone after so many days, leaving you without your credentials. A combination of local password manager and a file sync service of your preference seems a good option as well.
- giancarlostoro 2y agoFun story, I booted up a Windows 8 tablet I had not touched for years. I looked at Firefox, and noticed my long lost LastPass, which I lost the vault for... I logged in offline, and wouldn't you know it, I was able to see all my (mostly useless by now) passwords, going back 10+ years.
- jerf 2y agoIf you care enough to run a personal Vaultwarden, you should care enough to back it up too. If you don't want to back it up, you probably shouldn't run it locally and just use the service. I'm somewhat less crazy-eyes about the importance of backing things up properly than some people on HN can get. A lot of personal content I can honestly just accept the risk of losing it. However, if there is an exception to that, your password vault is it. It is possible to get yourself into a situation where you are completely locked out of things and the more systems go to harder authentication that you can't even store in your head like TOTP and hardware tokens the easier it gets to be in a world where if you lose your vault you can't recover because you can't even log in to the email account you'd use to recover.
- alyandon 2y agoIf you care enough to run a personal Vaultwarden, you should care enough to back it up too. If you don't want to back it up, you probably shouldn't run it locally and just use the service. Exactly right. I have a script that briefly stops my Vaultwarden container and creates a .tgz of the contents of the data volume before restarting the container. The .tgz file gets copied off-site so I always have an accessible backup should my main host disappear.
- deleted 2y ago[deleted]
- moontear 2y agoSince Vaultwarden is gaining traction here, also check out this VERY active PR (including custom build/image) for adding SSO via OpenID Connect: https://github.com/dani-garcia/vaultwarden/pull/3899 https://github.com/dani-garcia/vaultwarden/pull/3899
- MrOwen 2y agoOne big caveat to this is that it is only used for authorization - you still need your master password to unlock the vault. Kinda pointless imo. There is a component called the key connector which can allow unlocking of the vault with sso but that key connector is not in the PR and it is unknown if vaultwarden will ever implement it.
- jauntywundrkind 2y agoYear long PR, whoooaaa. And not for long gaps of inactivity either! Wild. Seems like it's very close. The recent updates on the past couple of days sounds very positive, home-stretch & all that. What an effort!
- miki123211 2y agoIs there a good argument for actually using Rust for such things? I think Rust is a great language, but I think it shines in contexts where you'd previously have used C or C++. Web apps aren't really one of those contexts, unless they're microservices with extreme performance requirements, and this isn't the case here. Why would one choose to write something like this in Rust over easier-to-write languages like Go?
- super_flanker 2y ago> Is there a good argument for actually using Rust for such things? Can't speak for the author, but I'd choose Rust over Go/Java/Python for such projects for following reason: * Rust is a more pleasant language to work with, i.e. Sum type, pattern matching, and Drop trait closing resources/cancelling tasks. * Type system is much more robust than Go and Java, resulting in better quality code with less requirement of unit tests. * I don't care about performance much (for personal projects), but a free performance is always a win.
- jfyusldfwjasdf 2y ago> Rust over easier-to-write languages like Go? I think people already exposed to Hindley-Milner will find Rust far more tolerable and productive than Go.
- saephanch 2y ago[dead]