Open Source
All templates and components

App template

Vaultwarden

A Bitwarden-compatible password manager; sign-up is closed and the admin invites people.

Memory when idle
about 10 MiB
CI measures it once the app is ready and before any traffic. Leave room for more.
Tested on
x86 servers

Introduction

Vaultwarden is a password manager that works with Bitwarden apps and browser extensions.

This template runs one Vaultwarden server behind your domain. Sign-up is closed. The administrator invites each person on the admin page, which needs a token that is generated at deploy time.

Values you provide

You don’t fill in anything when you deploy.

Made for you

These values are generated at deploy and kept in a Kubernetes Secret, shown as Secret/key.

  • vaultwarden-secrets/admin-token

Getting started

  1. In Zeabur OSS, open the vaultwarden service. When Overview shows its replica as ready, the service is up. Its domain is on the Networking tab under Public domains; it is the domain you entered in the install form.

  2. Get the admin token. Open Variables, click vaultwarden-secrets under From config files and secrets, and click the eye icon next to admin-token. Without Zeabur OSS, read Secret vaultwarden-secrets, key admin-token, with kubectl:

    kubectl -n <namespace> get secret vaultwarden-secrets -o jsonpath='{.data.admin-token}' | base64 -d
    
  3. Open https://<your domain>/admin and enter the token.

  4. Invite each person by email on that page.

  5. Each invited person opens https://<your domain> and registers with the invited email. Then they sign in from the Bitwarden apps, using your domain as the server address.

Configuration

Change the admin token

On the service’s Variables tab, click vaultwarden-secrets, enter a new value for admin-token, then review and apply. The running replica keeps the old value until you click Restart at the top of the service page. The token is the password of the admin page. See Enabling admin page.

Troubleshooting

The page shows 502 or does not load

In Zeabur OSS, open the vaultwarden service. Check that Overview shows its replica as ready, then read the Logs tab. If the replica keeps restarting, open Deployments, then Events. If the events show OOMKilled, raise Maximum memory in Settings → Compute. See Adjust replicas, resources, and health checks and View logs, events, and usage, and open a terminal.

If the domain or its certificate stays pending, see Add public domains and HTTPS.

The admin page asks for the token again

An admin session lasts 20 minutes by default. Enter the token again. See Enabling admin page.

Invited people get no email

This template sets no SMTP server, so Vaultwarden sends no email. Tell each person yourself. They can register with the invited email address.

Resources

Each service is guaranteed the first amount and can use up to the second.

  • vaultwarden

    Ports

    8080

    CPU

    0.05 cores to 1 core

    Memory

    64 MiB to 512 MiB

Technical details

This release

Version
1.37.5
Licence
AGPL-3.0-only AND GPL-3.0-only
Homepage
github.com

Tested in CI

CI installs these exact files on a new cluster, waits until they are ready, then records the idle memory.

DistributionPlatformKubernetesPassedIdle memory
kindlinux/amd64v1.37.07 MiB

Security

Vaultwarden runs as an unprivileged user (UID 1000) with a read-only root filesystem, no service-account token and no extra Linux capabilities. Outbound traffic is not limited. Sign-up is closed.

Known risks

  1. Risk

    Anyone who can reach the server could create an account.

    How it is handled

    SIGNUPS_ALLOWED is false. Sign in to /admin with the token in vaultwarden-secrets, and invite users by email. Without SMTP, an invited address can register directly.

  2. Risk

    The admin token is stored as plain text in a Secret. Vaultwarden logs a notice that recommends an Argon2 hash instead.

    How it is handled

    Limit who can read the Secret. To use a hash, run vaultwarden hash in a terminal and store the resulting PHC string in the Secret.

  3. Risk

    The admin page is public through the Ingress.

    How it is handled

    It needs the 43-character admin token. To remove the page, delete the ADMIN_TOKEN variable after you have invited your users.

  4. Risk

    No SMTP server is set up, so invitation emails, two-factor emails and emergency access emails are not sent.

    How it is handled

    Set the SMTP_ variables.

  5. Risk

    The icon service downloads favicons from the websites your users save.

    How it is handled

    Vaultwarden refuses non-global (private) addresses by default. Set ICON_SERVICE=none to turn the icon service off.

What the cluster needs

Zeabur OSS suggests the components a cluster is missing. Without it, install them first.