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.present
with - password: null
Should Clear the Password for the User
#5550
Comments
We'll look into this. Thanks! |
@kevinastone I've added the ability to clear the password in #6173. The usage for this would be to omit both the
|
Thanks. This creates a bit of a special case though that I was trying to avoid since these database parameters are stored in pillars. It would be easier for the password of
Your implementation requires some Jinja trickery:
|
Well, for the sake of security, I felt it was important to force a passwordless login to be an intentional action. |
Okay, but let's make
|
It's not an override. That bit of code you're referencing is from the If you look at the mysql_user state in my pull request, specifically this chunk, it should be pretty clear that |
This commit adds the ability to set a passwordless login. This functionality requires a new keyword argument (allow_passwordless) be True. Fixes saltstack#5550.
This commit adds the ability to set a passwordless login. This functionality requires a new keyword argument (allow_passwordless) be True. Fixes #5550.
Right now,
mysql.user_exists
accepts password=None which skips checking the password when None, preventing the system from clearing passwords already set on a user.The text was updated successfully, but these errors were encountered: