vaultwarden

by Ad Noctem Collective

Helm chartv0.2.3App 1.30.5MIT

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

NameDescriptionValue
image.registryThe Docker registry to pull the image fromdocker.io
image.repositoryThe registry repository to pull the image fromvaultwarden/server
image.tagThe image tag to pull1.30.5-alpine
image.digestThe image digest to pull""
image.pullPolicyThe Kubernetes image pull policyIfNotPresent
image.pullSecretsA list of secrets to use for pulling images from private registries[]

Name overrides

NameDescriptionValue
nameOverrideString to partially override vaultwarden.fullname""
fullnameOverrideString to fully override vaultwarden.fullname""

Workload overrides

NameDescriptionValue
kindThe kind of workload to deploy Vaultwarden as (StatefulSet or Deployment)StatefulSet

Vaultwarden Configuration parameters

NameDescriptionValue
vaultwarden.domainThe domain of the Vaultwarden installation""
vaultwarden.web.enabledWhether or not to enable the Vaultwarden Web UI - enabled by defaulttrue
vaultwarden.web.folderA custom folder from which to load assets for the Web UI - defaults to 'web-vault/'""
vaultwarden.allowSendsControls whether users are allowed to create Bitwarden Sends. Applies globally to all users.true
vaultwarden.allowEmergencyAccessControls whether users can enable emergency access to their accounts. Applies globally to all users.true
vaultwarden.allowEmailChangeControls whether users can change their email. Applies globally to all users.true
vaultwarden.enableOrgEventsControls whether event logging is enabled for organizations. Applies to organizations.false
vaultwarden.retainEventsDaysNumber of days to retain events stored in the database.""
vaultwarden.ipHeaderThe Client IP Header, defaults to "X-Forwarded-For".X-Forwarded-For
vaultwarden.disable2FARememberDisable 2FA remembrance.false
vaultwarden.orgCreationUsersControls which users can create new orgs.""
vaultwarden.enableOrgGroupsControls whether group support is enabled for organizationsfalse
vaultwarden.allowedIframeAncestorsAllowed iframe ancestors (Know the risks!)""
vaultwarden.adminToken.valueThe value for the Vaultwarden admin token""
vaultwarden.adminToken.disableDisable token authentication for the admin panelfalse
vaultwarden.adminToken.existingSecret.nameThe name of an existing Secret containing the admin token""
vaultwarden.adminToken.existingSecret.keyThe key name within the previously named existingSecret""
vaultwarden.data.rootPathThe data folder is used for all files by default/data
vaultwarden.data.paths.rsaKeyThe file path for the RSA key, 'data/rsa_key' by default""
vaultwarden.data.paths.iconCacheThe path for icon cache, 'data/icon_cache' by default""
vaultwarden.data.paths.attachmentsThe mail attachments path, 'data/attachments' by default""
vaultwarden.data.paths.sendsThe mail sends path, 'data/sends' by default""
vaultwarden.data.paths.tmpThe temporary data path, 'data/tmp' by default""
vaultwarden.data.pvc.sizeThe size given to PVCs created from the above data5Gi
vaultwarden.data.pvc.storageClassThe storageClass given to PVCs created from the above datastandard
vaultwarden.data.pvc.reclaimPolicyThe resourcePolicy given to PVCs created from the above dataRetain
vaultwarden.data.pvc.existingClaimProvide the name to an existing PVC""
vaultwarden.email.attemptsLimitMaximum attempts before an email token is reset requiring a new email3
vaultwarden.email.tokenExpirationTimeToken expiration time600
vaultwarden.email.tokenSizeEmail token size6
vaultwarden.email.smtp.hostHostname of the Mail server""
vaultwarden.email.smtp.fromThe from-address for emails sent by Vaultwarden""
vaultwarden.email.smtp.fromNameThe from-name for emails sent by VaultwardenVaultwarden
vaultwarden.email.smtp.securityEither 'starttls', 'force_tls' or 'off'starttls
vaultwarden.email.smtp.portSMTP port used587
vaultwarden.email.smtp.usernameSMTP user""
vaultwarden.email.smtp.passwordSMTP password""
vaultwarden.email.smtp.authDefaults for SSL is "Plain" and "Login" and nothing for Non-SSL connections.Plain
vaultwarden.email.smtp.existingSecret.nameThe name of an existing BasicAuth secret""
vaultwarden.email.smtp.timeoutGeneral SMTP settings15
vaultwarden.email.smtp.sendmail.enabledWhether or not to use sendmail for sending emailsfalse
vaultwarden.email.smtp.sendmail.pathThe path to which sendmail binary to use.""
vaultwarden.email.smtp.helloNameServer name sent during the SMTP HELLO""
vaultwarden.email.smtp.embedImagesEmbed images as email attachmentsfalse
vaultwarden.email.smtp.acceptInvalidHostnamesAccept 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartvaultwarden is pinned at v0.2.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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