

Secure configuration for newly installed database Stricter file/directory permission for generated files Stricter permission set for deployed filesįiles extracted from installer are deployed with minimum set of permission required for MySQL server installation to proceed without any problem.

So, we now set shell to /bin/false when new user is created as a part of installation. In this sense there is no need for such a user to have shell access. So, privileges of MySQL server process are restricted to that of mysql user Used when MySQL server is started – as value for –user argument.RPMs, DEB packages etc), as a part of installation process, a new user account – mysql (and corresponding group mysql) is created. On *nix systems, MySQL server is installed using platform specific packages (e.g. Pre-installation Environment Stricter control over system account used to run MySQL server Their presence not only occupies additional space, it may open up possibility where an attacker may use them to his/her advantage. Such artifacts are not required in a production environment. For example, packages containing the MySQL server binary will not contain authentication plugins used for unit testing. In order to minimize the attack surface, demo/test/example artifacts are moved to a separate package. Installer Demo/Test artifacts moved to a separate package In this blog, we will explain roles that individual feature play In these areas and make overall deployment secure. Secure communication links between server-client.Secure configuration for newly installed database.Preparing secure pre-installation environment.Creation of installer packages in such a way that resultant installation is secure.Secure-by-default features concentrate on four major areas. They are useful for novice user because they help close common security loopholes which can be leveraged by an attacker. These features try to minimize attack surface as much as possible without hampering usability aspect. MySQL 5.7 comes with enhancements which makes a deployment secure by default.
