Skip to content

Commit

Permalink
fix sslmode value
Browse files Browse the repository at this point in the history
  • Loading branch information
StrikeW committed Nov 4, 2024
1 parent 04755fd commit ecba55d
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,23 @@ public DbzConnectorConfig(
}
}

// adapt value of sslmode to the expected value
var sslMode = postgresProps.getProperty("database.sslmode");
if (sslMode != null) {
switch (sslMode) {
case "disabled":
sslMode = "disable";
break;
case "preferred":
sslMode = "prefer";
break;
case "required":
sslMode = "require";
break;
}
postgresProps.setProperty("database.sslmode", sslMode);
}

dbzProps.putAll(postgresProps);

if (isCdcSourceJob) {
Expand Down

0 comments on commit ecba55d

Please sign in to comment.