Commit new App releases for TrueCharts

Signed-off-by: TrueCharts-Bot <bot@truecharts.org>
This commit is contained in:
TrueCharts-Bot 2021-05-31 09:40:20 +00:00
parent 908ba2f6d0
commit 444fd44c4c
58 changed files with 1658 additions and 43 deletions

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:04.940160613Z"
generated: "2021-05-31T09:39:05.51115025Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:04.15209404Z"
generated: "2021-05-31T09:39:04.611842665Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:41.916310864Z"
generated: "2021-05-31T09:38:39.59843172Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:42.634745687Z"
generated: "2021-05-31T09:38:40.52835732Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:43.345395169Z"
generated: "2021-05-31T09:38:41.457219863Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:44.055360348Z"
generated: "2021-05-31T09:38:42.397131885Z"

View File

@ -6,4 +6,4 @@ dependencies:
repository: https://charts.bitnami.com/bitnami
version: 10.4.7
digest: sha256:a67cf9cc37b12ef21c5acc2f44bfa8cc6a523704604a481ecbe6985ceb3f32c0
generated: "2021-05-31T00:08:47.797714431Z"
generated: "2021-05-31T09:38:45.800288433Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:52.073705567Z"
generated: "2021-05-31T09:38:49.41269111Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:52.774007193Z"
generated: "2021-05-31T09:38:50.324403287Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:53.510653906Z"
generated: "2021-05-31T09:38:51.306394051Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:54.283338906Z"
generated: "2021-05-31T09:38:52.224347425Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:55.09618621Z"
generated: "2021-05-31T09:38:53.22446343Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:55.856289441Z"
generated: "2021-05-31T09:38:54.131270217Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:56.604577612Z"
generated: "2021-05-31T09:38:55.058371318Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:57.337259101Z"
generated: "2021-05-31T09:38:55.987829979Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:58.071224197Z"
generated: "2021-05-31T09:38:56.928016375Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:58.757300246Z"
generated: "2021-05-31T09:38:57.872860432Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:59.470084032Z"
generated: "2021-05-31T09:38:58.844198443Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:00.241750023Z"
generated: "2021-05-31T09:38:59.761548468Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:01.030594503Z"
generated: "2021-05-31T09:39:00.780730188Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:01.78204889Z"
generated: "2021-05-31T09:39:01.752815657Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:02.608985065Z"
generated: "2021-05-31T09:39:02.691067803Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:09:03.379320246Z"
generated: "2021-05-31T09:39:03.625140424Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:17.655636315Z"
generated: "2021-05-31T09:38:12.646814542Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:18.585366104Z"
generated: "2021-05-31T09:38:13.596931788Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:19.448013734Z"
generated: "2021-05-31T09:38:14.641070609Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:20.218902271Z"
generated: "2021-05-31T09:38:15.579400818Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:20.96602288Z"
generated: "2021-05-31T09:38:16.528507087Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:21.736211614Z"
generated: "2021-05-31T09:38:17.398037561Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:22.520607413Z"
generated: "2021-05-31T09:38:18.354386914Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:23.272462325Z"
generated: "2021-05-31T09:38:19.345548943Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:24.006812644Z"
generated: "2021-05-31T09:38:20.307645837Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:24.76498059Z"
generated: "2021-05-31T09:38:21.214780404Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:25.488848752Z"
generated: "2021-05-31T09:38:22.143263213Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:26.420003821Z"
generated: "2021-05-31T09:38:23.121606157Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:27.176464358Z"
generated: "2021-05-31T09:38:24.030518585Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:27.92651266Z"
generated: "2021-05-31T09:38:24.998340171Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:28.684388104Z"
generated: "2021-05-31T09:38:25.985825516Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:29.44807468Z"
generated: "2021-05-31T09:38:26.905593389Z"

View File

@ -6,4 +6,4 @@ dependencies:
repository: https://helm.traefik.io/traefik
version: 9.19.1
digest: sha256:6837d576d0a80cb63dcd82a8dd3a2e7e5ea10f710b1ef1d5c29ce3af4eb3fbfe
generated: "2021-05-31T00:08:30.532545422Z"
generated: "2021-05-31T09:38:28.249629323Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:32.493056821Z"
generated: "2021-05-31T09:38:30.444716578Z"

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:33.225470431Z"
generated: "2021-05-31T09:38:31.366192787Z"

View File

@ -0,0 +1,8 @@
# Configuration Options
##### Connecting to other apps
If you need to connect this App to other Apps on TrueNAS SCALE, please refer to our "Linking Apps Together" guide:
https://truecharts.org/manual/linking/
##### Available config options
In the future this page is going to contain an automated list of options available in the installation/edit UI.

View File

@ -0,0 +1,9 @@
dependencies:
- name: common
repository: https://truecharts.org/
version: 5.1.3
- name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 10.4.7
digest: sha256:a67cf9cc37b12ef21c5acc2f44bfa8cc6a523704604a481ecbe6985ceb3f32c0
generated: "2021-05-31T09:38:34.801151533Z"

View File

@ -0,0 +1,34 @@
apiVersion: v2
appVersion: auto
dependencies:
- name: common
repository: https://truecharts.org/
version: 5.1.3
- condition: postgresql.enabled
name: postgresql
repository: https://charts.bitnami.com/bitnami
version: 10.4.7
deprecated: false
description: Unofficial Bitwarden compatible server written in Rust
home: https://github.com/truecharts/apps/tree/master/charts/stable/vaultwarden
icon: https://raw.githubusercontent.com/bitwarden/brand/master/icons/256x256.png
keywords:
- bitwarden
- bitwardenrs
- bitwarden_rs
- vaultwarden
- password
- rust
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: truecharts.org
- email: kjeld@schouten-lebbing.nl
name: Ornias1993
url: truecharts.org
name: vaultwarden
sources:
- https://github.com/dani-garcia/vaultwarden
type: application
version: 2.2.5

View File

@ -0,0 +1,56 @@
# Introduction
![Version: 1.2.5](https://img.shields.io/badge/Version-1.2.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: auto](https://img.shields.io/badge/AppVersion-auto-informational?style=flat-square)
Unofficial Vaultwarden compatible server written in Rust
TrueCharts are designed to be installed as TrueNAS SCALE app only. We can not guarantee this charts works as a stand-alone helm installation.
**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/apps/issues/new/choose)**
## Source Code
* <https://github.com/truecharts/apps/tree/master/incubator/Vaultwarden>
* <https://github.com/k8s-at-home/charts/tree/master/charts/stable/Vaultwardenrs>
* <https://github.com/dani-garcia/Vaultwarden_rs>
## Requirements
Kubernetes: `>=1.16.0-0`
## Dependencies
| Repository | Name | Version |
|------------|------|---------|
| https://charts.bitnami.com/bitnami | postgresql | 10.4.2 |
| https://truecharts.org/ | common | 3.5.5 |
## Installing the Chart
To install the chart with the release name `Vaultwarden`
- Open TrueNAS SCALE
- Go to Apps
- Click "Install" for this specific Apps
- Fill out the configuration form
## Uninstalling the Chart
To uninstall the `Vaultwarden` deployment
- Open TrueNAS SCALE
- Go to Apps
- Go to "Installed Apps"
- Expand the menu in the top-right corner of this App
- Click "Remove" for this specific Apps
The command removes all the Kubernetes components associated with the chart **including storage volumes** _(Except hostPath Storage)_ and deletes the release.
## Support
- See the [Wiki](https://truecharts.org)
- Open a [issue](https://github.com/truecharts/apps/issues/new/choose)
- Ask a [question](https://github.com/truecharts/apps/discussions)
----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.5.0](https://github.com/norwoodj/helm-docs/releases/v1.5.0)
All Rights Reserved - The TrueCharts Project

View File

@ -0,0 +1,3 @@
Unofficial Bitwarden compatible server written in Rust
This App is supplied by TrueCharts, for more information please visit https://truecharts.org
Unofficial Bitwarden compatible server written in Rust

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,54 @@
##
# This file contains Values.yaml content that gets added to the output of questions.yaml
# It's ONLY meant for content that the user is NOT expected to change.
# Example: Everything under "image" is not included in questions.yaml but is included here.
##
image:
repository: vaultwarden/server
pullPolicy: IfNotPresent
tag: 1.21.0
envTpl:
DOMAIN: "https://{{ if .Values.ingress }}{{ if .Values.ingress.main.enabled }}{{ ( index .Values.ingress.main.hosts 0 ).host }}{{ else }}placeholder.com{{ end }}{{ else }}placeholder.com{{ end }}"
envFrom:
- configMapRef:
name: vaultwardenconfig
- secretRef:
name: vaultwardensecret
envValueFrom:
DATABASE_URL:
secretKeyRef:
name: dbcreds
key: url
database:
# Database type, must be one of: 'sqlite', 'mysql' or 'postgresql'.
type: postgresql
# Enable DB Write-Ahead-Log for SQLite, disabled for other databases. https://github.com/dani-garcia/bitwarden_rs/wiki/Running-without-WAL-enabled
wal: false
## URL for external databases (mysql://user:pass@host:port or postgresql://user:pass@host:port).
# url: ""
## Set the size of the database connection pool.
# maxConnections: 10
## Connection retries during startup, 0 for infinite. 1 second between retries.
retries: 30
# Enabled postgres
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
postgresql:
enabled: true
postgresqlUsername: homeassistant
postgresqlDatabase: homeassistant
existingSecret: dbcreds
persistence:
enabled: true
existingClaim: db
##
# Most other defaults are set in questions.yaml
# For other options please refer to the wiki, default_values.yaml or the common library chart
##

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,116 @@
{{/* Define the configmap */}}
{{- define "vaultwarden.configmap" -}}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: vaultwardenconfig
data:
ROCKET_PORT: "8080"
SIGNUPS_ALLOWED: {{ .Values.vaultwarden.allowSignups | quote }}
{{- if .Values.vaultwarden.signupDomains }}
SIGNUPS_DOMAINS_WHITELIST: {{ join "," .Values.vaultwarden.signupDomains | quote }}
{{- end }}
{{- if and (eq .Values.vaultwarden.verifySignup true) (eq .Values.vaultwarden.smtp.enabled false) }}{{ required "Signup verification requires SMTP to be enabled" nil}}{{end}}
SIGNUPS_VERIFY: {{ .Values.vaultwarden.verifySignup | quote }}
{{- if and (eq .Values.vaultwarden.requireEmail true) (eq .Values.vaultwarden.smtp.enabled false) }}{{ required "Requiring emails for login depends on SMTP" nil}}{{end}}
REQUIRE_DEVICE_EMAIL: {{ .Values.vaultwarden.requireEmail | quote }}
{{- if .Values.vaultwarden.emailAttempts }}
EMAIL_ATTEMPTS_LIMIT: {{ .Values.vaultwarden.emailAttempts | quote }}
{{- end }}
{{- if .Values.vaultwarden.emailTokenExpiration }}
EMAIL_EXPIRATION_TIME: {{ .Values.vaultwarden.emailTokenExpiration | quote }}
{{- end }}
INVITATIONS_ALLOWED: {{ .Values.vaultwarden.allowInvitation | quote }}
{{- if .Values.vaultwarden.defaultInviteName }}
INVITATION_ORG_NAME: {{ .Values.vaultwarden.defaultInviteName | quote }}
{{- end }}
SHOW_PASSWORD_HINT: {{ .Values.vaultwarden.showPasswordHint | quote }}
WEBSOCKET_ENABLED: {{ .Values.vaultwarden.enableWebsockets | quote }}
WEB_VAULT_ENABLED: {{ .Values.vaultwarden.enableWebVault | quote }}
ORG_CREATION_USERS: {{ .Values.vaultwarden.orgCreationUsers | quote }}
{{- if .Values.vaultwarden.attachmentLimitOrg }}
ORG_ATTACHMENT_LIMIT: {{ .Values.vaultwarden.attachmentLimitOrg | quote }}
{{- end }}
{{- if .Values.vaultwarden.attachmentLimitUser }}
USER_ATTACHMENT_LIMIT: {{ .Values.vaultwarden.attachmentLimitUser | quote }}
{{- end }}
{{- if .Values.vaultwarden.hibpApiKey }}
HIBP_API_KEY: {{ .Values.vaultwarden.hibpApiKey | quote }}
{{- end }}
{{- include "vaultwarden.dbTypeValid" . }}
{{- if .Values.database.retries }}
DB_CONNECTION_RETRIES: {{ .Values.database.retries | quote }}
{{- end }}
{{- if .Values.database.maxConnections }}
DATABASE_MAX_CONNS: {{ .Values.database.maxConnections | quote }}
{{- end }}
{{- if eq .Values.vaultwarden.smtp.enabled true }}
SMTP_HOST: {{ required "SMTP host is required to enable SMTP" .Values.vaultwarden.smtp.host | quote }}
SMTP_FROM: {{ required "SMTP sender address ('from') is required to enable SMTP" .Values.vaultwarden.smtp.from | quote }}
{{- if .Values.vaultwarden.smtp.fromName }}
SMTP_FROM_NAME: {{ .Values.vaultwarden.smtp.fromName | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.ssl }}
SMTP_SSL: {{ .Values.vaultwarden.smtp.ssl | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.port }}
SMTP_PORT: {{ .Values.vaultwarden.smtp.port | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.authMechanism }}
SMTP_AUTH_MECHANISM: {{ .Values.vaultwarden.smtp.authMechanism | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.heloName }}
HELO_NAME: {{ .Values.vaultwarden.smtp.heloName | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.timeout }}
SMTP_TIMEOUT: {{ .Values.vaultwarden.smtp.timeout | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.invalidHostname }}
SMTP_ACCEPT_INVALID_HOSTNAMES: {{ .Values.vaultwarden.smtp.invalidHostname | quote }}
{{- end }}
{{- if .Values.vaultwarden.smtp.invalidCertificate }}
SMTP_ACCEPT_INVALID_CERTS: {{ .Values.vaultwarden.smtp.invalidCertificate | quote }}
{{- end }}
{{- end }}
{{- if .Values.vaultwarden.log.file }}
LOG_FILE: {{ .Values.vaultwarden.log.file | quote }}
{{- end }}
{{- if or .Values.vaultwarden.log.level .Values.vaultwarden.log.timeFormat }}
EXTENDED_LOGGING: "true"
{{- end }}
{{- if .Values.vaultwarden.log.level }}
{{- include "vaultwarden.logLevelValid" . }}
LOG_LEVEL: {{ .Values.vaultwarden.log.level | quote }}
{{- end }}
{{- if .Values.vaultwarden.log.timeFormat }}
LOG_TIMESTAMP_FORMAT: {{ .Values.vaultwarden.log.timeFormat | quote }}
{{- end }}
{{- if .Values.vaultwarden.icons.disableDownload }}
DISABLE_ICON_DOWNLOAD: {{ .Values.vaultwarden.icons.disableDownload | quote }}
{{- if and (not .Values.vaultwarden.icons.cache) (eq .Values.vaultwarden.icons.disableDownload "true") }}
ICON_CACHE_TTL: "0"
{{- end }}
{{- end }}
{{- if .Values.vaultwarden.icons.cache }}
ICON_CACHE_TTL: {{ .Values.vaultwarden.icons.cache | quote }}
{{- end }}
{{- if .Values.vaultwarden.icons.cacheFailed }}
ICON_CACHE_NEGTTL: {{ .Values.vaultwarden.icons.cacheFailed | quote }}
{{- end }}
{{- if eq .Values.vaultwarden.admin.enabled true }}
{{- if eq .Values.vaultwarden.admin.disableAdminToken true }}
DISABLE_ADMIN_TOKEN: "true"
{{- end }}
{{- end }}
{{- if eq .Values.vaultwarden.yubico.enabled true }}
{{- if .Values.vaultwarden.yubico.server }}
YUBICO_SERVER: {{ .Values.vaultwarden.yubico.server | quote }}
{{- end }}
{{- end }}
{{- if eq .Values.database.type "sqlite" }}
ENABLE_DB_WAL: {{ .Values.database.wal | quote }}
{{- else }}
ENABLE_DB_WAL: "false"
{{- end }}
{{- end -}}

View File

@ -0,0 +1,59 @@
{{/* Define the secrets */}}
{{- define "vaultwarden.secrets" -}}
{{- $adminToken := "" }}
{{- if eq .Values.vaultwarden.admin.enabled true }}
{{- $adminToken = .Values.vaultwarden.admin.token | default (randAlphaNum 48) | b64enc | quote }}
{{- end -}}
{{- $smtpUser := "" }}
{{- if and (eq .Values.vaultwarden.smtp.enabled true ) (.Values.vaultwarden.smtp.user) }}
{{- $smtpUser = .Values.vaultwarden.smtp.user | b64enc | quote }}
{{- end -}}
{{- $yubicoClientId := "" }}
{{- if eq .Values.vaultwarden.yubico.enabled true }}
{{- $yubicoClientId = required "Yubico Client ID required" .Values.vaultwarden.yubico.clientId | toString | b64enc | quote }}
{{- end -}}
---
apiVersion: v1
kind: Secret
metadata:
name: vaultwardensecret
data:
{{- if ne $adminToken "" }}
ADMIN_TOKEN: {{ $adminToken }}
{{- end }}
{{- if ne $smtpUser "" }}
SMTP_USERNAME: {{ $smtpUser }}
SMTP_PASSWORD: {{ required "Must specify SMTP password" .Values.vaultwarden.smtp.password | b64enc | quote }}
{{- end }}
{{- if ne $yubicoClientId "" }}
YUBICO_CLIENT_ID: {{ $yubicoClientId }}
YUBICO_SECRET_KEY: {{ required "Yubico Secret Key required" .Values.vaultwarden.yubico.secretKey | b64enc | quote }}
{{- end }}
---
apiVersion: v1
kind: Secret
metadata:
labels:
{{- include "common.labels" . | nindent 4 }}
name: dbcreds
{{- $previous := lookup "v1" "Secret" .Release.Namespace "dbcreds" }}
{{- $dbPass := "" }}
data:
{{- if $previous }}
{{- $dbPass = ( index $previous.data "postgresql-password" ) | b64dec }}
postgresql-password: {{ ( index $previous.data "postgresql-password" ) }}
postgresql-postgres-password: {{ ( index $previous.data "postgresql-postgres-password" ) }}
{{- else }}
{{- $dbPass = randAlphaNum 50 }}
postgresql-password: {{ $dbPass | b64enc | quote }}
postgresql-postgres-password: {{ randAlphaNum 50 | b64enc | quote }}
{{- end }}
url: {{ ( printf "%v%v:%v@%v:%v/%v" "postgresql://" .Values.postgresql.postgresqlUsername $dbPass "postgresql" "5432" .Values.postgresql.postgresqlDatabase ) | b64enc | quote }}
type: Opaque
{{- end -}}

View File

@ -0,0 +1,17 @@
{{/*
Ensure valid DB type is select, defaults to SQLite
*/}}
{{- define "vaultwarden.dbTypeValid" -}}
{{- if not (or (eq .Values.database.type "postgresql") (eq .Values.database.type "mysql") (eq .Values.database.type "sqlite")) }}
{{- required "Invalid database type" nil }}
{{- end -}}
{{- end -}}
{{/*
Ensure log type is valid
*/}}
{{- define "vaultwarden.logLevelValid" -}}
{{- if not (or (eq .Values.vaultwarden.log.level "trace") (eq .Values.vaultwarden.log.level "debug") (eq .Values.vaultwarden.log.level "info") (eq .Values.vaultwarden.log.level "warn") (eq .Values.vaultwarden.log.level "error") (eq .Values.vaultwarden.log.level "off")) }}
{{- required "Invalid log level" nil }}
{{- end }}
{{- end }}

View File

@ -0,0 +1,11 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* Render the templates */}}
{{ include "common.all" . }}
{{/* Render configmap for vaultwarden */}}
{{- include "vaultwarden.configmap" . }}
{{/* Render secrets for vaultwarden */}}
{{- include "vaultwarden.secrets" . }}

View File

@ -0,0 +1,183 @@
# Default values for Bitwarden.
image:
repository: vaultwarden/server
pullPolicy: IfNotPresent
tag: 1.21.0
strategy:
type: Recreate
service:
main:
ports:
main:
port: 8080
ws:
ports:
ws:
enabled: true
port: 3012
env: {}
envTpl:
DOMAIN: "https://{{ if .Values.ingress }}{{ if .Values.ingress.main.enabled }}{{ ( index .Values.ingress.main.hosts 0 ).host }}{{ else }}placeholder.com{{ end }}{{ else }}placeholder.com{{ end }}"
envFrom:
- configMapRef:
name: vaultwardenconfig
- secretRef:
name: vaultwardensecret
envValueFrom:
DATABASE_URL:
secretKeyRef:
name: dbcreds
key: url
database:
# Database type, must be one of: 'sqlite', 'mysql' or 'postgresql'.
type: postgresql
# Enable DB Write-Ahead-Log for SQLite, disabled for other databases. https://github.com/dani-garcia/bitwarden_rs/wiki/Running-without-WAL-enabled
wal: true
## URL for external databases (mysql://user:pass@host:port or postgresql://user:pass@host:port).
# url: ""
## Set the size of the database connection pool.
# maxConnections: 10
## Connection retries during startup, 0 for infinite. 1 second between retries.
# retries: 15
# Set Bitwarden_rs application variables
vaultwarden:
# Allow any user to sign-up: https://github.com/dani-garcia/bitwarden_rs/wiki/Disable-registration-of-new-users
allowSignups: true
## Whitelist domains allowed to sign-up. 'allowSignups' is ignored if set.
# signupDomains:
# - domain.tld
# Verify e-mail before login is enabled. SMTP must be enabled.
verifySignup: false
# When a user logs in an email is required to be sent. If sending the email fails the login attempt will fail. SMTP must be enabled.
requireEmail: false
## Maximum attempts before an email token is reset and a new email will need to be sent.
# emailAttempts: 3
## Email token validity in seconds.
# emailTokenExpiration: 600
# Allow invited users to sign-up even feature is disabled: https://github.com/dani-garcia/bitwarden_rs/wiki/Disable-invitations
allowInvitation: true
# Show password hints: https://github.com/dani-garcia/bitwarden_rs/wiki/Password-hint-display
## Default organization name in invitation e-mails that are not coming from a specific organization.
# defaultInviteName: ""
showPasswordHint: true
# Enable Websockets for notification. https://github.com/dani-garcia/bitwarden_rs/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/bitwarden_rs/wiki/Disabling-or-overriding-the-Vault-interface-hosting
enableWebVault: true
# Restrict creation of orgs. Options are: 'all', 'none' or a comma-separated list of users.
orgCreationUsers: all
## Limit attachment disk usage per organization.
# attachmentLimitOrg:
## Limit attachment disk usage per user.
# attachmentLimitUser:
## HaveIBeenPwned API Key. Can be purchased at https://haveibeenpwned.com/API/Key.
# hibpApiKey:
admin:
# Enable admin portal.
enabled: false
# Disabling the admin token will make the admin portal accessible to anyone, use carefully: https://github.com/dani-garcia/bitwarden_rs/wiki/Disable-admin-token
disableAdminToken: false
## Token for admin login, will be generated if not defined. https://github.com/dani-garcia/bitwarden_rs/wiki/Enabling-admin-page
# token:
# Enable SMTP. https://github.com/dani-garcia/bitwarden_rs/wiki/SMTP-configuration
smtp:
enabled: false
# SMTP hostname, required if SMTP is enabled.
host: ""
# SMTP sender e-mail address, required if SMTP is enabled.
from: ""
## SMTP sender name, defaults to 'Bitwarden_RS'.
# fromName: ""
## Enable SSL connection.
# ssl: true
## SMTP port. Defaults to 25 without SSL, 587 with SSL.
# port: 587
## SMTP Authentication Mechanisms. Comma-separated options: 'Plain', 'Login' and 'Xoauth2'. Defaults to 'Plain'.
# authMechanism: Plain
## Hostname to be sent for SMTP HELO. Defaults to pod name.
# heloName: ""
## SMTP timeout.
# timeout: 15
## Accept SSL session if certificate is valid but hostname doesn't match. DANGEROUS, vulnerable to men-in-the-middle attacks!
# invalidHostname: false
## Accept invalid certificates. DANGEROUS, vulnerable to men-in-the-middle attacks!
# invalidCertificate: false
## SMTP username.
# user: ""
## SMTP password. Required is user is specified, ignored if no user provided.
# password: ""
## Enable Yubico OTP authentication. https://github.com/dani-garcia/bitwarden_rs/wiki/Enabling-Yubikey-OTP-authentication
yubico:
enabled: false
## Yubico server. Defaults to YubiCloud.
# server:
## Yubico ID and Secret Key.
# clientId:
# secretKey:
## Logging options. https://github.com/dani-garcia/bitwarden_rs/wiki/Logging
log:
# Log to file.
file: ""
# Log level. Options are "trace", "debug", "info", "warn", "error" or "off".
level: "trace"
## Log timestamp format. See https://docs.rs/chrono/0.4.15/chrono/format/strftime/index.html. Defaults to time in milliseconds.
# timeFormat: ""
icons:
# Disables download of external icons. Setting to true will still serve icons from cache (/data/icon_cache). TTL will default to zero.
disableDownload: false
## Cache time-to-live for icons fetched. 0 means no purging.
# cache: 2592000
## Cache time-to-live for icons that were not available. 0 means no purging.
# cacheFailed: 259200
persistence:
data:
enabled: true
mountPath: "/data"
emptyDir:
enabled: true
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ""
db:
nameOverride: "db"
enabled: true
emptyDir:
enabled: true
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ""
dbbackup:
enabled: true
emptyDir:
enabled: true
accessMode: ReadWriteOnce
size: 1Gi
storageClass: ""
# Enabled postgres
# ... for more options see https://github.com/bitnami/charts/tree/master/bitnami/postgresql
postgresql:
enabled: true
postgresqlUsername: vaultwarden
postgresqlDatabase: vaultwarden
existingSecret: dbcreds
persistence:
enabled: false
existingClaim: db

View File

View File

@ -3,4 +3,4 @@ dependencies:
repository: https://truecharts.org/
version: 5.1.3
digest: sha256:46cfe3fd743066d150b4909dc15f72e333c802c771966ec439e4b1d409c8547b
generated: "2021-05-31T00:08:41.184878974Z"
generated: "2021-05-31T09:38:38.647697214Z"