vaultwarden
by HelmForge
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
/datastorage 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
/datais 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
/datafor 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
domainshould 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
8085by default while keeping the Kubernetes Service on port80
Official product references
- Vaultwarden repository: https://github.com/dani-garcia/vaultwarden
- Vaultwarden configuration template: https://raw.githubusercontent.com/dani-garcia/vaultwarden/main/.env.template
- Vaultwarden 1.37.0 security release: https://github.com/dani-garcia/vaultwarden/releases/tag/1.37.0
- Vaultwarden 1.37.4 release: https://github.com/dani-garcia/vaultwarden/releases/tag/1.37.4
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=truefor real environments - back up
/dataregularly - do not treat SQLite plus one PVC as HA
- use
data.persistence.existingClaimorselectorLabelsdeliberately 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.enabledonly after confirming the selected storage mode and S3 endpoint contract - in
sqlitemode the chart archives/dataand 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, andmysqlmodes 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.caSecretfor private or self-signed certificate authorities; usebackup.s3.insecureSkipVerifyonly as a temporary compatibility escape hatch - review Backup Automation before enabling the CronJob in production
Database selection
- for production, prefer
database.externalor one of the optional subcharts - optional local database subcharts are vendored from HelmForge dependencies: PostgreSQL chart
2.1.1and MySQL chart2.1.1 database.mode=autouses this precedence:database.external.hostordatabase.external.existingSecretpostgresql.enabled=truemysql.enabled=true- fallback to SQLite
- if you use
database.external.existingSecret, store a completeDATABASE_URLvalue in that secret - if you use
postgresql.enabled=trueormysql.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
domainfor real deployments - terminate TLS at ingress or reverse proxy
- keep ingress hosts and
domainaligned - 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.ipHeaderaligned 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_ADDRESSandROCKET_PORT - the upstream container defaults to port
80, but this chart runs the container as non-root and drops Linux capabilities - binding to port
80inside a non-root container can fail withPermissionDenied - the chart therefore sets
ROCKET_ADDRESS=0.0.0.0andROCKET_PORTfromservice.targetPort - keep
service.targetPortat the default8085unless your platform has a concrete reason to use another non-privileged port service.portremains80, so in-cluster clients and ingress backends do not need to target8085directly- websocket notifications use the same HTTP listener and Service; no separate websocket Service is required
SQLite and runtime database settings
- keep
database.sqlite.enableWal=trueunless 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
/datapersistence 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_TOKENvalue - expose the admin panel carefully and only behind trusted access patterns
- enable
networkPolicyin clusters where traffic should be explicitly restricted - keep
runAsNonRoot, dropped capabilities, andRuntimeDefaultseccomp 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=falseon publicly reachable deployments - review
orgCreationUsers,orgEventsEnabled, andemergencyAccessAllowedinstead 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:
DOMAINSIGNUPS_ALLOWEDSIGNUPS_VERIFYSIGNUPS_VERIFY_RESEND_TIMESIGNUPS_VERIFY_RESEND_LIMITSIGNUPS_DOMAINS_WHITELISTINVITATIONS_ALLOWEDINVITATION_ORG_NAMEINVITATION_EXPIRATION_HOURSSENDS_ALLOWEDEMERGENCY_ACCESS_ALLOWEDEMAIL_CHANGE_ALLOWEDORG_EVENTS_ENABLEDORG_CREATION_USERSPASSWORD_ITERATIONSPASSWORD_HINTS_ALLOWEDSHOW_PASSWORD_HINTENABLE_WEBSOCKETROCKET_ADDRESSROCKET_PORTIP_HEADERIP_HEADER_TRUSTED_PROXIESUNAUTHENTICATED_RATELIMIT_SECONDSUNAUTHENTICATED_RATELIMIT_MAX_BURSTENABLE_DB_WALDB_CONNECTION_RETRIESDATABASE_TIMEOUTDATABASE_IDLE_TIMEOUTDATABASE_MIN_CONNSDATABASE_MAX_CONNSDATABASE_CONN_INITADMIN_TOKENSMTP_*
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
/dataas 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
existingClaimor 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
| Parameter | Description | Default |
|---|---|---|
image.repository | Vaultwarden image repository | docker.io/vaultwarden/server |
image.tag | Vaultwarden image tag | 1.37.5 |
domain | Public Vaultwarden domain | "" |
database.mode | auto, sqlite, external, postgresql, or mysql | auto |
database.external.vendor | External database vendor | postgres |
database.external.host | External database host | "" |
database.external.name | External database name | vaultwarden |
database.external.username | External database username | vaultwarden |
database.external.existingSecret | Existing secret containing a complete DATABASE_URL | "" |
database.external.existingSecretUrlKey | Secret key containing the DATABASE_URL value | database-url |
postgresql.enabled | Enable the local PostgreSQL subchart (helmforge/postgresql 2.1.1) | false |
mysql.enabled | Enable the local MySQL subchart (helmforge/mysql 2.1.1) | false |
vaultwarden.signupsAllowed | Allow new user signups | false |
vaultwarden.signupsVerify | Require email verification for new signups | false |
vaultwarden.signupsVerifyResendTime | Seconds before another verification email can be sent | 3600 |
vaultwarden.signupsVerifyResendLimit | Maximum number of verification re-sends triggered by login attempts | 6 |
vaultwarden.signupsDomainsWhitelist | Signup allowlist when signups are generally disabled | [] |
vaultwarden.invitationsAllowed | Allow invitation flows | true |
vaultwarden.invitationOrgName | Fallback invitation organization name | Vaultwarden |
vaultwarden.invitationExpirationHours | Hours before invitation and verification tokens expire | 120 |
vaultwarden.sendsAllowed | Allow Bitwarden Send | true |
vaultwarden.emergencyAccessAllowed | Allow emergency access features | true |
vaultwarden.emailChangeAllowed | Allow users to change their email | true |
vaultwarden.orgEventsEnabled | Enable organization event logging | false |
vaultwarden.orgCreationUsers | Which 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvaultwarden is pinned at v1.14.9 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