Skip to content

Conversation

@mingley
Copy link

@mingley mingley commented Dec 19, 2025

Summary

  • add a tls_server_name override to MySqlConnectOptions
  • use the override for TLS SNI and hostname verification during MySQL TLS upgrade
  • add a small unit test + docs for the new option

Rationale

This is a small, additive, opt-in change to fix VerifyIdentity when the TCP host differs from
what the server certificate expects (e.g., HAProxy endpoints). It does not alter existing behavior
unless the new option is explicitly set.

Testing

  • cargo fmt
  • cargo clippy -p sqlx-mysql -- -D warnings
  • cargo test -p sqlx-mysql

@mingley mingley force-pushed the feat/mysql-rustls-config branch from dbd575f to b40c38e Compare December 19, 2025 15:58
@mingley mingley closed this Dec 19, 2025
@mingley
Copy link
Author

mingley commented Dec 19, 2025

Superseded by #4130

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