vaultwarden

by HelmForge

Helm chartv1.14.9App 1.37.5Apache-2.0Verified publisher

Vaultwarden for Kubernetes with persistent SQLite storage and explicit ingress/domain configuration

About this chart

Vaultwarden

Vaultwarden for Kubernetes with explicit storage-mode selection, ingress-oriented deployment, and clear modeling for admin token and SMTP.

Install

HTTPS repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install vaultwarden helmforge/vaultwarden -f values.yaml

OCI registry

helm install vaultwarden oci://ghcr.io/helmforgedev/helm/vaultwarden -f values.yaml

What this chart covers

  • single-instance Vaultwarden deployment
  • persistent /data storage through PVC
  • storage modes for sqlite, external database, local PostgreSQL chart, or local MySQL chart
  • optional ingress with ingressClassName
  • optional SMTP configuration
  • optional admin token through inline value or existingSecret
  • websocket notifications on the same HTTP service
  • explicit Rocket bind settings for secure non-root containers

Architecture guides

  • SQLite Mode
  • Database Modes and Migrations
  • External Database Backup
  • Backup Automation
  • Ingress and Domain
  • SMTP and Email
  • Backup and Restore
  • Data Restore Patterns
  • Admin Access and Hardening
  • SSO and OIDC Guidance
  • Scope and Automation Boundaries
  • Runtime Configuration and config.json

Operational direction

  • this chart is intentionally single-instance in v1
  • persistent /data is the normal path
  • production should prefer an external database or one of the optional database subcharts
  • SQLite is the fallback mode when no external database or subchart is configured
  • built-in backup can archive /data for SQLite or run database dumps for DB-backed modes
  • S3 backup endpoints signed by a private CA can use a mounted CA Secret without disabling TLS verification
  • ingress and domain should be aligned for attachment links and client behavior
  • websocket traffic uses the same HTTP service and ingress path as the web vault
  • the pod binds Vaultwarden/Rocket to non-privileged container port 8085 by default while keeping the Kubernetes Service on port 80

Official product references

Upgrade notes for 1.37.4

Vaultwarden 1.37.4 fixes high- and medium-severity authorization issues affecting revoked organization members, two-factor recovery, invitations, attachments, event logs and cipher sharing. If untrusted organization admins existed before the upgrade, rotate the organization API key afterward.

When IP_HEADER=X-Forwarded-For, configure every proxy hop in IP_HEADER_TRUSTED_PROXIES; client IP selection now uses the rightmost untrusted address. Remove retired client feature flags and DUO_USE_IFRAME from custom configuration before saving settings. Review the upstream release and back up /data and the database before upgrading.

Best practices

Persistence

  • keep data.persistence.enabled=true for real environments
  • back up /data regularly
  • do not treat SQLite plus one PVC as HA
  • use data.persistence.existingClaim or selectorLabels deliberately during restore workflows, not casually during normal install paths
  • review Backup and Restore before declaring the deployment production-ready
  • review Data Restore Patterns before binding restored storage into a live release
  • if you use PostgreSQL or MySQL, also review External Database Backup

Built-in backups

  • enable backup.enabled only after confirming the selected storage mode and S3 endpoint contract
  • in sqlite mode the chart archives /data and uploads it to the configured bucket
  • the SQLite archive reads live files and is not transactionally consistent with concurrent writes; quiesce Vaultwarden or use a SQLite-aware snapshot/backup process for production recovery points
  • in external, postgresql, and mysql modes the chart runs a database dump and uploads the compressed result
  • the built-in backup path is intentionally focused on backup creation, not restore orchestration
  • prefer backup.s3.caSecret for private or self-signed certificate authorities; use backup.s3.insecureSkipVerify only as a temporary compatibility escape hatch
  • review Backup Automation before enabling the CronJob in production

Database selection

  • for production, prefer database.external or one of the optional subcharts
  • optional local database subcharts are vendored from HelmForge dependencies: PostgreSQL chart 2.1.1 and MySQL chart 2.1.1
  • database.mode=auto uses this precedence:
  • database.external.host or database.external.existingSecret
  • postgresql.enabled=true
  • mysql.enabled=true
  • fallback to SQLite
  • if you use database.external.existingSecret, store a complete DATABASE_URL value in that secret
  • if you use postgresql.enabled=true or mysql.enabled=true, define the application password explicitly so Vaultwarden can build the connection URL
  • enable only one database source at a time; the chart fails rendering when external database, PostgreSQL subchart, and MySQL subchart settings are ambiguous
  • review Database Modes and Migrations before changing storage mode in a live environment

Ingress and domain

  • configure domain for real deployments
  • terminate TLS at ingress or reverse proxy
  • keep ingress hosts and domain aligned
  • if Vaultwarden is exposed behind a path or non-default HTTPS port, keep that full external URL in domain
  • health probes automatically include the path component from domain
  • keep vaultwarden.proxy.ipHeader aligned with your ingress controller or reverse proxy behavior
  • review ingress/controller timeouts if websocket notifications are important for your users

Runtime port and websocket notifications

  • Vaultwarden is built on Rocket and reads bind settings from ROCKET_ADDRESS and ROCKET_PORT
  • the upstream container defaults to port 80, but this chart runs the container as non-root and drops Linux capabilities
  • binding to port 80 inside a non-root container can fail with PermissionDenied
  • the chart therefore sets ROCKET_ADDRESS=0.0.0.0 and ROCKET_PORT from service.targetPort
  • keep service.targetPort at the default 8085 unless your platform has a concrete reason to use another non-privileged port
  • service.port remains 80, so in-cluster clients and ingress backends do not need to target 8085 directly
  • websocket notifications use the same HTTP listener and Service; no separate websocket Service is required

SQLite and runtime database settings

  • keep database.sqlite.enableWal=true unless you have a specific reason to change it and understand the tradeoff
  • review database.connection.* before applying very small or very large resource profiles
  • remember that SQLite and /data persistence remain part of the same operational boundary in this chart

Security

  • keep signups disabled unless the instance is intended for self-service use
  • prefer a hashed ADMIN_TOKEN value
  • expose the admin panel carefully and only behind trusted access patterns
  • enable networkPolicy in clusters where traffic should be explicitly restricted
  • keep runAsNonRoot, dropped capabilities, and RuntimeDefault seccomp unless the platform proves a concrete incompatibility
  • application and backup pods do not automount Kubernetes API credentials because neither workload calls the API
  • keep showPasswordHint=false on publicly reachable deployments
  • review orgCreationUsers, orgEventsEnabled, and emergencyAccessAllowed instead of relying on product defaults you did not document
  • review Admin Access and Hardening before enabling the admin page in production

Important mapped settings

This chart intentionally maps the most important operational settings from the official Vaultwarden environment model:

  • DOMAIN
  • SIGNUPS_ALLOWED
  • SIGNUPS_VERIFY
  • SIGNUPS_VERIFY_RESEND_TIME
  • SIGNUPS_VERIFY_RESEND_LIMIT
  • SIGNUPS_DOMAINS_WHITELIST
  • INVITATIONS_ALLOWED
  • INVITATION_ORG_NAME
  • INVITATION_EXPIRATION_HOURS
  • SENDS_ALLOWED
  • EMERGENCY_ACCESS_ALLOWED
  • EMAIL_CHANGE_ALLOWED
  • ORG_EVENTS_ENABLED
  • ORG_CREATION_USERS
  • PASSWORD_ITERATIONS
  • PASSWORD_HINTS_ALLOWED
  • SHOW_PASSWORD_HINT
  • ENABLE_WEBSOCKET
  • ROCKET_ADDRESS
  • ROCKET_PORT
  • IP_HEADER
  • IP_HEADER_TRUSTED_PROXIES
  • UNAUTHENTICATED_RATELIMIT_SECONDS
  • UNAUTHENTICATED_RATELIMIT_MAX_BURST
  • ENABLE_DB_WAL
  • DB_CONNECTION_RETRIES
  • DATABASE_TIMEOUT
  • DATABASE_IDLE_TIMEOUT
  • DATABASE_MIN_CONNS
  • DATABASE_MAX_CONNS
  • DATABASE_CONN_INIT
  • ADMIN_TOKEN
  • SMTP_*

