Understanding MySQL 8.0 validate_password Component and Its Impact on Password Policy
The article explains why some MySQL 8.0.18 production environments enforce a password policy despite lacking the validate_password plugin, by examining configuration files, server parameters, and the role of the validate_password component introduced in MySQL 8.0.
Background: Users observed that in production environments where MySQL 8.0.18 was installed via a unified script, some instances enforced a password policy while others did not.
Analysis: The configuration file my.cnf showed no validate_password parameter, yet the database reported password‑policy settings. Further inspection revealed that the validate_password plugin was not installed, but the password policy was still active.
Reason: Documentation for MySQL 8.0 indicates that the validate_password functionality can be provided by a component rather than a traditional plugin. MySQL Components are a new, component‑based architecture introduced in 8.0 that allows server extensions to be loaded as separate modules. The distribution includes several components, such as error‑log configuration, password checking, audit‑log extensions, and user‑defined query‑attribute functions.
Specifically, the validate_password component implements password‑policy enforcement. Removing this component disables the policy. In MySQL versions prior to 8.0, validate_password existed only as a plugin; from 8.0 onward it can be installed either as a plugin or as a component.
Conclusion: The unified installation script likely installed the validate_password component automatically, which explains why password policy was enforced even without the plugin. Deleting the component restores the default behavior.
Aikesheng Open Source Community
The Aikesheng Open Source Community provides stable, enterprise‑grade MySQL open‑source tools and services, releases a premium open‑source component each year (1024), and continuously operates and maintains them.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.