Skip to content

Passwords do not belong in someone else's hands

· security, network, technology

Running Vaultwarden yourself — and what the 1Password breach shows about vaults, keys and phishing.

A password manager is the place where all the other secrets live. Whoever hands it over hands over the key to everything hanging on it.

On 25 November 2026, 1Password disclosed that attackers had got into its own server systems and copied data belonging to a subset of its customers. The vaults stayed shut — why, further down.

The rest of the year was unsettled too. In July 2026, AI agents left their sealed test environment and attacked the Hugging Face platform — California’s attorney general counts almost 18,000 attack actions in his lawsuit against OpenAI (tagesschau, 17 November 2026). And even big houses make mistakes: at GitHub, in March 2026, a single git push could have run code on the server; researchers from Wiz reported the flaw and GitHub closed it within two hours (GitHub blog, Security Affairs). Both companies reacted quickly. Whoever keeps the keyring themselves does not have to rely on a foreign service staying as it is today.

Self-hosting therefore means independence first: the data lies where I put it, I decide about version and price, and nobody can switch the service off for me. Anyone serious about it keeps two small servers that can relieve each other. The rest is craft: a small server, a certificate, a backup you can actually open again.

The 1Password case

On 19 November 2026, 1Password began investigating how someone had gained access to an employee’s corporate GitHub account. From there the attacker reached source code and pushed code into the company’s own backend services; those services then downloaded administrative customer data. On 25 November the vendor described the incident (1Password; derStandard, 26 November 2026).

What was copied: names and email addresses for a subset of accounts, account and user identifiers, the time of account creation and of the last sign-in, public keys, parameters of the login protocol (SRP), tokens from invitation, provisioning and recovery emails, and non-secret metadata. What was not affected, according to the vendor: the vaults and their contents, the keys that protect them, the account recovery keys and the apps.

That the vaults stayed intact is down to the design: 1Password stores neither the master password nor the Secret Key. Encryption happens on the device; the server only sees data it cannot open.

The damage lies elsewhere. Anyone who knows a name, an address and the time of the last sign-in can write a convincing email. Add the tokens from invitation and recovery emails: on their own they do not open an account — they also need an SSO sign-in or a code sent to the registered address — but they make an attempt more credible. 1Password therefore lengthened the codes in such emails from six digits to ten characters, and advises suspicion when someone asks for the password or the Secret Key. The vendor never asks for them; both belong only in the app or on the page you opened yourself.

What remains open is how the GitHub account could be reached; 1Password has announced an investigation of the cause. The vendor names no number of affected customers.

So what does that mean for choosing the tool? Not that a foreign service is insecure and your own is secure. My server can be misconfigured too, and a flaw in Vaultwarden would be a flaw in my installation. The difference is another one: when someone breaks into my setup, I see the attempts in my logs, and what is there to take is what I put there myself. With a provider, I learn about it when the provider tells me.

Why your own server

With a cloud service the keyring sits in someone else’s house. You have to trust the provider: the software, the operation, the pricing, and what happens when the vendor changes the product.

Self-hosting gains you:

  • Control over version, updates and data.
  • No subscription, no feature limits, no forced cloud.
  • The data stays where I put it — and so does the backup.

It will not mean less work. A self-hosted service wants looking after, otherwise it becomes a risk instead of a protection. If you do not want that, a good cloud subscription is the better choice.

What Vaultwarden is

Vaultwarden is a server written in Rust that implements the Bitwarden API. The official Bitwarden clients — browser extension, desktop app, phone — talk to it as if it were Bitwarden.

  • Storage: SQLite, a single file. No database server, no container theatre.
  • Footprint: the image is small; the smallest IONOS plan — VPS S+ with 2 GB RAM for 5 € a month — is more than enough.
  • Version: 1.37.5 from 1 November 2026 (source: releases).
  • Licence: AGPL, the source is open.

Important: Vaultwarden is not Bitwarden. It is a compatible implementation. Whoever needs support and warranty is better off with the original.

The setup

A server with Debian or Ubuntu, a domain pointing to it, Docker — that is it. Three files, one command.

First: the service.

