You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the state is run both the logs and result printed to console display the MySQL root or salt password when configuring MySQL and importing schemas.
ID: mysql_db_0_load
Function: cmd.wait
Name: mysql -u root -hlocalhost -psecret123 test < /etc/mysql/smp.schema
Result: True
Comment: Command "mysql -u root -hlocalhost -psecret123 test < /etc/mysql/smp.schema" run
Started: 04:11:30.974880
Duration: 21.572 ms
Changes:
----------
pid:
7039
retcode:
0
stderr:
mysql: [Warning] Using a password on the command line interface can be insecure.
stdout:
Steps to reproduce the bug
Run the state with the provided pillar data
Expected behaviour
Root passwords should not be visible at any time or in any logs during execution of the state
Attempts to fix the bug
This can be resolved by using environment variables and setting the output_loglevel to quiet for cmd.run states with sensitive information as covered in saltstack/salt#30842
Your setup
Formula commit hash / release tag
v0.54.2
Versions reports (master & minion)
Salt: 2019.2.7
System Versions:
dist: centos 8.2.2004 Core
locale: UTF-8
machine: x86_64
release: 5.4.39-linuxkit
system: Linux
version: CentOS Linux 8.2.2004 Core
Pillar / config used
Bug details
Describe the bug
When the state is run both the logs and result printed to console display the MySQL root or salt password when configuring MySQL and importing schemas.
Steps to reproduce the bug
Run the state with the provided pillar data
Expected behaviour
Root passwords should not be visible at any time or in any logs during execution of the state
Attempts to fix the bug
This can be resolved by using environment variables and setting the output_loglevel to quiet for cmd.run states with sensitive information as covered in saltstack/salt#30842
Existing mysql_root_password State
mysql-formula/mysql/server.sls
Lines 97 to 102 in e20d7c6
Fixed mysql_root_password State
Existing Schema State
mysql-formula/mysql/database.sls
Lines 61 to 67 in e20d7c6
Fixed Schema State
The text was updated successfully, but these errors were encountered: