From 9cab0b60365d47ca13961a00ae956234a0dad3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Mon, 12 Feb 2024 19:07:05 +0000 Subject: [PATCH] enable tls --- flow/connectors/clickhouse/clickhouse.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flow/connectors/clickhouse/clickhouse.go b/flow/connectors/clickhouse/clickhouse.go index b61e07c319..0fc25d5407 100644 --- a/flow/connectors/clickhouse/clickhouse.go +++ b/flow/connectors/clickhouse/clickhouse.go @@ -2,6 +2,7 @@ package connclickhouse import ( "context" + "crypto/tls" "database/sql" "fmt" @@ -85,6 +86,9 @@ func connect(ctx context.Context, config *protos.ClickhouseConfig) (*sql.DB, err Username: config.User, Password: config.Password, }, + TLS: &tls.Config{ + InsecureSkipVerify: true, + }, }) if err := conn.PingContext(ctx); err != nil {