# /opt/vaultwarden/docker-compose.yml
services:
  vaultwarden:
    image: vaultwarden/server:1.37.5
    restart: unless-stopped
    environment:
      DOMAIN: "https://vault.example.com"
      SIGNUPS_ALLOWED: "false"
      ADMIN_TOKEN: "${ADMIN_TOKEN}"
    volumes:
      - ./data:/data
    networks:
      - web

  caddy:
    image: caddy:2
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile:ro
      - caddy_data:/data
    networks:
      - web

networks:
  web:
volumes:
  caddy_data:

Second: the certificate. Caddy fetches it itself, in two lines:

# /opt/vaultwarden/Caddyfile
vault.example.com {
    reverse_proxy vaultwarden:80
}

Third: the admin token. It lives in a .env next to the compose file, not in the repository:

ADMIN_TOKEN=<output of: openssl rand -base64 32>

How long must it be? Twelve characters are the lower bound, not the goal. Twelve characters from letters and digits give about 71 bits. Against an attacker with one trillion guesses per second that holds for about 37 years on average; against one with a hundred trillion, for barely four months. Vaultwarden does have a brake: ten login attempts per minute and IP by default (LOGIN_RATELIMIT_*), three at the admin panel within five minutes (ADMIN_RATELIMIT_*). That helps against guessing over the wire. It does not help when someone already has the string — from a backup, a log, a screenshot. So 32 characters anyway: openssl rand -base64 32 gives 192 bits.

For the master password, length is what counts; special characters are trim. With the login brake and the second factor from the authenticator app on the phone, twelve randomly chosen characters are enough. Without a second factor it should be more — six random words give about 78 bits and are stronger than twelve characters with special characters.

Fourth: start it.

cd /opt/vaultwarden
docker compose up -d

After that the instance answers on your own address, with a valid certificate. Sign-ups are off; the first account is created briefly with SIGNUPS_ALLOWED=true and then switched off again.

Whoever has set up a mail server knows how much less work that is.

In the browser

