-
Notifications
You must be signed in to change notification settings - Fork 89
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_user: prevent password getting set for existing users on on_cre… #342
mysql_user: prevent password getting set for existing users on on_cre… #342
Conversation
I canvnot view the result from this third-party-check status: failure |
Codecov Report
@@ Coverage Diff @@
## main #342 +/- ##
==========================================
- Coverage 78.23% 78.10% -0.14%
==========================================
Files 27 27
Lines 2270 2279 +9
Branches 551 552 +1
==========================================
+ Hits 1776 1780 +4
- Misses 335 340 +5
Partials 159 159
Continue to review full report at Codecov.
|
@hubiongithub thanks for the PR! Could you please also add a changelog gragment? |
- "mysql_user - fix logicwhen update_password is set to on_create for users using plugin* arguments (https://github.com/ansible-collections/community.mysql/issues/334)." | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "mysql_user - fix logicwhen update_password is set to on_create for users using plugin* arguments (https://github.com/ansible-collections/community.mysql/issues/334)." | |
- "mysql_user - fix logic when ``update_password`` is set to ``on_create`` for users using ``plugin*`` arguments (https://github.com/ansible-collections/community.mysql/issues/334)." |
@hubiongithub sorry for the late reply, busy days.., could you please rebase the PR and fix the changelog fragment? About rebasing, here's the guide. As it's for ansible core, it uses the @betanummeric @rsicart @Jorge-Rodriguez do you have experience in using these arguments? I'd be great to hear opinions of folks who use this feature |
…ate when plugin is used
I have not used the plugin, plugin_auth_string, plugin_hash_string arguments yet, but I might start soon, for which I would need this PR too. Regardless of my potential usecase, this PR looks good to me. Some integration tests could be added. |
f004806
to
bcbb620
Compare
Rebase of PR to main: done |
@hubiongithub Could you also please clarify the documentation for corresponding arguments according to the change? (i would also suggest elaborating a bit on details in the changelog fragment's entry) |
…_auth_string options, format fix on changelog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can just click commit suggestion
Co-authored-by: Andrew Klychkov <[email protected]>
Co-authored-by: Andrew Klychkov <[email protected]>
Co-authored-by: Andrew Klychkov <[email protected]>
…hub/community.mysql into issue334_fix_logic_on_oncreate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another linting issue
@hubiongithub thanks for the contribution! The community will be happy to see more from you! |
@hubiongithub there are conflicts which need to be solved, so the automatic backporting is not possible. Would you like to backport your changes manually to stable-2 and stable-1 branches? See this guide. |
I followed the steps from the patchback instructions above, I hope I didn't missed anything. |
@hubiongithub i replied in #379 (comment) |
@hubiongithub what i usually do #379 (comment) |
ansible-collections#342) Co-authored-by: Andrew Klychkov <[email protected]> (cherry picked from commit 51a3884)
#342) (#382) Co-authored-by: Andrew Klychkov <[email protected]> (cherry picked from commit 51a3884) Co-authored-by: hubiongithub <[email protected]>
…ate when plugin is used
SUMMARY
if update_password is set to on_create the code did not update "password" but update "plugin,plugin_auth_string,plugin_hash_string"
From my point of view "on_create" should never update a password related value.
This change has the side effect that a change of the plugin (lets say caching_sha2_password -> auth_pam (which requires no plugin_auth_string at all) will not happen.
Fixes #334
ISSUE TYPE
COMPONENT NAME
mysql_user
ADDITIONAL INFORMATION