Description
#1552 added support for the mysql_clear_password
auth plugin, but made it enabled by default. Per the manual docs on it:
Sending passwords as cleartext may be a security problem in some configurations. To avoid problems if there is any possibility that the password would be intercepted, clients should connect to MySQL Server using a method that protects the password. Possibilities include SSL (see Section 6.3, “Using Encrypted Connections”), IPsec, or a private network.
To make inadvertent use of the mysql_clear_password plugin less likely, MySQL clients must explicitly enable it.
I would propose to make it disabled by default, and only enable it implicitly if the LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN
environment variable is set to 1
, Y
or y
(per the docs), or that a library consumer can add it themselves via config.authPlugins
(following #1497 being merged to make it easy to reference).