For advanced settings that are not first-class values in this chart yet, use extraEnv and keep the official template nearby:

Admin token guidance

The admin page should not use a plain-text ADMIN_TOKEN in real environments. Prefer an Argon2 PHC string.

Simple generation options:

docker run --rm -it vaultwarden/server:1.37.4 /vaultwarden hash
echo -n 'change-me' | argon2 "$(openssl rand -base64 32)" -e -id -k 65540 -t 3 -p 4

Use the resulting PHC string directly in admin.token or store it in admin.existingSecret.

When using Helm values, quote the PHC string exactly as generated. Unlike .env-style Docker Compose examples, you do not need to escape $ characters for YAML itself.

Official reference:

Production notes

  • v1 does not support multiple replicas
  • v1 does not claim HA
  • this chart now supports sqlite, external database configuration, and optional local PostgreSQL or MySQL subcharts
  • production should normally prefer database.external
  • SSO and OIDC remain advanced integration topics; this chart documents them but does not model them as first-class values in v2
  • SMTP in production should use explicit timeout, security mode, and certificate validation choices instead of relying on provider defaults you did not document
  • built-in backup is now available directly in the chart and should be preferred over ad-hoc sidecar or detached copy jobs for this product line
  • if you disable persistence, the deployment becomes disposable and data loss is expected
  • part of the effective runtime configuration can be persisted in /data/config.json
  • backup and restore must treat /data as a full state boundary, not only a SQLite file
  • for detached backup automation, validate your PVC access pattern before assuming a separate backup pod can mount the same claim safely
  • if a restore uses pre-provisioned storage, validate existingClaim or PVC selector behavior before starting traffic
  • review Scope and Automation Boundaries before expecting this chart to behave like an operator or HA platform

Main values

ParameterDescriptionDefault
image.repositoryVaultwarden image repositorydocker.io/vaultwarden/server
image.tagVaultwarden image tag1.37.5
domainPublic Vaultwarden domain""
database.modeauto, sqlite, external, postgresql, or mysqlauto
database.external.vendorExternal database vendorpostgres
database.external.hostExternal database host""
database.external.nameExternal database namevaultwarden
database.external.usernameExternal database usernamevaultwarden
database.external.existingSecretExisting secret containing a complete DATABASE_URL""
database.external.existingSecretUrlKeySecret key containing the DATABASE_URL valuedatabase-url
postgresql.enabledEnable the local PostgreSQL subchart (helmforge/postgresql 2.1.1)false
mysql.enabledEnable the local MySQL subchart (helmforge/mysql 2.1.1)false
vaultwarden.signupsAllowedAllow new user signupsfalse
vaultwarden.signupsVerifyRequire email verification for new signupsfalse
vaultwarden.signupsVerifyResendTimeSeconds before another verification email can be sent3600
vaultwarden.signupsVerifyResendLimitMaximum number of verification re-sends triggered by login attempts6
vaultwarden.signupsDomainsWhitelistSignup allowlist when signups are generally disabled[]
vaultwarden.invitationsAllowedAllow invitation flowstrue
vaultwarden.invitationOrgNameFallback invitation organization nameVaultwarden
vaultwarden.invitationExpirationHoursHours before invitation and verification tokens expire120
vaultwarden.sendsAllowedAllow Bitwarden Sendtrue
vaultwarden.emergencyAccessAllowedAllow emergency access featurestrue
vaultwarden.emailChangeAllowedAllow users to change their emailtrue
vaultwarden.orgEventsEnabledEnable organization event loggingfalse
vaultwarden.orgCreationUsersWhich users may create organizations""

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 v1.14.9 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