Hide "protected_settings" values from being printed in azure_rm_virtualmachineextension #277
Labels
has_pr
PR fixes have been made
medium_priority
Medium priority
work in
In trying to solve, or in working with contributors
SUMMARY
Most of the ansible modules hide the password/credentials from being printed in the logs. Please note , I am not talking about about specifying no_log: True in the playbook tasks in order to hide info.
For eg. azure_rm_virtualmachine.py has below code
This makes the admin_password to be printed as below in the logs
Can we do similar for azure_rm_virtualmachineextension.py file for protected_settings ???
I have already tested this by altering the file azure_rm_virtualmachineextension.py locally as below :
This works and hence wanted to get the opinion if this can be incorporated ?
I do not want to specify no_log=True in the playbook TASK as I want others parameters to be visible during the execution.
ISSUE TYPE
COMPONENT NAME
azure_rm_virtualmachineextension
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Linux abcxyz 3.10.0-957.21.3.el7.x86_64 #1 SMP Fri Jun 14 02:54:29 EDT 2019 x86_64 x86_64 x86_64 GNU/Linux
STEPS TO REPRODUCE
EXPECTED RESULTS
In the logs the value for the protected setting must come as "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER"
like below :
ACTUAL RESULTS
Right now , the workspace ID ( secret) is getting printed in the logs.
The text was updated successfully, but these errors were encountered: