From 6f96e35c7ee6a947a6802058b2cbf938770834d5 Mon Sep 17 00:00:00 2001 From: Mathijs van Veluw Date: Tue, 6 Oct 2026 13:43:36 +0200 Subject: [PATCH] Add note regarding newer MariaDB client libraries which assume TLS/SSL connections can be made --- Using-the-MariaDB-(MySQL)-Backend.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Using-the-MariaDB-(MySQL)-Backend.md b/Using-the-MariaDB-(MySQL)-Backend.md index 36ac4e0..ae8c08b 100644 --- a/Using-the-MariaDB-(MySQL)-Backend.md +++ b/Using-the-MariaDB-(MySQL)-Backend.md @@ -6,6 +6,13 @@ >

⚠️ 💩 ⚠️

+> [!IMPORTANT] +> Running a MariaDB or MySQL server which does not support default SSL/TLS connections might cause the client to not being able to connect when using the latest MariaDB client versions, like within the Alpine based images. +> If you can not upgrade your MariaDB or MySQL server to the latest version you need to add an extra environment variable to be able to let Vaultwarden connect to this database.
+>
+> Add `MARIADB_TLS_DISABLE_PEER_VERIFICATION=1` as an environment variable, and Vaultwarden will be able to connect. + + To use the MariaDB (MySQL) backend, you can either use the [official Docker image](https://hub.docker.com/r/vaultwarden/server) or build your own binary [with MySQL enabled](https://github.com/dani-garcia/vaultwarden/wiki/Building-binary#mysql-backend). To run the binary or container, ensure the ```DATABASE_URL``` environment variable is set (i.e. ```DATABASE_URL='mysql://:@mysql/vaultwarden[?ssl_mode=(disabled|required|preferred)&ssl_ca=/path/to/cart.(crt|pem)]'```).