ansible-role-mysql icon indicating copy to clipboard operation
ansible-role-mysql copied to clipboard

Issue #223: Generate a random default root password

Open colans opened this issue 2 years ago • 11 comments

Instead of hard-coding an insecure default password for the root MySQL user, generate a random one as discussed in issue #223.

This is more complicated than simply adding a random password to the defaults file because that'll change every time the variable is read. Instead, I generate a random password and place it into /root/.my.cnf (or wherever) unless there already is one, fetch it from there, and then use it to set the actual root password in the DB. But this only happens if the configuration file has changed. Otherwise, they'd be out of sync.

colans avatar Oct 07 '21 20:10 colans

I can't figure out how to turn this comment in to a new "conversation" or start my own review (as I'm more familiar with GitLab) so please convert if you can...

That test result is failing for MySQL < 5.7. I'm less concerned about that because support for that ended in February. Is there a way we could skip that one (for the time being, at least), and see how it works for 5.7+? I'm actually testing this myself on v8, and not having any problems (Ubuntu 20.04).

colans avatar Oct 08 '21 16:10 colans

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] avatar Jan 08 '22 21:01 stale[bot]

@geerlingguy I believe that this is ready to be merged. Or do you have any additional concerns?

colans avatar Jan 10 '22 17:01 colans

This issue is no longer marked for closure.

stale[bot] avatar Jan 10 '22 17:01 stale[bot]

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] avatar Apr 14 '22 16:04 stale[bot]

:wave:

colans avatar Apr 14 '22 17:04 colans

This issue is no longer marked for closure.

stale[bot] avatar Apr 14 '22 17:04 stale[bot]

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] avatar Jul 14 '22 01:07 stale[bot]

:wave:

colans avatar Jul 14 '22 15:07 colans

This issue is no longer marked for closure.

stale[bot] avatar Jul 14 '22 15:07 stale[bot]

Stale bot stay away!

geerlingguy avatar Jul 14 '22 16:07 geerlingguy