Skip to content

Conversation

FGasper
Copy link

@FGasper FGasper commented Sep 6, 2016

The shipped yassl library doesn’t seem to include SNI, but OpenSSL makes it easy to have this now.

I don’t know of any MySQL-compatible servers that implement SNI, but having it on the client now will make it that much more useful when a server implements it. It’s basically “free” for now, so there’s little reason not to have it.

I have a Perl test server script that demonstrates that this works, if that’s of use.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment:
"I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Thanks

@FGasper
Copy link
Author

FGasper commented Sep 6, 2016

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

-FG

On 6 Sep 2016, at 6:48 AM, mysql-oca-bot notifications@github.com wrote:

I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

@mysql-oca-bot
Copy link

Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow
bug http://bugs.mysql.com/bug.php?id=82872 for updates.
Thanks

@jawabuu
Copy link

jawabuu commented May 10, 2020

I would like to follow up on this and get some feedback on the status.
https://bugs.mysql.com/bug.php?id=84849 and https://bugs.mysql.com/bug.php?id=82872 is pending for over 3 years now.
In my opinion this enhancement would provide huge enhancements in terms of routing, multi-tenancy, access-control and security by allowing user to manage access to their mysql instances through a single/unified entrypoint.
Traefik and HAProxy are especially equipped to handle this.

@jawabuu
Copy link

jawabuu commented May 21, 2020

I would like to follow up on this and get some feedback on the status.
https://bugs.mysql.com/bug.php?id=84849 and https://bugs.mysql.com/bug.php?id=82872 is pending for over 3 years now.
In my opinion this enhancement would provide huge enhancements in terms of routing, multi-tenancy, access-control and security by allowing user to manage access to their mysql instances through a single/unified entrypoint.
Traefik and HAProxy are especially equipped to handle this.

@FGasper any update on this?

@FGasper
Copy link
Author

FGasper commented May 21, 2020

@jawabuu I submitted this PR with the idea that, when SNI support was added to MySQL Server, prior clients would already be compatible. So, for example, if this had merged in time for, say, MySQL 7, had MySQL 8 added SNI, then any libmysqlclient apps—e.g., PHP—that use client version 7 would automatically work with server version 8’s SNI.

The MySQL team saw things differently and had no interest in such forward compatibility. Perhaps they envision no need for adding SNI to MySQL Server; they would, after all, have to introduce some mechanism to fetch a certificate based on the SNI string, and it can be hard to implement that such that it suits everyone’s needs. Moreover, DB access over TCP is a much more esoteric thing than, say, HTTP or mail; a DB programmer can understand perfectly well why brians-golf.com’s DB is server3.whizzo.bobs-hosting.com. So perhaps there just isn’t enough need to justify the server-side development effort.

There’s also something to be said for the fact that the unencrypted SNI string is something of a security problem. Back when SNI support was new no one cared because it was a big improvement over status quo. But in our post-Let’s-Encrypt world, where TLS is pretty well ubiquitous, if an server doesn’t use the SNI string anyway, it’d be better for the client to withhold it. We might as well not disclose the specific server name the client intends to hit if all things else are equal.

hustjieke pushed a commit to hustjieke/mysql-server that referenced this pull request Sep 4, 2024
to enable ART index .
---------
Co-authored-by: RingsC <hom.lee@hotmail.com>
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.

3 participants