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
Json keyword admin is replaced by '*****' #74210
Comments
Files identified in the description:
If these files are incorrect, please update the |
@odd22 this is happening because of an update to the uri module. The module tries to be smart and censor your BasicAuth password in the output (or maybe not, For verification, I'm running in lib/ansible/modules/uri.py:630 no_log is set on the uri password. |
Caused by #70762 |
@kindlehl Thanks for the explanation and the pointer. So, in order to solve my problem, do I need to change the default 'admin' password or simply use the Encoded Basic Auth header instead of providing clear login/password ? |
@odd22 either would work |
I tested the Basic Auth ie. headers:
Authorization: Basic xxxxxxxx and it works fine. I would try to set Don't know if this need to be documented or at least add a warning in the uri documentation regarding the password variable. In any case, I think you could close this issue. |
Closing per above. |
Summary
Hi,
I wrote a playbook that use OpenDaylight rest API to collect network IP/MPLS topology information. One of them, is related to Traffic Engineering (see RFC3630 e.g.) and named 'admin-group'.
With ansible 2.9.6, I got the correct json from OpenDaylight, while with a more recent version of ansible, at least 2.9.18, the json keyword 'admin-group' is automatically replaced by '*****-group' which break my processing.
I understand that this kind of sanitize is good from a security point of view, but in some case, must be disable or bypass.
I don't find in documentation or on the web any indication about this feature.
Can you tell me if it could be disable ? if yes, how ? if not, we need a mechanism to disable it.
Regards
Olivier
Issue Type
Bug Report
Component Name
ansible-playbook
Ansible Version
Configuration
OS / Environment
$ more /etc/redhat-release
CentOS Linux release 8.3.2011
It is the awx_task docker from a clean AWX 17.1.0 installation
Steps to Reproduce
Expected Results
Small extract of the global output with the expected json "admin-group" keyword (obtained with ansible 2.9.6):
Actual Results
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered: