-
Notifications
You must be signed in to change notification settings - Fork 794
Allow adapting MySQL configuration file's permissions mode #1278
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
Allow adapting MySQL configuration file's permissions mode #1278
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1278 +/- ##
=========================================
Coverage ? 50.97%
=========================================
Files ? 19
Lines ? 718
Branches ? 0
=========================================
Hits ? 366
Misses ? 352
Partials ? 0 Continue to review full report at Codecov.
|
Hello @unki, Thank you for your contribution. This seems like a feature that would be very helpful, but it would be great if you could add a test for different permissions. |
97f8c20
to
07abe6b
Compare
07abe6b
to
36f75fc
Compare
Thanks for considering this PR! |
bc06568
to
67c7375
Compare
Hi @unki |
Am I right in assuming, that this basically fixes https://tickets.puppetlabs.com/browse/MODULES-8305? If so: thank you :) If not: meh, but still: thank you :D I'll also leave my side note from the ticket here, because I think this might cause issues for people, if they don't consider the implication of setting the
Cheers |
I would say yes - it can be tackled with this change and #1284. Just that I've left the default-values for the permissions on my.cnf as they were before - 0644, root: root. |
Sometimes more restrictive file-permissions on the MySQL configuration file are required.
e.g. in case of a Galera cluster, where you need to store
wsrep_sst_auth
credentials in the configuration. In that specific case it's a rather powerful MySQL user and you do not want the file to be be world-readable then.It would be great if we can support this with puppetlabs-mysql too.
PS: In respect of #32, where it was changed from a restrictive permission to
0644
.