nameOverride: ""
fullnameOverride: ""
commonLabels: {}

# One Vaultwarden Pod. Set to zero for offline maintenance.
replicaCount: 1
image:
  repository: docker.io/vaultwarden/server
  tag: "" # Empty uses Chart.appVersion.
  digest: "" # Optional sha256:... digest takes precedence over tag.
  pullPolicy: IfNotPresent
imagePullSecrets: [] # Native [{name: registry-secret}].

vaultwarden:
  # The public HTTPS origin. The default is for kubectl port-forward only.
  # Set this to the exact client-facing origin when using an Ingress or HTTPRoute.
  domain: http://localhost:8080
  bindAddress: "0.0.0.0" # Rocket address. Use "::" for an IPv6-only Pod network.
  signupsAllowed: false
  invitationsAllowed: true
  webVaultEnabled: true
  adminToken:
    existingSecret: "" # The admin UI is disabled when this is empty.
    key: ADMIN_TOKEN # Prefer an Argon2 PHC hash in this Secret.

database:
  # SQLite stores its DB under /data. Use an external PostgreSQL or
  # MySQL/MariaDB server by switching type and referencing a connection URL.
  type: sqlite # sqlite | postgresql | mysql
  existingSecret: ""
  key: DATABASE_URL

smtp:
  enabled: false
  host: ""
  from: ""
  security: starttls # starttls | force_tls | "off".
  port: null # Empty lets Vaultwarden select the port for the security mode.
  existingSecret: "" # Optional for an unauthenticated internal relay.
  usernameKey: SMTP_USERNAME
  passwordKey: SMTP_PASSWORD

# Extra non-sensitive upstream configuration, converted to strings.
# env: {LOG_LEVEL: warn, DISABLE_ICON_DOWNLOAD: true}
env: {}
# Use native Kubernetes references to consume additional Secret or ConfigMap keys.
extraEnv: []
envFrom: []
extraVolumes: []
extraVolumeMounts: []

persistence:
  enabled: true
  existingClaim: "" # In the release namespace. Helm does not manage this claim.
  storageClass: null # null uses the default class. "" requests no class.
  accessModes: [ReadWriteOnce]
  size: 5Gi
  retain: true # Keep a chart-created PVC when uninstalling the release.
  annotations: {}
  # Disabling persistence uses emptyDir, which loses all /data on Pod replacement.

service:
  type: ClusterIP
  port: 80
  targetPort: 8080 # Unprivileged Vaultwarden HTTP and WebSocket port.
  nodePort: null # Optional with NodePort or LoadBalancer.
  annotations: {}
  spec: {} # Extra Service fields, such as externalTrafficPolicy.

ingress:
  enabled: false
  className: "" # Select an installed IngressClass.
  annotations: {} # Controller-specific options or cert-manager issuer.
  host: "" # Empty uses vaultwarden.domain's hostname.
  tls:
    secretName: "" # Reference a TLS Secret, or leave empty if TLS terminates upstream.

httpRoute:
  enabled: false # Requires Gateway API CRDs and a compatible Gateway.
  annotations: {}
  hostnames: [] # Empty uses vaultwarden.domain's hostname.
  parentRefs: [] # Example: [{name: public, namespace: gateway-system, sectionName: https}]

networkPolicy:
  enabled: false # Requires CNI support.
  # Set explicit policyTypes and the peers your cluster needs. Keep access to
  # the Service and Helm test Pod, DNS, your database and SMTP as appropriate.
  spec: {}

serviceAccount:
  create: true
  name: ""
  annotations: {}
  automountServiceAccountToken: false

resources:
  requests: {cpu: 50m, memory: 128Mi}
  limits: {memory: 512Mi}
podSecurityContext:
  runAsNonRoot: true
  runAsUser: 1000
  runAsGroup: 1000
  fsGroup: 1000
  fsGroupChangePolicy: OnRootMismatch
  seccompProfile: {type: RuntimeDefault}
securityContext:
  allowPrivilegeEscalation: false
  readOnlyRootFilesystem: true
  capabilities: {drop: [ALL]}
podAnnotations: {}
podLabels: {}
nodeSelector: {}
tolerations: []
affinity: {}
priorityClassName: ""
terminationGracePeriodSeconds: 30

# Native Kubernetes probe settings. Set null to disable an individual probe.
startupProbe:
  httpGet: {path: /alive, port: http}
  periodSeconds: 5
  failureThreshold: 30
readinessProbe:
  httpGet: {path: /alive, port: http}
  periodSeconds: 10
livenessProbe:
  httpGet: {path: /alive, port: http}
  periodSeconds: 30

tests:
  enabled: true
  image: docker.io/busybox:1.37.0
