-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MySQL configuration file #84
Comments
While I agree that it is mildly sloppy to have multiple files with the credentials, both live under /etc, I don't really see a major difference in security. Nothing stops you from setting the file 0400 for the munin user. |
The munin user can read the configuration file, but not the external file. That is the problem setting 0400 won't help fix. If there is ever a security bug in the not-run-by-root portion of Munin, the database password can be read. In the external file (here |
The plugin is never root, it is immediately started under user munin. Thus, if the munin user cannot read the external authentication file, then neither can the plugin code. However, a better solution for the issue you are reporting would be support for the .mylogin.cnf encrypted credential store generated by mysql_config_editor. As the plugin uses DBD/DBI, however, that is not something that should be implemented here - it is something that needs to be added at the lower level. |
MySQL credential security was also a topic I was looking into recently.
Configuration file security: Restrictive MySQL permissions:
Note: There seem to be some recommendations to grant the "SUPER" privilege. Is this still necessary? If so, for which graphs? This seems to work for me but as usual I welcome any suggestions or further improvements. |
In fact, I git it to work without repeating the password, like this :
NB : it's a Debian server, so settings may vary with your own OS. |
I was also considering |
Hi,
I hope I'm not making a duplicate here.
I love this plugin and find it a clearly better replacement. I've been using it on Debian servers for years.
It recently appeared to my that putting the login/password of MySQL in the
/etc/munin/plugin-conf.d/munin-node
file is a possible security problem.I didn't find a way to use a file like
/etc/mysql/debian.cnf
where all the credentials are stored, in a more secure way.I've been using this configuration with other MySQL plugins and was surprised that it is not possible here.
Maybe it is, but I didn't find the documentation for it.
Help and/or comments about this will be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: