Skip to content
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

Hide password from output #75

Open
q-b opened this issue Dec 5, 2022 · 0 comments
Open

Hide password from output #75

q-b opened this issue Dec 5, 2022 · 0 comments

Comments

@q-b
Copy link

q-b commented Dec 5, 2022

When the password is changed, .my.cnf diff shows the value in clear text. E.g. check run:

TASK [percona : Copy .my.cnf file into the root home folder] *******************
--- before: /root/.my.cnf
+++ after: /<redacted>/root-my-cnf.j2
@@ -1,3 +1,3 @@
 [client]
 user=root
-password="old"
+password="new"

This can ends up logged if run from CI/CD.

A possible fix could be to add diff: no to the task, but there might be other things to "fix" elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant