Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBZ-8445 -- No support for mysql_clear_password #162

Open
akanimesh7 opened this issue Nov 19, 2024 · 0 comments
Open

DBZ-8445 -- No support for mysql_clear_password #162

akanimesh7 opened this issue Nov 19, 2024 · 0 comments

Comments

@akanimesh7
Copy link

akanimesh7 commented Nov 19, 2024

While working with debezium mysql connector v2.4.2 with the below configs --

  "database.jdbc.driver":"software.amazon.jdbc.Driver",
  "database.protocol":"jdbc:aws-wrapper:mysql",
  "driver.wrapperPlugins": "iam",

and db user created with AWSAuthenticationPlugin.
Snapshot goes fine, but while streaming the below stacktrace occurs --

[2024-11-19 14:25:09,130] ERROR [mysql-conn-v2-6|task-0] Producer failure (io.debezium.pipeline.ErrorHandler:52)
io.debezium.DebeziumException: Failed to authenticate to the MySQL database at <something>:3306 with user 'something'
	at io.debezium.connector.mysql.MySqlStreamingChangeEventSource.execute(MySqlStreamingChangeEventSource.java:1034)
	at io.debezium.connector.mysql.MySqlStreamingChangeEventSource.execute(MySqlStreamingChangeEventSource.java:92)
	at io.debezium.pipeline.ChangeEventSourceCoordinator.streamEvents(ChangeEventSourceCoordinator.java:272)
	at io.debezium.pipeline.ChangeEventSourceCoordinator.executeChangeEventSources(ChangeEventSourceCoordinator.java:197)
	at io.debezium.pipeline.ChangeEventSourceCoordinator.lambda$start$0(ChangeEventSourceCoordinator.java:137)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.github.shyiko.mysql.binlog.network.AuthenticationException: unsupported authentication method: mysql_clear_password
	at com.github.shyiko.mysql.binlog.network.Authenticator.switchAuthentication(Authenticator.java:174)
	at com.github.shyiko.mysql.binlog.network.Authenticator.readResult(Authenticator.java:87)
	at com.github.shyiko.mysql.binlog.network.Authenticator.authenticate(Authenticator.java:70)
	at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:574)
	at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:932)
	... 1 more

Can we support mysql_clear_password ? This will help the connector to run fine with IAM assume role enabled RDS instances.

@akanimesh7 akanimesh7 changed the title No support for mysql_clear_password DBZ-8445 -- No support for mysql_clear_password Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant