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

module_args shows passwords #184

Open
toonvdn opened this issue Aug 29, 2019 · 1 comment
Open

module_args shows passwords #184

toonvdn opened this issue Aug 29, 2019 · 1 comment

Comments

@toonvdn
Copy link

toonvdn commented Aug 29, 2019

Hello,

When invoking a playbook, Ansible seems to write the passwords to the module_args of the invocation dictionary.

Because we'd like to expose the Tower API to benefit from the playbooks, it sure can't show sensitive data.

Is there a way to not log any module_args, at all? Or at least mask the passwords?
Not sure whether it needs to be changed in the module, though.

"invocation": { "module_args": { "username": "admin@local", "adminProxyProtocol": "https", "adminProxyHostname": null, "log": "CRITICAL", "adminProxyPort": 443, "appliance": "test", "adminProxyApplianceShortName": false, "isampwd": "XXX", "lmi_port": 443, "isamdomain": "Default", "omitAdminProxy": false, "password": "XXX", "isamuser": "sec_master" }

Setting no_log: True in the playbook/task doesn't give the expected result, because you see nothing at all.

Kind regards

@ram-ibm
Copy link
Collaborator

ram-ibm commented Dec 7, 2019

This is a good point - sorry I am late responding. Will try and see if we can research options for this.

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

No branches or pull requests

2 participants