diff --git a/packages/nocodb/src/lib/utils/NcConfigFactory.ts b/packages/nocodb/src/lib/utils/NcConfigFactory.ts index bfd748ed0c..aabdfcb672 100644 --- a/packages/nocodb/src/lib/utils/NcConfigFactory.ts +++ b/packages/nocodb/src/lib/utils/NcConfigFactory.ts @@ -380,22 +380,25 @@ export default class NcConfigFactory implements NcConfig { typeof dbConfig?.connection?.ssl === 'object' ) { if (dbConfig.connection.ssl.caFilePath && !dbConfig.connection.ssl.ca) { - dbConfig.connection.ssl.ca = await promisify(fs.readFile)( + dbConfig.connection.ssl.ca = (await promisify(fs.readFile)( dbConfig.connection.ssl.caFilePath - ).toString(); + )).toString(); + delete dbConfig.connection.ssl.caFilePath; } if (dbConfig.connection.ssl.keyFilePath && !dbConfig.connection.ssl.key) { - dbConfig.connection.ssl.key = await promisify(fs.readFile)( + dbConfig.connection.ssl.key = (await promisify(fs.readFile)( dbConfig.connection.ssl.keyFilePath - ).toString(); + )).toString(); + delete dbConfig.connection.ssl.keyFilePath; } if ( dbConfig.connection.ssl.certFilePath && !dbConfig.connection.ssl.cert ) { - dbConfig.connection.ssl.cert = await promisify(fs.readFile)( + dbConfig.connection.ssl.cert = (await promisify(fs.readFile)( dbConfig.connection.ssl.certFilePath - ).toString(); + )).toString(); + delete dbConfig.connection.ssl.certFilePath; } }