Skip to content

Commit 70c88e7

Browse files
fix: better gate
1 parent 0c7812f commit 70c88e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flow/connectors/postgres/pgdump_schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ func appendTLSEnv(ctx context.Context, cmd *exec.Cmd, config *protos.PostgresCon
302302
cmd.Env = append(cmd.Env, "PGSSLMODE=require")
303303
}
304304

305-
if hasRootCA {
305+
if hasRootCA && !config.SkipCertVerification {
306306
tmpFile, err := os.CreateTemp("", "peerdb-root-ca-*.pem")
307307
if err != nil {
308308
slog.WarnContext(ctx, "failed to create temp file for root CA, skipping sslrootcert", slog.Any("error", err))

0 commit comments

Comments
 (0)