Restore legacy default for mariadb-connector-c server cert verification - #689
Closed
Samze wants to merge 1 commit into
Closed
Restore legacy default for mariadb-connector-c server cert verification#689Samze wants to merge 1 commit into
Samze wants to merge 1 commit into
Conversation
mysql2 never explicitly sets MYSQL_OPT_SSL_VERIFY_SERVER_CERT, so it inherits whatever default mariadb-connector-c compiles in. Starting with connector-c 3.4.0, that default flipped to verify the server cert (see mariadb.com/kb/en/mariadb-connector-c-3-4-0-release-notes), which breaks ccdb connections for deployments that don't configure a CA cert (see brianmario/mysql2#1379). Building with -DDEFAULT_SSL_VERIFY_SERVER_CERT=OFF restores the pre-3.4 default of not verifying, while leaving explicit TLS configuration untouched.
Samze
marked this pull request as draft
September 1, 2026 19:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mysql2 never explicitly sets MYSQL_OPT_SSL_VERIFY_SERVER_CERT, so it inherits whatever default mariadb-connector-c compiles in.
Starting with connector-c 3.4.0, that default flipped to verify the server cert (https://mariadb.com/docs?q=mariadb-connector-c-3-4-0-release-notes), which breaks ccdb connections for deployments that don't configure a CA cert (brianmario/mysql2#1379).
Building with -DDEFAULT_SSL_VERIFY_SERVER_CERT=OFF restores the pre-3.4 default of not verifying, while leaving explicit TLS configuration untouched.
Suggestion from brianmario/mysql2#1379 (comment)
Thanks for contributing to the
capi_release. To speed up the process of reviewing your pull request please provide us with:A short explanation of the proposed change:
An explanation of the use cases your change solves
Links to any other associated PRs
I have viewed signed and have submitted the Contributor License Agreement
I have made this pull request to the
developbranchI have run CF Acceptance Tests on bosh lite