Setting it up in the client is one line in the settings:

  1. Install the Bitwarden extension for Firefox, Chrome, Edge or Safari.
  2. In the extension settings, set the server address to your own instance (https://vault.example.com) and save.
  3. Sign in — done.

There is no workaround, no proxy, no special extension: the clients behave as if they were with Bitwarden. Autofill, password generator, two-factor codes and syncing between devices work as usual. Same on the phone: install the app, enter the server address, sign in.

Interesting for technicians: Vaultwarden supports two-factor login via TOTP and WebAuthn security keys. Both cost nothing and belong switched on before the first entry moves in.

We run the second factor with an authenticator app on the phone: the app shows a code that changes every thirty seconds, and that code is the second key next to the master password. Whoever needs both does not get in with a stolen password alone.

What it costs

The server is the only running cost. I looked up the prices of all three partners on their price pages — and they differ more than you would think once you pay annually (as of (as of 25 November 2026):

Provider Plan Monthly Annually / one-off
IONOS VPS S+: 1 vCore, 2 GB RAM, 60 GB NVMe 5 € per month, cancellable monthly, 10 € setup a twelve-month term can be chosen during checkout; the price page names no lower annual price
ZAP-Hosting VPS “Spark” 7.29 € per month lifetime 80.19 € once (calculated: about eleven monthly rates)
Sharktech SmartVPS: from 2 vCPU, 4 GB RAM, 40 GiB NVMe, 4 TB traffic 7.95 $ per month 50 % off when paying annually: 47.70 $ a year (calculated: about 3.98 $ a month)

What that means for Vaultwarden:

  • Cheapest per month is IONOS at 5 €. The smallest plan is more than enough for the service — it does not need 2 GB. A longer term does not make it cheaper: the price applies to twelve months as well.
  • Cheapest over years is Sharktech when paying annually: just under 48 $ for a whole year. In exchange the server sits in the USA and is billed in dollars — anyone who needs European data residency stays with IONOS or ZAP-Hosting.
  • ZAP-Hosting sits in between but offers a “lifetime” price: 80.19 € instead of 87.48 € a year. It pays for itself after eleven months and keeps running — the quietest option if you do not want to think about invoices every year.

The second server holding the backup adds a few euros — or a different provider, so both do not hang in the same place.

Backups: the real work

Without a backup a password server sooner or later means data loss. Everything important lives in the data/ directory:

  • db.sqlite3 — the entries, encrypted with the master password,
  • attachments/ — file attachments,
  • sends/ — shared notes,
  • rsa_key.pem — the key for signing in,
  • config.json — settings.

Rule 3-2-1: three copies, two different media, one off site. That applies here too.

A clean backup means stopping the service briefly, so the database is coherent.

cd /opt/vaultwarden
docker compose stop vaultwarden
tar -czf vaultwarden-$(date +%F).tar.gz data/
docker compose start vaultwarden

After that the archive is encrypted before it leaves the server — the next section shows with what.

Two small servers instead of one

Whoever holds the keyring themselves should not depend on a single machine. Two small VPS — 5 € a month each, together less than many subscriptions — solve that without much machinery: one works, the second sleeps and receives every change.

What belongs on the second server:

  • the configuration from the repository: docker-compose.yml, Caddyfile, the .env (which does not belong in the repository but on both machines),
  • a consistent state of the database and the attachments,
  • a script that starts the service and checks whether it answers.

Syncing runs via rsync over SSH, twice a day. So that the SQLite file is coherent, the service is stopped for the duration of the copy — a matter of seconds:

#!/usr/bin/env bash
# /opt/vaultwarden/bin/sync.sh — on the working server
set -euo pipefail
cd /opt/vaultwarden
trap 'docker compose start vaultwarden' EXIT
docker compose stop vaultwarden
rsync -az --delete -e ssh data/ reserve@reserve.example.com:/srv/vaultwarden/data/
docker compose start vaultwarden
ssh reserve@reserve.example.com 'cd /srv/vaultwarden && docker compose up -d'

The trap starts the service again even if the sync fails — otherwise it would stay down after an error.

Plus an entry in the working server’s crontab that runs it every twelve hours. cron is part of the base system on Debian and Ubuntu most of the time; if it is missing, apt install cron and systemctl enable --now cron add it. The entry itself is one line:

# sudo crontab -e  (on the working server)
0 5,17 * * * /opt/vaultwarden/bin/sync.sh >> /var/log/vaultwarden-sync.log 2>&1

The entry runs as root (sudo crontab -e), because the script needs docker and rsync. If you prefer the output in the journal, send it to journalctl instead or check the file — what matters is that a failure does not go unnoticed.

The switch-over: if the working server fails, the DNS record points to the Reserve server — with a five-minute TTL (300 seconds), clients are back shortly after. If you want it automatic, put both behind a small proxy with health checks; that is more machinery and a risk of its own. For a private service, the DNS record is enough.

What this honestly is not: high availability. Between outage and switch-over lie minutes, and the finest reserve is worthless if nobody has tried it. So: practise the switch-over once a quarter, patch the Reserve server just like the working one, and keep its firewall closed — only SSH from the working server, nothing else.

If the server fails, the data is not lost; it costs a few minutes of work.

At home: the safe

The first copy stays in the house, but not in a desk drawer: a small safe or a fireproof metal box, in the coolest room. Plus a USB stick used only for backups — and a second one that lives somewhere else.

The second copy belongs off site. The classic bank safe deposit box is still a good place for that, because it survives fire, water and burglary. According to Konsument a simple locker costs around 15 € a year and a safe starts at about 50 €. Providers such as Bank Burgenland rent out both (as of 25 November 2026).

What goes into the box: a USB stick with the encrypted archive and the public key — not the private one. That stays with me, otherwise the encryption is only a formality.

age: encryption you can explain

age is a tool for encrypting files. It has no options, no configuration files, no keyrings — and that is exactly its value: you can understand it.

A keypair comes from one command:

age-keygen -o key.txt
# public key: age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p

You encrypt against the public key and decrypt with the private one:

tar -czf - data/ | age -r age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p \
  -o vaultwarden-2026-11-22.tar.gz.age

age -d -i key.txt -o vaultwarden-2026-11-22.tar.gz vaultwarden-2026-11-22.tar.gz.age

Technically: age encrypts each file with a one-time key (ChaCha20-Poly1305) and wraps that key for the recipient (X25519). Without the private key you do not get in — not even with the server the file sits on.

Quantum safety

X25519 is an elliptic-curve method. A large enough quantum computer could break it with Shor’s algorithm. That computer does not exist at the required size today — but there are archives collecting encrypted data to open later (“harvest now, decrypt later”). For backups that sit around for ten or twenty years, that is a real argument.

Symmetric methods like ChaCha20 are less threatened: Grover halves the effective key length, 256 bits become 128 — still out of reach. The problem is the key exchange, not the encryption.

age can do this now. Since version 1.3 (December 2025) there are built-in post-quantum recipients: HPKE with a hybrid ML-KEM-768. Such keys start with age1pq1…, the matching identities with AGE-SECRET-KEY-PQ-1…:

age-keygen -pq -o pq-key.txt
tar -czf - data/ | age -r age1pq1… -o vaultwarden-2026-11-22.tar.gz.age

“Hybrid” means: both are done, classical and quantum-safe. The file holds as long as either method holds. For my backups that is enough.

In practice: encrypt new backups with the PQ key, keep the old key so older archives stay readable. And keep the private key apart from the archives — on paper in a safe is no shame.

Running it for years

A self-hosted service needs regular care:

  • Updates monthly: docker compose pull && docker compose up -d. Back up before, not after.
  • Practise restoring. Once a year, unpack the archive on another machine and sign in.
  • Two-factor login on, admin panel reachable from inside only.
  • Read the logs. Sign-in attempts in the log are a hint, not noise.

When not to self-host

If nobody runs the updates, if there is no backup that has been tested, if an outage bothers nobody because nobody knows whom to ask: then a cloud subscription is the better choice. Self-hosting means taking responsibility.

For me the sum is clear: a small server, a certificate, an archive with age — and the keyring sits on my own server.

If you do not want to set this up yourself: we help with the setup, from the server through the certificate to the first entry in the browser. A message via the contact form is enough — the subject is already filled in.

Whoever wants to support the blog: the server recommendations above are referral links and marked as such.

Sources

Addresses 1 to 15 retrieved on 25 November 2026, numbers 16 and 17 on 27 November 2026; each answered HTTP 200.

  1. California’s lawsuit against OpenAI, Hugging Face incident: https://www.tagesschau.de/wirtschaft/unternehmen/openai-klage-kalifornien-100.html
  2. GitHub on the git push pipeline flaw (report, fix in under two hours): https://github.blog/security/securing-the-git-push-pipeline-responding-to-a-critical-remote-code-execution-vulnerability/
  3. Security Affairs on the same flaw (CVE-2026-3854): https://securityaffairs.com/191434/security/cve-2026-3854-github-flaw-enables-remote-code-execution.html
  4. Vaultwarden, source code: https://github.com/dani-garcia/vaultwarden
  5. Vaultwarden, releases (1.37.5 of 1 November 2026): https://github.com/dani-garcia/vaultwarden/releases
  6. Vaultwarden, .env.template with the LOGIN_RATELIMIT_* and ADMIN_RATELIMIT_* defaults: https://github.com/dani-garcia/vaultwarden/blob/main/.env.template
  7. Bitwarden, clients for browser, desktop and phone: https://bitwarden.com/
  8. IONOS, VPS plans (VPS S+: 5 € per month, 10 € setup, 1 vCore, 2 GB RAM, 60 GB NVMe): https://www.ionos.de/server/vps
  9. ZAP-Hosting, VPS plans (7.29 € per month, lifetime 80.19 €): https://zap-hosting.com/de/vps-server-mieten/
  10. Sharktech, SmartVPS (7.95 $ per month, 50 % off annually): https://www.sharktech.net/vps
  11. age, source code and README: https://github.com/FiloSottile/age
  12. age 1.3.0, introduction of post-quantum keys: https://github.com/FiloSottile/age/releases/tag/v1.3.0
  13. C2SP specification of the age format, hybrid KEM MLKEM768-X25519: https://github.com/C2SP/C2SP/blob/main/age.md
  14. Konsument, bank locker and safe (locker around 15 € a year, safe from 50 €): https://konsument.at/geld-recht/bankschliessfach
  15. Bank Burgenland, renting a safe or locker: https://www.bank-bgld.at/de/privatkunden/sparen-anlegen/safe-schliessfach
  16. 1Password, “Update on a security incident involving 1Password’s backend systems”, 25 November 2026 — scope of the copied data, what was not affected, measures: https://1password.com/blog/update-on-nov-2026-security-incident
  17. derStandard, “1Password gehackt: Angreifer erbeuten Kundendaten aber angeblich keine Passwörter”, 26 November 2026 — assessment, no number of affected customers: https://www.derstandard.at/story/3000000351251/1password-gehackt-angreifer-erbeuten-kundendaten-aber-angeblich-keine-passwoerter

← all posts