From 36acd69fddaa2b4dcc8ed9db697c6e0477033135 Mon Sep 17 00:00:00 2001 From: Gerard Burns Date: Mon, 18 Sep 2023 12:14:12 +0100 Subject: [PATCH] Note about MySQL SSL (#11797) --- packages/server/src/integrations/mysql.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/server/src/integrations/mysql.ts b/packages/server/src/integrations/mysql.ts index b88162c59a..8a688c5f3b 100644 --- a/packages/server/src/integrations/mysql.ts +++ b/packages/server/src/integrations/mysql.ts @@ -158,6 +158,12 @@ class MySQLIntegration extends Sql implements DatasourcePlus { ) { config.ssl.rejectUnauthorized = config.rejectUnauthorized } + // The MySQL library we use doesn't directly document the parameters that can be passed in the ssl + // object, it instead points to an older library that it says it is mostly API compatible with, that + // older library actually documents what parameters can be passed in the ssl object. + // https://github.com/sidorares/node-mysql2#api-and-configuration + // https://github.com/mysqljs/mysql#ssl-options + // @ts-ignore delete config.rejectUnauthorized this.config = {