vaultwarden-helm

Vaultwarden on Kubernetes

Run the upstream password manager with a retained data volume, private access by default, and your choice of HTTPS ingress.

Chart
1.0.0
Vaultwarden
1.37.5
Kubernetes
1.30+

Why this chart

Install and verify

You need Kubernetes 1.30+, Helm 3.8+ or 4, and a default StorageClass. To reuse a writable PVC instead, set persistence.existingClaim.

Default install: one Pod with SQLite on a 5Gi PVC that is kept when you uninstall, a private ClusterIP Service reached by port forwarding, and public signups disabled.

helm repo add vaultwarden-chart https://pen-pal.github.io/vaultwarden-helm/ --force-update
helm repo update vaultwarden-chart
helm upgrade --install vaultwarden vaultwarden-chart/vaultwarden-helm \
  --version 1.0.0 \
  --namespace vaultwarden --create-namespace --wait --timeout 5m
helm test vaultwarden --namespace vaultwarden
kubectl -n vaultwarden port-forward svc/vaultwarden 8080:80

Open localhost:8080 while the port forward runs. Public registration is disabled by default. Read how to create the first account and set your public HTTPS origin before giving remote clients access.

Install from GHCR

Every release is also published as an OCI artifact, so no repository needs to be added.

helm upgrade --install vaultwarden oci://ghcr.io/pen-pal/charts/vaultwarden-helm \
  --version 1.0.0 \
  --namespace vaultwarden --create-namespace --wait --timeout 5m

Verify the release

Every chart archive carries Helm provenance signed with key BB3DACD8392CCF518243C1D00418024E75ABC2FC, and OCI artifacts are signed with keyless cosign. Verification steps

curl -fsSLo helm-signing-key.asc https://pen-pal.github.io/vaultwarden-helm/helm-signing-key.asc
gpg --show-keys --fingerprint helm-signing-key.asc
gpg --dearmor --output vaultwarden-helm.gpg helm-signing-key.asc
helm pull vaultwarden-chart/vaultwarden-helm --version 1.0.0 \
  --verify --keyring ./vaultwarden-helm.gpg

Values examples

Start with private SQLite or choose a values file for your cluster. Copy the YAML into vaultwarden.values.yaml, or download the file and rename it. Replace the placeholders and preview the manifests before installing.

helm template vaultwarden vaultwarden-chart/vaultwarden-helm \
  --version 1.0.0 --namespace vaultwarden -f vaultwarden.values.yaml

helm upgrade --install vaultwarden vaultwarden-chart/vaultwarden-helm \
  --version 1.0.0 --namespace vaultwarden --create-namespace \
  -f vaultwarden.values.yaml --wait --timeout 5m

Combine one routing example with your database or storage overrides using multiple -f flags. Helm applies later files over earlier ones. Browse all keys and defaults.

Private SQLite installation

Start one Vaultwarden Pod and store SQLite and vault files on a retained claim. Access it with kubectl port-forward.

Prerequisites
A default StorageClass that provisions writable volumes.
What to change
Set persistence.size for your vault and attachments. Keep this release private while creating the first account.
Download local-sqlite.values.yaml
View values
# Private access through kubectl port-forward. Use a default StorageClass.
vaultwarden:
  domain: http://localhost:8080
  signupsAllowed: false

database:
  type: sqlite

persistence:
  enabled: true
  size: 5Gi
  retain: true

Public HTTPS with Ingress

Route a public HTTPS hostname to the chart’s ClusterIP Service.

Prerequisites
An installed Ingress controller, an IngressClass, DNS for the vault hostname, and a TLS Secret in the release namespace.
What to change
Replace vault.example.com, public, and vaultwarden-tls with your origin, IngressClass, and Secret name.
Download ingress.values.yaml
View values
# Replace the origin, IngressClass and TLS Secret for your cluster.
vaultwarden:
  domain: https://vault.example.com
ingress:
  enabled: true
  className: public
  tls:
    secretName: vaultwarden-tls
  # annotations:
  #   cert-manager.io/cluster-issuer: example-issuer

Public HTTPS with Gateway API

Attach Vaultwarden to an existing HTTPS Gateway without creating a second entry point.

Prerequisites
Gateway API CRDs, a compatible controller, and an HTTPS listener that allows routes from the release namespace.
What to change
Replace vault.example.com and adjust the parentRef name, namespace, and sectionName to match your listener.
Download gateway.values.yaml
View values
# An existing HTTPS Gateway listener must allow routes from this namespace.
vaultwarden:
  domain: https://vault.example.com
httpRoute:
  enabled: true
  parentRefs:
    - name: public
      namespace: gateway-system
      sectionName: https

Attach an existing data claim

Mount an existing PVC at /data. Use this when reinstalling with a retained claim or moving a vault.

Prerequisites
A bound PVC in the release namespace that the Vaultwarden Pod can write to. Stop any previous Vaultwarden workload using the claim.
What to change
Replace vaultwarden-data with the claim name. Read the migration guide before switching an existing vault.
Download existing-pvc.values.yaml
View values
# The PVC must already exist in this Helm release's namespace.
# For a migration, stop the old Vaultwarden workload before attaching its PVC.
persistence:
  enabled: true
  existingClaim: vaultwarden-data

External PostgreSQL with SMTP and admin access

Use a Secret-backed database URL and SMTP credentials while keeping vault files on a separate existing PVC.

Prerequisites
PostgreSQL, an SMTP relay, the data PVC, and the database, SMTP, and admin Secrets in the release namespace.
What to change
Replace the claim, Secret names, relay hostname, and sender. The default keys are DATABASE_URL, SMTP_USERNAME, SMTP_PASSWORD, and ADMIN_TOKEN. Remove the smtp or adminToken block if you do not need it.
Download external-postgresql.values.yaml
View values
# Pair this with one HTTPS exposure example. Supply the Secrets and PVC in
# the release namespace first. The database and SMTP servers are external.
database:
  type: postgresql
  existingSecret: vaultwarden-database
  key: DATABASE_URL
persistence:
  existingClaim: vaultwarden-data
vaultwarden:
  adminToken:
    existingSecret: vaultwarden-admin
smtp:
  enabled: true
  host: smtp.example.com
  from: vault@example.com
  security: starttls
  existingSecret: vaultwarden-smtp

Restrict ingress to Vaultwarden

Allow incoming traffic from the proxy namespace and the Helm test Pod. Leave outbound traffic unrestricted.

Prerequisites
A CNI that enforces NetworkPolicy and the namespace of the ingress controller or Gateway.
What to change
Replace gateway-system with the namespace where your proxy Pods run. Confirm your ingress controller can reach Vaultwarden after applying the policy.
Download restricted-network.values.yaml
View values
# Only set ingress rules once you know which namespace your proxy sends from.
# This sample leaves egress unrestricted for DNS, SMTP and database access.
networkPolicy:
  enabled: true
  spec:
    policyTypes: [Ingress]
    ingress:
      - from:
          - namespaceSelector:
              matchLabels:
                kubernetes.io/metadata.name: gateway-system
        ports: [{port: http, protocol: TCP}]
      - from:
          - podSelector:
              matchLabels:
                app.kubernetes.io/name: vaultwarden-test
        ports: [{port: http, protocol: TCP}]

Use a platform-assigned UID

Remove fixed UID and group values for clusters that assign a Pod identity at admission.

Prerequisites
A platform admission policy that assigns an appropriate identity and storage that is writable by that identity.
What to change
Enable the Helm test only if your admission policy permits its fixed test Pod identity.
Download platform-uid.values.yaml
View values
# For clusters such as OpenShift where policy assigns the Pod UID and group.
# Confirm the storage driver makes /data writable by the assigned identity.
podSecurityContext:
  runAsUser: null
  runAsGroup: null
  fsGroup: null
  fsGroupChangePolicy: null
# This policy may also reject the smoke test Pod's fixed UID.
tests:
  enabled: false

Existing Secrets

The chart never creates Secrets. It reads these keys from Secrets you create in the release namespace; each key name can be changed with the matching *Key value.

PurposeValuesRequired keys
External databasedatabase.type, database.existingSecretDATABASE_URL
Admin UIvaultwarden.adminToken.existingSecretADMIN_TOKEN, an Argon2 PHC hash
SMTP authenticationsmtp.enabled, smtp.existingSecretSMTP_USERNAME, SMTP_PASSWORD
kubectl -n vaultwarden create secret generic vaultwarden-database \
  --from-literal=DATABASE_URL='postgresql://vaultwarden:PASSWORD@db.example.com:5432/vaultwarden?sslmode=require'

# Generate the hash with: docker run --rm -it vaultwarden/server /vaultwarden hash
kubectl -n vaultwarden create secret generic vaultwarden-admin \
  --from-literal=ADMIN_TOKEN='$argon2id$v=19$m=65540,t=3,p=4$...'

kubectl -n vaultwarden create secret generic vaultwarden-smtp \
  --from-literal=SMTP_USERNAME='vaultwarden@example.com' --from-literal=SMTP_PASSWORD='PASSWORD'

Keep the single quotes, because the hash and URLs contain $ and ?. Restart the Pod after changing a Secret.

Upgrade, uninstall and migrate

Upgrade

Back up the database and /data, read the changelog and the upgrade notes, then run helm upgrade with your values file and an explicit --version. The Deployment uses Recreate, so expect a short interruption.

Uninstall

helm uninstall vaultwarden --namespace vaultwarden

The data PVC is kept. Reinstall on it with persistence.existingClaim, or back it up and delete it with kubectl -n vaultwarden delete pvc vaultwarden.

Move an existing vault

The migration guide covers reusing an existing PVC, preserving credentials, testing a restore and rolling back. SQLite cutover and independent restore were tested with synthetic data from Guerzon 0.46.4 and Gissilabs 1.4.2.

Community

vaultwarden-helm is MIT-licensed and developed in the open. Issues, examples and pull requests are welcome.