pythonindia / magudi

Salt stack based config for Python India servers
https://in.pycon.org
5 stars 9 forks source link

Change log level for salt-call in provision script #25

Closed zerothabhishek closed 5 years ago

zerothabhishek commented 5 years ago

In the provision script, salt-call runs with a log level of debug, which leads to it logging some sensitive credentials on standard output.

This makes it difficult to use provision on a CI system. Even while running manually, people often redirect a command's output to a log file (provision >> provisioning.log). That can also lead to credentials getting leaked inadvertently.

With this change, while executing normally, the provision script does not log any credentials. And whenever a detailed log is needed, it can be run with a debug flag (provision --debug)

vigneshsarma commented 5 years ago

fixes #24