Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The current implementation of the Utils class (https://github.com/mariadb-corporation/mariadb-connector-j/blob/master/src/main/java/org/mariadb/jdbc/internal/util/Utils.java#L124) makes it impossible for custom implementations of the SocketFactory to infer any information from the environment.
An example is what the Google Cloud SQL connector (https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory) needs to do in order to rotate certificates of the connection. It can use connection string arguments such as `cloudSqlInstance` to fetch the correct values.
The mysql driver and postgres driver all pass the properties down to the SocketFactory implementation, but not this driver. It would be nice to provide a way (maybe by trying a constructor with a Properties argument if that is present)
This is blocking me from adding mariadb as a connector for the google cloud sql project.