File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
src/main/java/com/google/cloud/sql/mysql Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 3737 SSL certificates manually.
3838 </description >
3939
40+ <distributionManagement >
41+ <relocation >
42+ <groupId >com.google.cloud.sql</groupId >
43+ <artifactId >mysql-socket-factory-connector-j-8</artifactId >
44+ <version >1.11.1-SNAPSHOT</version >
45+ <message >
46+ MySQL Connector/J 5.0.x is no longer under development and has significant security vulnerabilities.
47+ Please update to 8.0.x instead. See the following GitHub issue for more details:
48+ https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/issues/1243
49+ </message >
50+ </relocation >
51+ </distributionManagement >
52+
4053 <properties >
4154 <assembly .skipAssembly>false</assembly .skipAssembly>
4255 </properties >
Original file line number Diff line number Diff line change 2020import java .io .IOException ;
2121import java .net .Socket ;
2222import java .util .Properties ;
23+ import java .util .logging .Logger ;
2324
2425/**
2526 * A MySQL {@link SocketFactory} that establishes a secure connection to a Cloud SQL instance using
@@ -37,6 +38,12 @@ public class SocketFactory implements com.mysql.jdbc.SocketFactory {
3738
3839 @ Override
3940 public Socket connect (String hostname , int portNumber , Properties props ) throws IOException {
41+ Logger logger = Logger .getLogger (SocketFactory .class .getName ());
42+ logger .warning (
43+ "MySQL Connector/J 5.0.x is no longer under development"
44+ + " and has significant security vulnerabilities."
45+ + " Please update to 8.0.x instead. See the following GitHub issue for more details:"
46+ + " https://github.com/GoogleCloudPlatform/cloud-sql-jdbc-socket-factory/issues/1243" );
4047 try {
4148 socket = CoreSocketFactory .connect (props );
4249 } catch (InterruptedException e ) {
You can’t perform that action at this time.
0 commit comments