DBZ-7049 Add RSA configuration

This commit is contained in:
Jiri Pechanec 2024-08-12 12:16:57 +02:00
parent 3050bf1381
commit 3a1265b1ff
2 changed files with 4 additions and 1 deletions

View File

@ -234,7 +234,8 @@ public Configuration.Builder defaultJdbcConfigBuilder() {
.with(BinlogConnectorConfig.HOSTNAME, System.getProperty("database.hostname", "localhost"))
.with(BinlogConnectorConfig.PORT, System.getProperty("database.port", "3306"))
.with(BinlogConnectorConfig.USER, "snapper")
.with(BinlogConnectorConfig.PASSWORD, "snapperpass");
.with(BinlogConnectorConfig.PASSWORD, "snapperpass")
.with("driver.allowPublicKeyRetrieval", "true");
builder = applyConnectorDefaultJdbcConfiguration(builder);

View File

@ -59,6 +59,7 @@ expire_logs_days = 1
# --------------------------------------------------------------------------------------------
[mysqld-8.0]
default_authentication_plugin = caching_sha2_password
caching_sha2_password_auto_generate_rsa_keys = on
binlog_expire_logs_seconds = 86400
# --------------------------------------------------------------------------------------------
@ -66,4 +67,5 @@ binlog_expire_logs_seconds = 86400
# --------------------------------------------------------------------------------------------
[mysqld-8.2]
default_authentication_plugin = caching_sha2_password
caching_sha2_password_auto_generate_rsa_keys = on
binlog_expire_logs_seconds = 86400