vaultwarden
Vaultwarden is an open-source, community-supported, Bitwarden-compatible server written in Rust
About this chart
FMJ Studios - Vaultwarden Helm Chart
Vaultwarden is an unofficial Bitwarden server implementation written in Rust. It is compatible with the official Bitwarden clients, and is ideal for self-hosted deployments where running the official resource-heavy service is undesirable. Vaultwarden is targeted towards individuals, families, and smaller organizations. Development of features that are mainly useful to larger organizations (e.g., single sign-on, directory syncing, etc.) is not a priority, though high-quality PRs that implement such features would be welcome. It delivers all of these features within a single Docker image available on Docker Hub.
Head to the Vaultwarden GitHub Repository for in-depth documentation and configuration templates.
✨ TL;DR
Helm Repository Installation
helm repo add fmjstudios https://fmjstudios.github.io/helm
helm install vaultwarden fmjstudios/vaultwarden --version X.Y.Z
OCI Installation
helm install oci://ghcr.io/fmjstudios/helm/vaultwarden:X.Y.Z
Introduction
This chart bootstraps a Vaultwarden StatefulSet or Deployment on a Kubernetes cluster using the Helm package manager. For cluster networking a Service and Ingress manifest is also created, whereas the Ingress needs to be explicitly enabled. Lastly the chart configures a PodDisruptionBudget if enabled. RBAC manifests are enabled by default.
The chart supports the configuration of
all Vaultwarden environment variables via
the vaultwarden key in Helm's values and makes use of the official Docker Hub container image, although this is
configurable via the Image Parameters.
Parameters
Image parameters
| Name | Description | Value |
|---|---|---|
image.registry | The Docker registry to pull the image from | docker.io |
image.repository | The registry repository to pull the image from | vaultwarden/server |
image.tag | The image tag to pull | 1.30.5-alpine |
image.digest | The image digest to pull | "" |
image.pullPolicy | The Kubernetes image pull policy | IfNotPresent |
image.pullSecrets | A list of secrets to use for pulling images from private registries | [] |
Name overrides
| Name | Description | Value |
|---|---|---|
nameOverride | String to partially override vaultwarden.fullname | "" |
fullnameOverride | String to fully override vaultwarden.fullname | "" |
Workload overrides
| Name | Description | Value |
|---|---|---|
kind | The kind of workload to deploy Vaultwarden as (StatefulSet or Deployment) | StatefulSet |
Vaultwarden Configuration parameters
| Name | Description | Value |
|---|---|---|
vaultwarden.domain | The domain of the Vaultwarden installation | "" |
vaultwarden.web.enabled | Whether or not to enable the Vaultwarden Web UI - enabled by default | true |
vaultwarden.web.folder | A custom folder from which to load assets for the Web UI - defaults to 'web-vault/' | "" |
vaultwarden.allowSends | Controls whether users are allowed to create Bitwarden Sends. Applies globally to all users. | true |
vaultwarden.allowEmergencyAccess | Controls whether users can enable emergency access to their accounts. Applies globally to all users. | true |
vaultwarden.allowEmailChange | Controls whether users can change their email. Applies globally to all users. | true |
vaultwarden.enableOrgEvents | Controls whether event logging is enabled for organizations. Applies to organizations. | false |
vaultwarden.retainEventsDays | Number of days to retain events stored in the database. | "" |
vaultwarden.ipHeader | The Client IP Header, defaults to "X-Forwarded-For". | X-Forwarded-For |
vaultwarden.disable2FARemember | Disable 2FA remembrance. | false |
vaultwarden.orgCreationUsers | Controls which users can create new orgs. | "" |
vaultwarden.enableOrgGroups | Controls whether group support is enabled for organizations | false |
vaultwarden.allowedIframeAncestors | Allowed iframe ancestors (Know the risks!) | "" |
vaultwarden.adminToken.value | The value for the Vaultwarden admin token | "" |
vaultwarden.adminToken.disable | Disable token authentication for the admin panel | false |
vaultwarden.adminToken.existingSecret.name | The name of an existing Secret containing the admin token | "" |
vaultwarden.adminToken.existingSecret.key | The key name within the previously named existingSecret | "" |
vaultwarden.data.rootPath | The data folder is used for all files by default | /data |
vaultwarden.data.paths.rsaKey | The file path for the RSA key, 'data/rsa_key' by default | "" |
vaultwarden.data.paths.iconCache | The path for icon cache, 'data/icon_cache' by default | "" |
vaultwarden.data.paths.attachments | The mail attachments path, 'data/attachments' by default | "" |
vaultwarden.data.paths.sends | The mail sends path, 'data/sends' by default | "" |
vaultwarden.data.paths.tmp | The temporary data path, 'data/tmp' by default | "" |
vaultwarden.data.pvc.size | The size given to PVCs created from the above data | 5Gi |
vaultwarden.data.pvc.storageClass | The storageClass given to PVCs created from the above data | standard |
vaultwarden.data.pvc.reclaimPolicy | The resourcePolicy given to PVCs created from the above data | Retain |
vaultwarden.data.pvc.existingClaim | Provide the name to an existing PVC | "" |
vaultwarden.email.attemptsLimit | Maximum attempts before an email token is reset requiring a new email | 3 |
vaultwarden.email.tokenExpirationTime | Token expiration time | 600 |
vaultwarden.email.tokenSize | Email token size | 6 |
vaultwarden.email.smtp.host | Hostname of the Mail server | "" |
vaultwarden.email.smtp.from | The from-address for emails sent by Vaultwarden | "" |
vaultwarden.email.smtp.fromName | The from-name for emails sent by Vaultwarden | Vaultwarden |
vaultwarden.email.smtp.security | Either 'starttls', 'force_tls' or 'off' | starttls |
vaultwarden.email.smtp.port | SMTP port used | 587 |
vaultwarden.email.smtp.username | SMTP user | "" |
vaultwarden.email.smtp.password | SMTP password | "" |
vaultwarden.email.smtp.auth | Defaults for SSL is "Plain" and "Login" and nothing for Non-SSL connections. | Plain |
vaultwarden.email.smtp.existingSecret.name | The name of an existing BasicAuth secret | "" |
vaultwarden.email.smtp.timeout | General SMTP settings | 15 |
vaultwarden.email.smtp.sendmail.enabled | Whether or not to use sendmail for sending emails | false |
vaultwarden.email.smtp.sendmail.path | The path to which sendmail binary to use. | "" |
vaultwarden.email.smtp.helloName | Server name sent during the SMTP HELLO | "" |
vaultwarden.email.smtp.embedImages | Embed images as email attachments | false |
vaultwarden.email.smtp.acceptInvalidHostnames | Accept Invalid Hostnames |
Deploy vaultwarden with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has vaultwarden on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvaultwarden is pinned at v0.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply