improvement(db): enforce SSL everywhere where a DB connection is established (#1522)

* improvement(db): enforce SSL everywhere where a DB connection is established

* remove extraneous comment
This commit is contained in:
Waleed
2025-10-01 19:09:08 -07:00
committed by GitHub
parent 35d857ef2e
commit 980a6d8347
6 changed files with 6 additions and 6 deletions

View File

@@ -150,12 +150,7 @@ export async function loadWorkflowFromNormalizedTables(
})
// Sanitize any invalid custom tools in agent blocks to prevent client crashes
const { blocks: sanitizedBlocks, warnings } = sanitizeAgentToolsInBlocks(blocksMap)
if (warnings.length > 0) {
logger.warn(`Sanitized workflow ${workflowId} tools with ${warnings.length} warning(s)`, {
warnings,
})
}
const { blocks: sanitizedBlocks } = sanitizeAgentToolsInBlocks(blocksMap)
// Convert edges to the expected format
const edgesArray: Edge[] = edges.map((edge) => ({

View File

@@ -18,6 +18,7 @@ const socketDb = drizzle(
max: 25,
onnotice: () => {},
debug: false,
ssl: 'require',
}),
{ schema }
)

View File

@@ -15,6 +15,7 @@ const db = drizzle(
connect_timeout: 20,
max: 5,
onnotice: () => {},
ssl: 'require',
}),
{ schema }
)