Somebody Else’s Safe
I am a tinkerer when it comes to computers. Expediency was the theme of a lot of my early explorations. I did things that were not what I would think of as best practices, like re-using the same password across multiple bulletin board systems. When one got breached, or a sysop got nosy, all of my accounts were vulnerable.
Years later, I had a really strong password that I used by default. But when that was swept up in a compromised service provider, I realized it is the same thing. It doesn’t matter how good your password is if someone else has it.
Then came the era of the forgotten password - make a good password for each site, service, and machine, which is fine for things I use a lot, but breaks down when it’s something I need a few times a year. Write it down? A notepad in my desk is more secure than a reused password for sure, and my threat model has generally not included the people in my house. But that also annoys me when I have to travel.
Enter the password manager. I’ve used a bunch of them. The general principle is that you have one very good password that encrypts a vault containin all of your other passwords. This lets you use a strong, unique password for every account without having to remember thousands of difficult secrets. I can default to a 20 to 30 character random string that is unique to each one. Security accomplished!
So long as you trust the password management company. Vulnerabilities happen to everyone. A store-now-decrypt-later theft of my vault would be catastrophic. All of those nice, juicy secrets in one place. So I have lately been using a self-hosted password manager shared over Tailscale. My threat model is once again reduced mostly to those people who are in my house.
A machine in my basement is running Vaultwarden, a self-hosted minimal BitWarden instance, along with a Tailscale sidecar, in my container management tool. I have the bitwarden client on my phone and my laptop, and things have been working generally well.
Tailscale allows me to keep my password vault synchronized across my devices without exposing them to the public internet, and the data is safely tucked away in a machine I control. The hard drive will lock if it’s powered down, and a master password is still required to reach it. The logistics are mostly sorted… mostly.
The Bootstrap Problem#
So what happens if my laptop and phone die?#
I don’t have the password for my identity provider memorized. I memorized the password management password, drive encryption passwords for my devices, and the account passwords for my regular infrastructure machines, and that’s about it. But my tailnet has a passkey user! I have a yubikey stashed away that can get me logged into Tailscale on any new device as a Tailscale passkey user. Once logged in there, I can access the vaultwarden web UI, and start putting things back together with only the passwords in my head, and the one thing I have.
What happens if my server dies?#
I tried that recently. I decided to move my server back to Debian from some other distro a few months ago, and decided to use that to test my disaster recovery flow. I back things up regularly to a set of external drives that I rotate through. Again, my threat model doesn’t include people inside my house in this case, but even if it did, the data is encrypted with a brain-password, so my worst case scenario of a dinner guest being a secret spy is about the same risk as using a SaaS service for this purpose.
I was able to restore vaultwarden, its database, and get it back on my tailnet very quickly once I had Debian and incus up and running. Also my photo backup which is in Immich was recovered in much the same way.
What happens if my house burns down?#
If I have my phone with me, I have the local copy of the database, and can recreate a new install manually from that. Also, I’ll have bigger problems. I hope my pets are okay.
Why?#
Because a person with enough money can now find a vulnerability in most software. And for something as sensitive to this, maybe I don’t want to put it on the internet for people to just keep trying to poke at it. I was pretty impressed with the blast-radius containment of the recent 1Password breach. and I do use that service for certain classes of workflow in my life. But these days, I want to limit how much I am exposed. Local storage, local serving, and private networking mean that if my password manager gets popped, it’s probably my fault. I can live with that.
If you’re interested in checking out Vaultwarden and Tailscale, some most excellent nerds have set up a Docker Compose file that does a lot of it automagically. You’ll need a tailnet, an auth key, and a place to run it, but you can find it as part of the ScaleTail project for self-hosted tools.
If you like to tinker, this is a pretty reasonable approach to the problem in my (humble) opinion. If you’re less of a tinkerer, Bitwarden or 1Password are the bare minimum to keep yourself from losing your digital identities with no warning - and with them, your photos, your credit, your emails, and everything else sitting on somebody else’s computer.