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

win_psexec module is exposing password to output #43

Closed
jborean93 opened this issue Mar 11, 2020 · 2 comments · Fixed by #231
Closed

win_psexec module is exposing password to output #43

jborean93 opened this issue Mar 11, 2020 · 2 comments · Fixed by #231

Comments

@jborean93
Copy link
Collaborator

From @cuichenli on Nov 18, 2019 05:04

SUMMARY

The win_psexec module is exposing the password and username to output, is that intended? Is there a way to hide it? Thanks!

My playbook:

- name: Psexec
  win_psexec:
    command: >
      powershell.exe 
    session: 1
    wait: yes
    interactive: yes
    username: "username"
    password: "password"
changed: [MYSERVER] => {
	....
    "psexec_command": "psexec64.exe -u username -p password -i 1 -accepteula powershell.exe",
  	....
ISSUE TYPE
  • Bug Report
COMPONENT NAME

win_psexec

ANSIBLE VERSION
ansible 2.8.5
python version = 3.7.3 (default, Apr  3 2019, 05:39:12) [GCC 8.3.0]
OS / ENVIRONMENT

Host OS : Linux
Target OS: Windows

Copied from original issue: ansible/ansible#64978

@jborean93
Copy link
Collaborator Author

From @ShachafGoldstein on Nov 18, 2019 13:24

We can make a patch to replace the password in the output with *PASSWORD_REPLACED* but if someone would need to see if the password value was formatted correctly they couldn't.

@kroov
Copy link

kroov commented Nov 24, 2020

Any updates?
Password should not be in module output.

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

Successfully merging a pull request may close this issue.

2 participants