-
Notifications
You must be signed in to change notification settings - Fork 739
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
devsec.hardening.mysql_hardening - Get all users that have no authentication_string - Hello world #640
Comments
"Hello world!" is the default value of debug.msg I have tried to debug mysql_users_wo_passwords_or_auth_string.query_result.0.0 and it return 'users: null' json_query don't like string null ? |
the "Hello world!" is actually a consequence of an error in you test script, you missed a
leeds to an output of:
|
so I tried to reproduce your problem with this playbook:
results:
So it basically seems to work. Can you try to gather more information to debug this? (maybe run my script) regardless I think you conditions are false, since the |
Thanks for the reply, I have run tasks with verbose :
Maybe I'm missing some python library ? |
I got it !!! I had to install Maybe you have to mention it as pre-requisite ! |
I just started a PR which makes the dependency for When the PR is merged, your issue will be auto-closed. Thank you for your report and the work you put into this! |
Description
Playbook fail when no users without password or authentification_string:
Reproduction steps
When debugging, the query for retrieving "users without password or authentication_string users_wo_auth" return NULL and it seems that Python or ansible interpret it as "Hello world !"
Debugging playbook :
Result :
Direct query in mysql :
Current Behavior
Expected Behavior
No error in execution
OS / Environment
Provide all relevant information below, e.g. target OS versions, network device firmware, etc.
Ansible server : Ubuntu 22.04
node : Debian 11
Ansible Version
Collection Version
# /home/ansible/.ansible/collections/ansible_collections Collection Version ----------------- ------- ansible.posix 1.4.0 community.crypto 2.9.0 community.general 5.5.0 community.mongodb 1.4.1 community.mysql 3.3.0 devsec.hardening 8.6.0
Additional information
No response
The text was updated successfully, but these errors were encountered: