Closed Nightreaver closed 2 years ago
Hi. I am looking through the vmware_guest
module and the only two fields that are marked as sensitive are customization.domainadminpassword
and customization.password
. The create playbook only utilizes the password option (https://github.com/ansible-community/molecule-vmware/blob/d731aaa3bcd862251d7a1a05a408b68bab4daebb/molecule_vmware/cookiecutter/%7B%7Bcookiecutter.molecule_directory%7D%7D/%7B%7Bcookiecutter.scenario_name%7D%7D/tasks/create_windows_instance.yml#L25), which comes from the driver section of the Molecule's configuration.
This may sound silly, but did you by any chance set your driver.vm_password
to 1?
Hello
the password is not even close to be, or contain a 1
as digit. As I mentioned, the only thing i can think of is, that hw_cores_per_socket
is getting censored after being "marked" as "NO_LOG" parameter. After this the 1 gets censored everywhere. But I don't get why the hw_cores_per_socket
is getting this at all, and why its only sensitive on windows, not on linux.
@Nightreaver Can you please produce a simple playbook that reproduce this error. I do think molecule has anything to do with this because there is no code in molecule or its driver that does something special about passwords.
Keep in mind that if you use a password of "1" anywhere in your playbooks you may endup with some messed output like this. That is because the secret-string (1) is replaced everywhere with the censored text ********
.
Issue Type
Molecule and Ansible details
Molecule installation method (one of):
Ansible installation method (one of):
Detail any linters or test runners used:
Desired Behavior
print uncensored values
Actual Behaviour
Im running molecule with molecule vmware on vsphere esx 6.7 I have different roles which are linux and windows ones. Surprisingly, for linux hosts everything works well, and inventoy or lets say the
- debug: msg: "{{server}}"
output in that role looks fineOn the windows role however it gets censored like crazy
So overall, every
1
in that early log get censored, which of course includes IP addresswhich of course ends up in the inventory (only for win role)
I was wondering if this is because
hw_cores_per_socket
(which is 1) get censored on windows but no on linux, but I couldnt find any reference to this inmolecule_vmware
pluginIn molecule I have no idea where to start looking, any suggestions welcome