Bump vaultwarden

This commit is contained in:
Jonny Ervine
2025-01-29 21:25:25 +08:00
parent 1633d8e3dd
commit 1ce9887229
26 changed files with 1700 additions and 95 deletions
+9 -5
View File
@@ -1,9 +1,13 @@
apiVersion: v2
appVersion: 1.27.0
appVersion: 1.32.7
description: Unofficial Bitwarden compatible server written in Rust
home: https://github.com/dani-garcia/vaultwarden - bitwarden - bitwarden_rs - password
- vaultwarden
icon: https://upload.wikimedia.org/wikipedia/commons/0/03/Bitwarden_Logo.png
home: https://github.com/dani-garcia/vaultwarden
icon: https://raw.githubusercontent.com/dani-garcia/vaultwarden/main/resources/vaultwarden-icon.svg
keywords:
- bitwarden
- bitwarden_rs
- password
- vaultwarden
maintainers:
- email: silvio@gissilabs.com
name: Silvio Gissi
@@ -11,4 +15,4 @@ name: vaultwarden
sources:
- https://github.com/dani-garcia/vaultwarden
type: application
version: 1.0.0
version: 1.2.5
+27 -7
View File
@@ -33,6 +33,7 @@ database.type | Backend database type | sqlite, mysql or postgresql | sqlite
database.wal | Enable SQLite Write-Ahead-Log, ignored for external databases | true / false | true
database.url | URL of external database (MySQL/PostgreSQL) | \[mysql\|postgresql\]://user:pass@host:port\[/database\] | Empty
database.existingSecret | Use existing secret for database URL, key 'database-url' | Secret name | Not defined
database.existingSecretKey | Use different key for existing secret for database URL. If defined, `database.existingSecret` has to be defined as well | Secret name | Not defined
database.maxConnections | Set the size of the database connection pool | Number | 10
database.retries | Connection retries during startup, 0 for infinite. 1 second between retries | Number | 15
@@ -52,20 +53,21 @@ vaultwarden.invitationExpiration | Number of hours after which tokens expire (or
vaultwarden.defaultInviteName | Default organization name in invitation e-mails that are not coming from a specific organization. | Text | Vaultwarden
vaultwarden.passwordHintsAllowed | Allow users to set password hints. Applies to all users. | true / false | true
vaultwarden.showPasswordHint | Show password hints. [More Information](https://github.com/dani-garcia/vaultwarden/wiki/Password-hint-display) | true / false | false
vaultwarden.enableWebsockets | Enable Websockets for notification. [More Information](https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications). If using Ingress controllers, "notifications/hub" URL is redirected to websocket port | true / false | true
vaultwarden.enableWebVault | Enable Web Vault static site. [More Information](https://github.com/dani-garcia/vaultwarden/wiki/Disabling-or-overriding-the-Vault-interface-hosting). | true / false | true
vaultwarden.enableSends | Enable Bitwarden Sends globally. | true / false | true
vaultwarden.orgCreationUsers | Restrict creation of orgs. | 'all', 'none' or a comma-separated list of users. | all
vaultwarden.attachmentLimitOrg | Limit attachment disk usage in Kb per organization | Number | Not defined
vaultwarden.attachmentLimitUser | Limit attachment disk usage in Kb per user | Number | Not defined
vaultwarden.sendLimitUser | Limit send disk usage in Kb per user | Number | Not defined
vaultwarden.hibpApiKey | API Key to use HaveIBeenPwned service. Can be purchased at [here](https://haveibeenpwned.com/API/Key) | Text | Not defined
vaultwarden.autoDeleteDays | Number of days to auto-delete trashed items. | Number | Empty (never auto-delete)
vaultwarden.orgEvents | Enable Organization event logging | true / false | false
vaultwarden.orgEventsRetention | Organization event log retention in days | Number | Empty (never delete)
vaultwarden.extraEnv | Pass extra environment variables | Map | Not defined
vaultwarden.emailChangeAllowed | Allow users to change their email. | true / false | true
vaultwarden.extraEnv | Pass extra environment variables, either as key-value pairs or as key-reference pairs | Map | Not defined
vaultwarden.log.file | Filename to log to disk. [More information](https://github.com/dani-garcia/vaultwarden/wiki/Logging) | File path | Empty
vaultwarden.log.level | Change log level | trace, debug, info, warn, error or off | Empty
vaultwarden.log.timeFormat | Log timestamp | Rust chrono [format](https://docs.rs/chrono/0.4.15/chrono/format/strftime/index.html). | Time in milliseconds | Empty
vaultwarden.log.timeFormat | Log timestamp | Rust chrono [format](https://docs.rs/chrono/0.4.15/chrono/format/strftime/index.html). | Empty
## **Application Features**
@@ -96,7 +98,7 @@ vaultwarden.smtp.invalidCertificate | Accept invalid certificates. DANGEROUS! |
vaultwarden.smtp.user | SMTP username | Text | Not defined
vaultwarden.smtp.password | SMTP password. Required is user is specified | Text | Not defined
vaultwarden.smtp.existingSecret | Use existing secret for SMTP authentication. Keys are 'smtp-user' and 'smtp-password' | Secret name | Not defined
vaultwarden.smtp.embedImages | Embed images as email attachments | true / false | false
vaultwarden.smtp.embedImages | Embed images as email attachments | true / false | true
|||
vaultwarden.yubico.enabled | Enable Yubikey support | true / false | false
vaultwarden.yubico.server | Yubico server | Hostname | YubiCloud
@@ -109,6 +111,13 @@ vaultwarden.icons.disableDownload | Disables download of external icons, icons i
vaultwarden.icons.cache | Cache time-to-live for icons fetched. 0 means no purging | Number | 2592000. If download is disabled, defaults to 0
vaultwarden.icons.cacheFailed | Cache time-to-live for icons that were not available. 0 means no purging | Number | 2592000
vaultwarden.icons.redirectCode | HTTP code to use for redirects to an external icon service | true / false | 302
|||
vaultwarden.push.enabled | Enable Push notifications | true / false | false
vaultwarden.push.installationId | Installation ID from Bitwarden | Text | Empty
vaultwarden.push.installationKey | Installation Key from Bitwarden | Text | Empty
vaultwarden.push.relayUri | Relay URI, should not need to change | URL | https://push.bitwarden.com
vaultwarden.push.identityUri | Identity URI, should not need to change | URL | https://push.bitwarden.com
vaultwarden.push.existingSecret | Use existing secret for Push notifications. Keys are 'push-id' and 'push-key' | Secret name | Not defined
## **Network**
@@ -116,19 +125,18 @@ Option | Description | Format | Default
------ | ----------- | ------ | -------
service.type | Service Type. [More Information](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) | Type | ClusterIP
service.httpPort | Service port for HTTP server | Number | 80
service.websocketPort | Service port for Websocket server, if enabled | Number | 3012
service.externalTrafficPolicy | External Traffic Policy. [More Information](https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/#preserving-the-client-source-ip) | Local / Cluster| Cluster
service.loadBalancerIP | Manually select IP when type is LoadBalancer | IP address | Not defined
service.nodePorts.http | Manually select node port for http | Number | Empty
service.nodePorts.websocket | Manually select node port for websocker, if enabled | Number | Empty
|||
ingress.enabled | Enable Ingress | true / false | false
ingress.className | Name of the ingress class | string | Empty
ingress.className | Name of the ingress class | Text | Empty
ingress.host | Ingress hostname **required** | Hostname | Empty
ingress.annotations | Ingress annotations | Map | Empty
ingress.tls | Ingress TLS options | Array of Maps | Empty
|||
ingressRoute.enabled | Enable Traefik IngressRoute CRD | true / false | false
ingressRoute.newCRD | Traefik 2.10 and above uses a new CRD namespace (traefik.io) | true / false | false
ingressRoute.host | Ingress route hostname **required** | Hostname | Empty
ingressRoute.middlewares | Enable middlewares | Map | Empty
ingressRoute.entrypoints | List of Traefik endpoints | Array of Text | \[websecure\]
@@ -143,7 +151,9 @@ persistence.size | Size of volume | Size | 1Gi
persistence.accessMode | Volume access mode | Text | ReadWriteOnce
persistence.storageClass | Storage Class | Text | Not defined. Use "-" for default class
persistence.existingClaim | Use existing PVC | Name of PVC | Not defined
persistence.annotations | PVC annotations | Map | Empty
customVolume | Use custom volume definition. Cannot be used with persistence | Map | Empty
additionalVolumes | Additional volumes definitions, to be used by sidecars [Spec](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#volumes) | Array | Empty
## **Image**
@@ -165,6 +175,8 @@ serviceAccount.create | Create Service Account | true / false | false
serviceAccount.annotations | Annotations service account | Map | Empty
serviceAccount.name | Service Account name | Text | Generated from template
deploymentAnnotations | Deployment Annotations | Map | Empty
probes.liveness | Liveness options [Spec](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes) | Map | Empty
probes.readiness | Readiness options [Spec](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes) | Map | Empty
sidecars | Sidecar container definition [Spec](https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container) | Array | Empty
podAnnotations | Pod Annotations | Map | Empty
podLabels | Extra Pod Labels | Map | Empty
@@ -177,6 +189,14 @@ affinity | Affinity | Map | Empty
## Upgrade
### From 1.1 to 1.2
Dropped support for Ingress on Kubernetes versions 1.18 or older. [More details](https://kubernetes.io/docs/reference/using-api/deprecation-guide/#ingressclass-v122). 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.
### From 0.x to 1.x
Vaultwarden version before v1.25.0 had a [bug/mislabelled](https://github.com/dani-garcia/vaultwarden/issues/851) configuration setting regarding SSL and TLS. This has been fixed in testing and newer released versions. When image version is 1.25 or higher, use vaultwarden.smtp.security instead of vaultwarden.smtp.ssl/vaultwarden.smtp.explicitTLS.
-4
View File
@@ -4,10 +4,6 @@
{{- else if .Values.ingressRoute.enabled }}
http{{ if $.Values.ingressRoute.tls }}s{{ end }}://{{ .Values.ingressRoute.host }}/
{{- else }}
{{- if eq .Values.vaultwarden.enableWebsockets true }}
NOTE: the websocket listens on a different port and might not work unless /notifications/hub is redirected externally.
{{- end }}
{{- if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "vaultwarden.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
+53 -11
View File
@@ -36,6 +36,10 @@ spec:
serviceAccountName: {{ include "vaultwarden.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- if .Values.initContainers }}
initContainers:
{{- toYaml .Values.initContainers | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
securityContext:
@@ -81,8 +85,6 @@ spec:
{{- end }}
- name: SHOW_PASSWORD_HINT
value: {{ .Values.vaultwarden.showPasswordHint | quote }}
- name: WEBSOCKET_ENABLED
value: {{ .Values.vaultwarden.enableWebsockets | quote }}
- name: WEB_VAULT_ENABLED
value: {{ .Values.vaultwarden.enableWebVault | quote }}
- name: SENDS_ALLOWED
@@ -97,6 +99,10 @@ spec:
- name: USER_ATTACHMENT_LIMIT
value: {{ .Values.vaultwarden.attachmentLimitUser | quote }}
{{- end }}
{{- if .Values.vaultwarden.sendLimitUser }}
- name: USER_SEND_LIMIT
value: {{ .Values.vaultwarden.sendLimitUser | quote }}
{{- end }}
{{- if .Values.vaultwarden.hibpApiKey }}
- name: HIBP_API_KEY
value: {{ .Values.vaultwarden.hibpApiKey | quote }}
@@ -113,10 +119,22 @@ spec:
- name: EVENTS_DAYS_RETAIN
value: {{ .Values.vaultwarden.orgEventsRetention | quote }}
{{- end }}
{{- if hasKey .Values.vaultwarden "emailChangeAllowed" }}
- name: EMAIL_CHANGE_ALLOWED
value: {{ .Values.vaultwarden.emailChangeAllowed | quote }}
{{- end }}
{{- if .Values.vaultwarden.extraEnv }}
{{- range $key, $val := .Values.vaultwarden.extraEnv }}
- name: {{ $key }}
{{- if kindIs "string" $val }}
value: {{ $val | quote }}
{{- else if or (hasKey $val "secretKeyRef") (hasKey $val "configMapKeyRef") }}
valueFrom:
{{- $val | toYaml | nindent 16 }}
{{- else }}
{{- fail "Items in extraEnv must be either text or contain a valueFrom key (configMapKeyRef or secretKeyRef)" }}
{{- end }}
{{- end }}
{{- end }}
{{- include "vaultwarden.dbTypeValid" . }}
@@ -138,7 +156,7 @@ spec:
valueFrom:
secretKeyRef:
name: {{ if .Values.database.existingSecret }}{{ .Values.database.existingSecret }}{{else}}{{ include "vaultwarden.fullname" . }}{{end}}
key: database-url
key: {{ if and .Values.database.existingSecret .Values.database.existingSecretKey }}{{ .Values.database.existingSecretKey }}{{else}}database-url{{end}}
{{- end }}
{{- if .Values.vaultwarden.domain }}
- name: DOMAIN
@@ -273,9 +291,9 @@ spec:
{{- if .Values.vaultwarden.icons.disableDownload }}
- name: DISABLE_ICON_DOWNLOAD
value: {{ .Values.vaultwarden.icons.disableDownload | quote }}
{{- if and (not .Values.vaultwarden.icons.cache) (eq .Values.vaultwarden.icons.disableDownload "true") }}
{{- if and (not .Values.vaultwarden.icons.cache) (.Values.vaultwarden.icons.disableDownload) }}
- name: ICON_CACHE_TTL
value: 0
value: "0"
{{- end }}
{{- end }}
{{- if .Values.vaultwarden.icons.cache }}
@@ -289,24 +307,45 @@ spec:
{{- if hasKey .Values.vaultwarden.icons "redirectCode" }}
- name: ICON_REDIRECT_CODE
value: {{ .Values.vaultwarden.icons.redirectCode | quote }}
{{- end }}
{{- end }}
{{- if eq .Values.vaultwarden.push.enabled true }}
- name: PUSH_INSTALLATION_ID
valueFrom:
secretKeyRef:
name: {{ .Values.vaultwarden.push.existingSecret | default (include "vaultwarden.fullname" .) }}
key: push-id
- name: PUSH_INSTALLATION_KEY
valueFrom:
secretKeyRef:
name: {{ .Values.vaultwarden.push.existingSecret | default (include "vaultwarden.fullname" .) }}
key: push-key
{{- if hasKey .Values.vaultwarden.push "relayUri" }}
- name: PUSH_RELAY_URI
value: {{ .Values.vaultwarden.push.relayUri | quote }}
{{- end }}
{{- if hasKey .Values.vaultwarden.push "identityUri" }}
- name: PUSH_IDENTITY_URI
value: {{ .Values.vaultwarden.push.identityUri | quote }}
{{- end }}
{{- end }}{{/* Push */}}
ports:
- name: http
containerPort: 8080
protocol: TCP
{{- if .Values.vaultwarden.enableWebsockets }}
- name: websocket
containerPort: 3012
protocol: TCP
{{- end }}
livenessProbe:
httpGet:
path: {{ include "vaultwarden.domainSubPath" . }}
port: http
{{- if .Values.probes.liveness }}
{{- toYaml .Values.probes.liveness | nindent 12 }}
{{- end }}
readinessProbe:
httpGet:
path: {{ include "vaultwarden.domainSubPath" . }}
port: http
{{- if .Values.probes.readiness }}
{{- toYaml .Values.probes.readiness | nindent 12 }}
{{- end }}
volumeMounts:
- name: {{ include "vaultwarden.fullname" . }}
mountPath: /data
@@ -328,6 +367,9 @@ spec:
{{- else }}
emptyDir: {}
{{- end }}
{{- if .Values.additionalVolumes }}
{{- toYaml .Values.additionalVolumes | nindent 6 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
+1 -30
View File
@@ -1,12 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "vaultwarden.fullname" . -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" -}}
apiVersion: networking.k8s.io/v1
{{- else if .Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress" -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
@@ -34,34 +28,11 @@ spec:
- host: {{ required "Host required for ingress" .Values.ingress.host | quote }}
http:
paths:
{{- if .Values.vaultwarden.enableWebsockets }}
- path: "/notifications/hub"
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: Prefix
{{- end }}
backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service:
name: {{ $fullName }}
port:
number: {{ .Values.service.websocketPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ .Values.service.websocketPort }}
{{- end }}
{{- end }}
- path: "/"
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
pathType: Prefix
{{- end }}
backend:
{{- if $.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress" }}
service:
name: {{ $fullName }}
port:
number: {{ .Values.service.httpPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ .Values.service.httpPort }}
{{- end }}
name: http
{{- end }}
+4 -11
View File
@@ -1,7 +1,11 @@
{{- if .Values.ingressRoute.enabled -}}
{{- $fullName := include "vaultwarden.fullname" . -}}
{{- $host := (required "Host required for IngressRoute" .Values.ingressRoute.host ) -}}
{{- if .Values.ingressRoute.newCRD }}
apiVersion: traefik.io/v1alpha1
{{- else }}
apiVersion: traefik.containo.us/v1alpha1
{{- end }}
kind: IngressRoute
metadata:
name: {{ $fullName }}
@@ -13,17 +17,6 @@ spec:
- {{ . | quote }}
{{- end }}
routes:
{{- if .Values.vaultwarden.enableWebsockets }}
- match: Host(`{{ $host }}`) && PathPrefix(`/notifications/hub`)
kind: Rule
{{- if .Values.ingressRoute.middlewares }}
middlewares:
{{- toYaml .Values.ingressRoute.middlewares | nindent 6 }}
{{- end }}
services:
- name: {{ $fullName }}
port: {{ .Values.service.websocketPort }}
{{- end }}
- match: Host(`{{ $host }}`)
kind: Rule
{{- if .Values.ingressRoute.middlewares }}
+4
View File
@@ -3,6 +3,10 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: {{ include "vaultwarden.fullname" . }}
{{- with .Values.persistence.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
+10 -1
View File
@@ -18,7 +18,12 @@
{{- $yubicoClientId = required "Yubico Client ID required" .Values.vaultwarden.yubico.clientId | toString | b64enc | quote }}
{{- end -}}
{{- if or (ne $adminToken "") (ne $databaseUrl "") (ne $smtpUser "" ) (ne $yubicoClientId "") }}
{{- $pushId := "" }}
{{- if and (eq .Values.vaultwarden.push.enabled true ) (not .Values.vaultwarden.push.existingSecret) }}
{{- $pushId = required "Push Installation ID required" .Values.vaultwarden.push.installationId | toString | b64enc | quote }}
{{- end -}}
{{- if or (ne $adminToken "") (ne $databaseUrl "") (ne $smtpUser "" ) (ne $yubicoClientId "") (ne $pushId "") }}
apiVersion: v1
kind: Secret
metadata:
@@ -40,4 +45,8 @@ data:
yubico-client-id: {{ $yubicoClientId }}
yubico-secret-key: {{ required "Yubico Secret Key required" .Values.vaultwarden.yubico.secretKey | b64enc | quote }}
{{- end }}
{{- if ne $pushId "" }}
push-id: {{ $pushId }}
push-key: {{ required "Push Installation Key required" .Values.vaultwarden.push.installationKey | b64enc | quote }}
{{- end }}
{{- end }}
-9
View File
@@ -20,14 +20,5 @@ spec:
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.http)))}}
nodePort: {{ .Values.service.nodePorts.http }}
{{- end }}
{{- if .Values.vaultwarden.enableWebsockets }}
- name: websocket
port: {{ .Values.service.websocketPort }}
targetPort: websocket
protocol: TCP
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.nodePorts.websocket)))}}
nodePort: {{ .Values.service.nodePorts.websocket }}
{{- end }}
{{- end }}
selector:
{{- include "vaultwarden.selectorLabels" . | nindent 4 }}
+62 -9
View File
@@ -9,6 +9,8 @@ database:
url: "postgresql://vaultwarden:0UnBYmhT7LZ1GePohx13zRxIKM30TZA0m3GZTjgFh0dBiwENwOtZZqcPlyhMXIUD@home-postgres.db.svc.cluster.local:5432/vw"
## Use existing secret for database URL, key 'database-url'.
existingSecret: vw-home-vaultwarden
## Use a different key for the existing secret.
#existingSecretKey:
## Set the size of the database connection pool.
#maxConnections: 10
## Connection retries during startup, 0 for infinite. 1 second between retries.
@@ -42,9 +44,6 @@ vaultwarden:
showPasswordHint: false
## Default organization name in invitation e-mails that are not coming from a specific organization.
#defaultInviteName: ""
# Enable Websockets for notification. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications
# Redirect HTTP path "/notifications/hub" to port 3012. Ingress/IngressRoute controllers are automatically configured.
enableWebsockets: true
# Enable Web Vault (static content). https://github.com/dani-garcia/vaultwarden/wiki/Disabling-or-overriding-the-Vault-interface-hosting
enableWebVault: true
# Enable Bitwarden Sends globally
@@ -55,6 +54,8 @@ vaultwarden:
#attachmentLimitOrg:
## Limit attachment disk usage per user.
#attachmentLimitUser:
## Limit send disk usage per user.
#sendLimitUser:
## HaveIBeenPwned API Key. Can be purchased at https://haveibeenpwned.com/API/Key.
#hibpApiKey:
## Number of days to auto-delete trashed items. By default iteams are not auto-deleted.
@@ -63,14 +64,24 @@ vaultwarden:
#orgEvents: false
## Organization event retation. Leave empty to not delete.
#orgEventsRetention: ""
## Allow users to change their email.
#emailChangeAllowed: true
## Map of custom environment variables. Use carefully.
#extraEnv:
# IP_HEADER: CF-Connecting-IP
# ALLOWED_IFRAME_ANCESTORS: myintranet.local
# COOL_VARIABLE:
# secretKeyRef:
# name: my-secret
# key: my-secret-key
# ANOTHER_VARIABLE:
# configMapKeyRef:
# name: my-config-map
# key: my-config-map-key
admin:
# Enable admin portal.
enabled: true
enabled: admin
# Disabling the admin token will make the admin portal accessible to anyone, use carefully: https://github.com/dani-garcia/vaultwarden/wiki/Disable-admin-token
disableAdminToken: false
## Token for admin login, will be generated if not defined. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-admin-page
@@ -120,7 +131,7 @@ vaultwarden:
## Use existing secret for SMTP authentication. Keys are 'smtp-user' and 'smtp-password'.
#existingSecret:
## Embed images as email attachments
#embedImages: false
#embedImages: true
## Enable Yubico OPT authentication. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Yubikey-OTP-authentication
yubico:
@@ -154,21 +165,33 @@ vaultwarden:
## HTTP code for redirect to external icon service
#redirectCode: 302
# Push notifications. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Mobile-Client-push-notification
push:
enabled: false
## Installation ID from Bitwarden.
#installationId:
## Installation Key from Bitwarden.
#installationKey:
## Relay URI
#relayUri:
## Identity URI
#identityUri:
## Use existing secret for Push notifications. Keys are 'push-id' and 'push-key'.
#existingSecret:
service:
type: ClusterIP
httpPort: 80
websocketPort: 3012
externalTrafficPolicy: Cluster
# loadBalancerIP:
nodePorts:
# Choose NodePorts manually
http: ""
websocket: ""
# Kubernetes Ingress
ingress:
enabled: true
className: nginx
className: "nginx"
host: "warden.ervine.cloud"
annotations: {}
# kubernetes.io/ingress.class: nginx
@@ -181,6 +204,8 @@ ingress:
# Traefik IngressRoute CRD
ingressRoute:
enabled: false
# Starting on Traefik 2.10, the IngressRoute CRD moved to traefik.io namespace
newCRD: false
# Mandatory to enable IngressRoute
host: ""
entrypoints:
@@ -200,13 +225,17 @@ persistence:
# storageClass: "-"
## Use existing Persistent Volume Claim
existingClaim: vw-home-vaultwarden
## Annotations to add to the Persistent Volume Claim
annotations: {}
# Use custom volume definition. Cannot be used with persistence.
customVolume: {}
#hostPath:
# path: "/examplefolder/vaultwarden"
# Additional volumes, to be used by sidecars
#additionalVolumes: []
image:
pullPolicy: IfNotPresent
repository: vaultwarden/server
@@ -232,6 +261,30 @@ podLabels: {}
# Annotations to add to the Deployment
deploymentAnnotations: {}
# Readiness and Liveness probes
probes: {}
#liveness:
#timeoutSeconds: 1
#periodSeconds: 10
#successThreshold: 1
#failureThreshold: 3
#readiness:
#timeoutSeconds: 1
#periodSeconds: 10
#successThreshold: 1
#failureThreshold: 3
# initContainers containers, add container spec (https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container)
# No templating possible, values need to be hardcoded
initContainers: []
# - name: initcontainer
# image: initcontainer:1.2.3
# env:
# - name: INITCONTAINER_END
# value: "initcontainer"
# volumeMounts:
# - name: vaultwarden
# mountPath: /data
# Sidecar containers, add container spec (https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container)
# No templating possible, values need to be hardcoded
+61 -8
View File
@@ -9,6 +9,8 @@ database:
#url: ""
## Use existing secret for database URL, key 'database-url'.
#existingSecret:
## Use a different key for the existing secret.
#existingSecretKey:
## Set the size of the database connection pool.
#maxConnections: 10
## Connection retries during startup, 0 for infinite. 1 second between retries.
@@ -42,9 +44,6 @@ vaultwarden:
showPasswordHint: false
## Default organization name in invitation e-mails that are not coming from a specific organization.
#defaultInviteName: ""
# Enable Websockets for notification. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-WebSocket-notifications
# Redirect HTTP path "/notifications/hub" to port 3012. Ingress/IngressRoute controllers are automatically configured.
enableWebsockets: true
# Enable Web Vault (static content). https://github.com/dani-garcia/vaultwarden/wiki/Disabling-or-overriding-the-Vault-interface-hosting
enableWebVault: true
# Enable Bitwarden Sends globally
@@ -55,6 +54,8 @@ vaultwarden:
#attachmentLimitOrg:
## Limit attachment disk usage per user.
#attachmentLimitUser:
## Limit send disk usage per user.
#sendLimitUser:
## HaveIBeenPwned API Key. Can be purchased at https://haveibeenpwned.com/API/Key.
#hibpApiKey:
## Number of days to auto-delete trashed items. By default iteams are not auto-deleted.
@@ -63,10 +64,20 @@ vaultwarden:
#orgEvents: false
## Organization event retation. Leave empty to not delete.
#orgEventsRetention: ""
## Allow users to change their email.
#emailChangeAllowed: true
## Map of custom environment variables. Use carefully.
#extraEnv:
# IP_HEADER: CF-Connecting-IP
# ALLOWED_IFRAME_ANCESTORS: myintranet.local
# COOL_VARIABLE:
# secretKeyRef:
# name: my-secret
# key: my-secret-key
# ANOTHER_VARIABLE:
# configMapKeyRef:
# name: my-config-map
# key: my-config-map-key
admin:
# Enable admin portal.
@@ -120,7 +131,7 @@ vaultwarden:
## Use existing secret for SMTP authentication. Keys are 'smtp-user' and 'smtp-password'.
#existingSecret:
## Embed images as email attachments
#embedImages: false
#embedImages: true
## Enable Yubico OPT authentication. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Yubikey-OTP-authentication
yubico:
@@ -154,21 +165,33 @@ vaultwarden:
## HTTP code for redirect to external icon service
#redirectCode: 302
# Push notifications. https://github.com/dani-garcia/vaultwarden/wiki/Enabling-Mobile-Client-push-notification
push:
enabled: false
## Installation ID from Bitwarden.
#installationId:
## Installation Key from Bitwarden.
#installationKey:
## Relay URI
#relayUri:
## Identity URI
#identityUri:
## Use existing secret for Push notifications. Keys are 'push-id' and 'push-key'.
#existingSecret:
service:
type: ClusterIP
httpPort: 80
websocketPort: 3012
externalTrafficPolicy: Cluster
# loadBalancerIP:
nodePorts:
# Choose NodePorts manually
http: ""
websocket: ""
# Kubernetes Ingress
ingress:
enabled: false
# className: nginx
className: ""
host: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
@@ -181,6 +204,8 @@ ingress:
# Traefik IngressRoute CRD
ingressRoute:
enabled: false
# Starting on Traefik 2.10, the IngressRoute CRD moved to traefik.io namespace
newCRD: false
# Mandatory to enable IngressRoute
host: ""
entrypoints:
@@ -200,13 +225,17 @@ persistence:
# storageClass: "-"
## Use existing Persistent Volume Claim
# existingClaim:
## Annotations to add to the Persistent Volume Claim
annotations: {}
# Use custom volume definition. Cannot be used with persistence.
customVolume: {}
#hostPath:
# path: "/examplefolder/vaultwarden"
# Additional volumes, to be used by sidecars
#additionalVolumes: []
image:
pullPolicy: IfNotPresent
repository: vaultwarden/server
@@ -232,6 +261,30 @@ podLabels: {}
# Annotations to add to the Deployment
deploymentAnnotations: {}
# Readiness and Liveness probes
probes: {}
#liveness:
#timeoutSeconds: 1
#periodSeconds: 10
#successThreshold: 1
#failureThreshold: 3
#readiness:
#timeoutSeconds: 1
#periodSeconds: 10
#successThreshold: 1
#failureThreshold: 3
# initContainers containers, add container spec (https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container)
# No templating possible, values need to be hardcoded
initContainers: []
# - name: initcontainer
# image: initcontainer:1.2.3
# env:
# - name: INITCONTAINER_END
# value: "initcontainer"
# volumeMounts:
# - name: vaultwarden
# mountPath: /data
# Sidecar containers, add container spec (https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#Container)
# No templating possible, values need to be hardcoded