vaultwarden

by sgissi

Helm chartv1.4.2App 1.37.2

Unofficial Bitwarden compatible server written in Rust

About this chart

Gissilabs Helm Charts - vaultwarden

Unofficial Bitwarden compatible server written in Rust

Homepage: https://github.com/dani-garcia/vaultwarden

Maintainers

NameEmailUrl
Silvio Gissi[email protected]

Source Code

Vaultwarden

Vaultwarden is an unofficial Bitwarden compatible server written in Rust. For more information, check the project on Github: https://github.com/dani-garcia/vaultwarden

Installation

The default installation will deploy one Vaultwarden instance using a SQLite database without persistence. All data will be lost if the pod is deleted.

# Add the Gissilabs repository if not already added
helm repo add gissilabs https://gissilabs.github.io/charts/
helm repo update

# Install the chart
helm install myvaultwarden gissilabs/vaultwarden

See the configuration section below to customize the deployment.

Upgrade Notes

From 1.1 to 1.2

Dropped support for Ingress on Kubernetes versions 1.18 or older. More details. Since Vaultwarden 1.29, WebSockets no longer uses separate port, support for that has been removed as well.

From 1.0 to 1.1

The default value for Embed Images on email option changed from false to true.

Values

KeyTypeDefaultDescription
additionalVolumeMountslist[]Additional/Extra volumeMounts in deployment
additionalVolumeslist[]Additional/Extra volumes for deployment
affinityobject{}Affinity rules
automountServiceAccountTokenboolfalseMount service account token in pod
customVolumeobject{}Custom volume definition (cannot be used with persistence)
database.existingSecretstring""Use existing secret for database URL, key 'database-url'
database.existingSecretKeystring""Use a different key for the existing secret for database URL
database.idleTimeoutint600Timeout in seconds before idle connections to the database are closed
database.maxConnectionsint10Set the maximum size of the database connection pool
database.minConnectionsint2Set the minimum size of the database connection pool
database.retriesint15Connection retries during startup, 0 for infinite. 1 second between retries
database.typestring"sqlite"Database type @default sqlite @enum sqlite;mysql;postgresql
database.urlstring""URL for external databases (mysql://user:pass@host:port/database-name or postgresql://user:pass@host:port/database-name)
database.walbooltrueEnable DB Write-Ahead-Log for SQLite, disabled for other databases
deploymentAnnotationsobject{}Deployment annotations
fullnameOverridestring""Full name override
httpRoute.annotationsobject{}HTTPRoute annotations
httpRoute.enabledboolfalseEnabled HTTPRoute
httpRoute.hostnameslist[]HTTPRoute hostnames
httpRoute.parentRefslist[]Gateway API parentRefs for the HTTPRoute. Must reference an existing Gateway
httpRoute.rulesOptional[{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}]HTTPRoute rules configuration, if overriden, backendRefs is set by default
image.pullPolicystring"IfNotPresent"Image pull policy
image.repositorystring"vaultwarden/server"Image repository
image.tagstring""Image tag (defaults to Chart appVersion)
imagePullSecretslist[]Image pull secrets
ingress.annotationsobject{}Ingress annotations
ingress.classNamestring""Ingress class name
ingress.enabledboolfalseEnable Ingress
ingress.hoststring""Ingress hostname
ingress.tlslist[]TLS configuration
ingressRoute.enabledboolfalseEnable Traefik IngressRoute
ingressRoute.entrypointslist["websecure"]Traefik entrypoints
ingressRoute.hoststring""IngressRoute hostname
ingressRoute.middlewareslist[]Traefik middlewares
ingressRoute.newCRDboolfalseUse new CRD (Traefik 2.10+, traefik.io namespace)
ingressRoute.tlsobject{}TLS configuration
initContainerslist[]Init containers (container spec)
nameOverridestring""Name override
nodeSelectorobject{}Node selector
persistence.accessModestring"ReadWriteOnce"Access mode
persistence.annotationsobject{}PVC annotations
persistence.enabledboolfalseEnable persistent storage
persistence.existingClaimstring""Use existing PVC
persistence.labelsobject{}Additional PVC labels
persistence.sizestring"1Gi"PVC size
persistence.storageClassstring""Storage class (leave empty for the cluster default)
podAnnotationsobject{}Pod annotations
podLabelsobject{}Pod labels
podSecurityContextobject{"fsGroup":65534}Pod security context
probesobject{}Liveness and readiness probe configuration
replicaCountint1Number of replicas
resourcesobject{}Resource limits and requests
revisionHistoryLimitint10Revision history limit
securityContextobject{"runAsGroup":65534,"runAsUser":65534}Container security context
service.externalTrafficPolicystring"Cluster"External traffic policy
service.httpPortint80HTTP port
service.loadBalancerIPstring""LoadBalancer IP (when type is LoadBalancer)
service.nodePortsobject{"http":0}NodePort configuration
service.nodePorts.httpint0HTTP node port
service.typestring"ClusterIP"Service type
serviceAccount.annotationsobject{}Service account annotations
serviceAccount.automountServiceAccountTokenboolfalseAuto-mount service account token
serviceAccount.createboolfalseCreate service account
serviceAccount.namestring""Service account name (generated if not set)
sidecarslist[]Sidecar containers (container spec)
strategyobject{}Deployment strategy
tolerationslist[]Tolerations
vaultwarden.admin.disableAdminTokenboolfalseDisable admin token (makes portal accessible to anyone, use carefully)
vaultwarden.admin.enabledboolfalseEnable admin portal
vaultwarden.admin.existingSecretstring""Use existing secret for the admin token. Key is 'admin-token'
vaultwarden.admin.tokenstring""Token for admin login, auto-generated if not defined
vaultwarden.allowInvitationbooltrueAllow invited users to sign-up even if registration is disabled
vaultwarden.allowSignupsbooltrueAllow any user to sign-up
vaultwarden.attachmentLimitOrgstring""Limit attachment disk usage per organization (in KB)
vaultwarden.attachmentLimitUserstring""Limit attachment disk usage per user (in KB)
vaultwarden.autoDeleteDaysstring""Number of days to auto-delete trashed items
vaultwarden.clientSuppressOnboardingboolfalseSuppress client onboarding interstitials (post-login welcome dialogs, extension install prompts, setup extension redirects, and premium upsell modals)
vaultwarden.defaultInviteNamestring""Default organization name in invitation e-mails
vaultwarden.dnsPreferIPv6boolfalsePrefer IPv6 (AAAA) DNS resolving over IPv4. Useful in IPv6-only environments
vaultwarden.domainstring""Set Vaultwarden URL, mandatory for invitations over email. Format: https://name or http://name
vaultwarden.emailAttemptsint3Maximum attempts before an email token is reset
vaultwarden.emailChangeAllowedbooltrueAllow users to change their email
vaultwarden.emailTokenExpirationint600Email token validity in seconds
vaultwarden.emergency.enabledbooltrueAllow any user to enable emergency access
vaultwarden.emergency.reminderstring"0 3 * * * *"Schedule to send expiration reminders (cron format)
vaultwarden.emergency.timeoutstring"0 7 * * * *"Schedule to grant emergency access requests (cron format)
vaultwarden.enableSendsbooltrueEnable Bitwarden Sends globally
vaultwarden.enableWebVaultbooltrueEnable Web Vault (static content)
vaultwarden.extraEnvobject{}Map of custom environment variables. Use carefully
vaultwarden.hibpApiKeystring""HaveIBeenPwned API Key
vaultwarden.icons.cachestring"2592000"Cache TTL for icons in seconds (0 = no purging)
vaultwarden.icons.cacheFailedstring"259200"Cache TTL for failed icon lookups in seconds (0 = no purging)
vaultwarden.icons.disableDownloadboolfalseDisable download of external icons (still serves from cache)
vaultwarden.icons.redirectCodeint302HTTP redirect code for external icon service
vaultwarden.icons.servicestring"internal"Icon download service @default internal @enum internal;bitwarden;duckduckgo;google
vaultwarden.invitationExpirationint120Number of hours after which invitation tokens expire
vaultwarden.log.filestring""Log to file (file path)
vaultwarden.log.levelstring""Log level @default "" @enum trace;debug;info;warn;error;off
vaultwarden.log.timeFormatstring""Log timestamp format (chrono strftime format)
vaultwarden.orgCreationUsersstring"all"Restrict creation of orgs. Options: 'all', 'none' or comma-separated list of users
vaultwarden.orgEventsboolfalseEnable organization event logging
vaultwarden.orgEventsRetentionstring""Organization event retention in days. Empty to not delete
vaultwarden.passwordHintsAllowedbooltrueAllow users to set password hints
vaultwarden.push.enabledboolfalseEnable push notifications
vaultwarden.push.existingSecretstring""Use existing secret for Push. Keys: 'push-id' and 'push-key'
vaultwarden.push.identityUristring""Identity URI
vaultwarden.push.installationIdstring""Installation ID from Bitwarden
vaultwarden.push.installationKeystring""Installation Key from Bitwarden
vaultwarden.push.relayUristring""Relay URI
vaultwarden.requireEmailboolfalseRequire that email is successfully sent before login. SMTP must be enabled
vaultwarden.sendLimitUserstring""Limit send disk usage per user (in KB)
vaultwarden.showPasswordHintboolfalseShow password hints
vaultwarden.signupDomainslist[]Whitelist domains allowed to sign-up. 'allowSignups' is ignored if set
vaultwarden.smtp.authMechanismstring"Plain"SMTP Authentication Mechanisms. Comma-separated: 'Plain', 'Login', 'Xoauth2'
vaultwarden.smtp.embedImagesbooltrueEmbed images as email attachments
vaultwarden.smtp.enabledboolfalseEnable SMTP
vaultwarden.smtp.existingSecretstring""Use existing secret for SMTP. Keys: 'smtp-user' and 'smtp-password'
vaultwarden.smtp.fromstring""SMTP sender e-mail address (required if SMTP is enabled)
vaultwarden.smtp.fromNamestring""SMTP sender name
vaultwarden.smtp.heloNamestring""Hostname to be sent for SMTP HELO
vaultwarden.smtp.hoststring""SMTP hostname (required if SMTP is enabled)
vaultwarden.smtp.invalidCertificateboolfalseAccept invalid certificates (DANGEROUS)
vaultwarden.smtp.invalidHostnameboolfalseAccept valid certificate with mismatched hostname (DANGEROUS)
vaultwarden.smtp.passwordstring""SMTP password (required if user is specified)
vaultwarden.smtp.portstring""SMTP port. Defaults: 465 for force_tls, 587 for starttls, 25 for off
vaultwarden.smtp.securitystring"starttls"SMTP security @default starttls @enum starttls;force_tls;off
vaultwarden.smtp.timeoutint15SMTP timeout in seconds
vaultwarden.smtp.userstring""SMTP username
vaultwarden.sso.allowUnknownEmailVerificationboolfalseAllow unknown email verification status. Risky combined with sso.signupsMatchEmail (account takeover)
vaultwarden.sso.audienceTrustedstring""Regex of additional trusted audiences for the IdToken (client_id is always trusted)
vaultwarden.sso.authOnlyNotSessionboolfalseEnable to use SSO only for authentication not session lifecycle
vaultwarden.sso.authoritystring""The OpenID Connect Discovery endpoint of your SSO
vaultwarden.sso.authorizeExtraParamsstring""Extra query parameters for the authorize redirect
vaultwarden.sso.clientCacheExpirationint0Discovery endpoint cache duration in seconds, 0 to disable
vaultwarden.sso.clientIdstring""Client Id
vaultwarden.sso.clientSecretstring""Client Secret
vaultwarden.sso.debugTokensboolfalseLog all SSO tokens for debugging. Requires vaultwarden.log.level set to debug (or info,vaultwarden::sso=debug)
vaultwarden.sso.enabledboolfalseActivate the SSO
vaultwarden.sso.existingSecretstring""Use existing secret for SSO. Keys

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.4.2 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