NAS builds its own Vaultwarden, keeping the family passwords in your own hands

There's a green notebook in my home drawer, and I've kept the password up to the third book. The earliest one was my dad's handwriting: router backend, gas bill payment, video membership, one page per person. Later, the notebook was handed to my mom, and her way of memorizing passwords became even wilder: she used the same birthday in various ways—wjh1985, wjh@1985, 1985wjh—and if the website wanted special characters, she added an exclamation mark.
The month before last, I cleaned my mom's old computer and cleared all 37 passwords that had been lying in her browser for seven years. wrote a dedicated article about this. After clearing the problem, the question follows: passwords always need a place to put them. It's unrealistic to have the two of them memorize 16-digit random passwords. If I keep writing them in my notebook, I can't sleep at night. In the end, I set my sights on the Feiniu NAS at home—installing Vaultwarden, moving all the family passwords into my own machine.
What is Vaultwarden: Bitwarden's self-hosted server side
Let's clarify the names first. Bitwarden is an open-source foreign password manager. Its client is very well-made: browser extensions, mobile apps, and a web vault are all available, with basic features free. After your password is encrypted, it is stored on its cloud server. They have a good reputation, but no matter how reliable the cloud is, passwords are not as reliable as the NAS you have in your hands.
Vaultwarden is exactly what it does: a lightweight server written in Rust and compatible with the Bitwarden protocol. To put it plainly—the client still uses Bitwarden's official app and plugins, while the server is replaced with a small container running on your own NAS. For the client, it thinks it's still connected to Bitwarden, but in reality, the data hasn't even left the door—it's all on your NAS hard drive.
How light is this thing? When running the official image, it uses tens of MB of daily memory, which is even more economical than my Navidrome music container. My N100 mini PC already has six containers running around. Putting the seventh container inside, when I glanced at the top, there wasn't even a splash. By the way, the official cloud version's free version has a very high headcount for password sharing, and even three family members can't gather enough; Self-built ones don't have this restriction, which is one reason I chose to build my own.
Deployment takes half an hour: one container, one directory
If you've installed something in Docker, this is the simplest tier. Search for vaultwarden/server for the image, and the key parameters are three: port mapping (the container is 80; choose a non-conflicting one mapped to the NAS, such as 8222), directory mount (/data must be mapped; others can be omitted, but this one must not be lost), and the restart policy should be always. The relationship between port mapping and directory mounting has been discussed < a href="https://www.shunot.com/en/nas/829.html"> the article on Docker Introduction and about bridge networks, so it won't be repeated here.
After launching, click the NAS IP and port button in your browser, and you'll see a Bitwarden-style browser vault. First, register your own account. Note the first thing: add an environment variable DOMAIN to the container settings, and fill in the address you intend to use to access it. This variable does not affect login, but it manages the invitation links and attachment download links generated on the webpage. If not set, the link will point to the wrong path when sharing the organization later.
All your belongings are in the /data directory where you mount it: db.sqlite3 contains all the password records, attachments folder contains attachments, and there is a pair of rsa_key files. This means two things: backup means backing up this directory; Moving means copying out this directory. No metaphysics.
The biggest pitfall: the client only recognizes HTTPS
After installing it, I rushed to install browser extensions, opened 'Self-hosting' in the plugin settings, entered the server URL http://192.168.31.10:8222, clicked login—error reported, couldn't connect. The container is clearly alive, the web page is happily opening.
This isn't broken; it's browser extensions that force HTTPS. The encryption interface used in plugins is only provided by browsers in a secure context; HTTP pages are inaccessible. This is security design, not a bug. The difference between HTTP and HTTPS In that article, we talked about transmission encryption. For places like password databases, the browser solders the door shut for you, which is actually less of a concern.
HTTPS for intranet services—two paths. If you have your own domain, use the NAS's built-in reverse proxy: Synology creates rules in the Control Panel'→s Login Portal → Advanced → reverse proxy, select HTTPS as the source plus the domain, point the destination to the local 8222, sign the certificate with Let's Encrypt and bind it, and add the two WebSocket Upgrade headers in the custom header (plugin real-time sync relies on it). The new version of Vaultwarden has merged WebSocket into the main port, so there's no need to set up a separate 3012 like the old tutorial; copying tutorials from two or three years ago will result in a bunch of useless configurations.
If you don't have a domain name, you can attach a self-visa form to the container, and SSL_CERT_PATH environment variables can be SSL_KEY_PATH forward. The trade-off is that every device that needs to use plugins must first trust this certificate: double-click the computer to install the trusted storage, and the same goes for the phone. Three pieces of equipment means three trips. My approach is the former—since the domain name is already available, the router's DNS resolves the domain name to the internal IP address, the certificate is legitimate, the device is configured zero, and you use the same address when going out, which is worry-free.
How the whole family uses it: one account per person, sharing passwords through the organization
Family members should not share the same account. Bitwarden's design is one person per vault, with each person's password stored in their own vault, and the master password kept confidential. My mom's database only makes sense if she can't open it herself—it's all under my name, so it's not called a password vault, it's called a household registration book.
The passwords shared by the whole family, such as WiFi passwords, video memberships, broadband accounts, are used in the "organization" function. Create a family organization, put shared entries into the organization's collection, then send an email inviting family members to join. Each person's database now has a 'Family' group, so everyone can view the entries there. Change a section to 'Family Sync.' I created a separate "mom and dad" set for my mom, transferred all nine of her surviving passwords into one by one, and swapped them all with a generated 16-digit random password—all she had to do was remember a master password.
On the client side, install browser extensions on your home computer. When logging in, select 'Self-Hosting' and enter your own address; When installing the Bitwarden official app on your phone, it also points to your home in the settings. After that, the experience was similar to saving passwords in Chrome: as soon as the account and password box appeared on the webpage, the icon would automatically fill it in. The difference is that it crosses browsers and devices. My mom's old computer's Edge and my dad's phone browser both enter the same library.
Forgetting your primary password is hopeless: this is different from other accounts
Before using it, you must understand one thing: Vaultwarden does not have a "forget password" feature. Your library is encrypted with the master password, and the server only stores ciphertext. The zero-knowledge architecture means the server doesn't know your master password, so naturally it can't reset it for you. Once the master password is lost, all the passwords in the database turn into a pile of unsolvable garbled text—no miracle worker.
So the main password is the only one you really need to remember. Don't use birthdays, don't use duplicate ones from other websites, but you don't need to get 32 characters either—four or five words are linked into a spoken password, long enough, easy to remember, and resistant to brute-force cracking. My mom's main password is her catchphrase plus a year. She remembers it well, so I pretend I didn't see it.
In case people really forget, Vaultwarden has an "emergency access" feature: designate someone you trust (for example, I set my daughter-in-law as my emergency contact) and set a waiting period—seven days, thirty days. If you do submit an application there and the waiting period ends and you don't refuse, they can take over your database. If your family uses it for elderly people, this feature is worth considering. Additionally, the web vault has an export function, allowing you to export encrypted JSON files, print a master password and export location, and lock it in a physical cabinet—the cloud doesn't recover it, but paper files are actually the most time-efficient.
Backup and three red lines: the data directory is the entire safe
The password repository has become the lifeblood of the whole family, so backups can't be neglected. The good news is its structure is simple: it's just /data as a directory. The bad news is that db.sqlite3 is a database file being written. When the container is running, it is copied directly, which has a small chance of copying to the half-written state. open SSH and use sqlite3's .backup command to import a safe copy, then package the entire /data directory and throw it into the NAS's own backup task, following the 3-2-1 ruleLeave one for a location other than the NAS. My approach is to automatically export one copy to the cold spare drive every early morning. After all, a single SQLite file is at most a few MB, so I don't mind the space.
The last three red lines are rules I set for myself during the setup process, and I suggest you copy them as well:
| Why | do you do the red line | |
|---|---|---|
| Not forwarding the password database port to the public | passworddatabase is the favorite target of scanners across the internet. Database tampering scripts come to your door every | day. If you want to use it, use a VPN to get home. It's a tunnel |
| issue, no management panel opened | /admin can change users and configurations, which means | the safe's backdoor is not set ADMIN_TOKEN it is closed. Keep the |
| main password so that no auto-filled | master password is leaked by another website. The entire database | only exists in your mind and on that paper prompt |
When going out, you need to check your password, just use the mobile app—either < a href="https://www.shunot.com/en/lybk/978.html" > VPN home, or, like me, use FN Connect to connect to the internal network. Anyway, password databases aren't accessed that frequently, so being half a second slow doesn't matter—stability is the most important thing.
Here's a checklist at the end:
| In your case | ,I suggest |
|---|---|
| you find it hassle-free and passwords are few | ,just use Bitwarden's official free cloud version. The client experience is the same, zero deployment |
| NAS available, and all passwords are set up | at home with Vaultwarden. Data directory for daily backup, all in |
| family members share a bunch of membership accounts | + family organization, centralized management of shared entries. Whoever changes it syncs with the whole family |
| Elderly people can't remember random passwords | , a spoken master password + emergency access settings for you, and the rest is automatically filled in by plugins |
I've already put that green notebook away at the very bottom of the drawer. The third volume isn't finished yet, but there probably won't be a fourth.
