You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When migrating the database the migration.py script tries to connect to the MySQL database over SSL, despite the db.use_ssl property having value false.
Analysis
The current and broken logic in migration.py to configure SSL is:
Official documentation of mysqlclient python library states (see here):
ssl_mode
If present, specify the security settings for the connection to the server. For more information on ssl_mode, see the MySQL documentation. Only one of ‘DISABLED’, ‘PREFERRED’, ‘REQUIRED’, ‘VERIFY_CA’, ‘VERIFY_IDENTITY’ can be specified.
If not present, the session ssl_mode will be unchanged, but in version 5.7 and later, the default is PREFERRED.
This must be a keyword parameter.
ssl
This parameter takes a dictionary or mapping, where the keys are parameter names used by the mysql_ssl_set MySQL C API call. If this is set, it initiates an SSL connection to the server; if there is no SSL support in the client, an exception is raised. This must be a keyword parameter.
The ssl parameter can reference values mentioned here.
Discussion
Should we accept the proposed fix to the problem?
Does connection over SSL work at all with the current script? I have a hard time believing this because the ssl parameter does not receive correct parameters.
The text was updated successfully, but these errors were encountered:
Affected PR: #10037
Problem
When migrating the database the migration.py script tries to connect to the MySQL database over SSL, despite the db.use_ssl property having value false.
Analysis
The current and broken logic in migration.py to configure SSL is:
When I change this to the following, the db.use_ssl property is respected:
mysqlclient python library
Official documentation of mysqlclient python library states (see here):
The ssl parameter can reference values mentioned here.
Discussion
The text was updated successfully, but these errors were encountered: