Skip to content

Support requiring SSL, and verifying CA, for MySQL#703

Open
MatthiasKunnen wants to merge 1 commit intoamacneil:mainfrom
MatthiasKunnen:mysql-ca-ssl
Open

Support requiring SSL, and verifying CA, for MySQL#703
MatthiasKunnen wants to merge 1 commit intoamacneil:mainfrom
MatthiasKunnen:mysql-ca-ssl

Conversation

@MatthiasKunnen
Copy link

@MatthiasKunnen MatthiasKunnen commented Nov 15, 2025

This PR adds support for requiring a secure connection and man-in-the-middle protection in the form of the DBMATE_MYSQL_SSL_MODE and DBMATE_MYSQL_CA_PATH parameter.

This PR will also fix tests failing on the main branch due to certificate verification problems.

Important caveat, the CLI parameter --ssl-mode used for mysqldump is not present in mariadb dump. If there is a way to detect whether mariadb-dump is used, I could change the parameters accordingly but there does not seem to be a distinction at the moment. Suggestions welcome.

I'll refrain from further work until there is some feedback on the approach and whether there is interest in this change.

Todo:

  • Decide how to handle mariadb dump compatibility
  • Add documentation

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

Successfully merging this pull request may close these issues.

1 participant