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
Exception SASL SCRAM User when password is vaulted #637
Comments
@LGouellec Could the following Ansible best practice be a valid workaround for you: https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#keep-vaulted-variables-safely-visible, or is that irrelevant for the issue? |
Hi @erikgb, Yeah it's a valid workaround. |
That's nice! 👍
Yes, I think this could be fixed. Please submit a PR to fix this, and we can review it. This bug will be put in our backlog and handled according to best effort as described here. Or use Confluent Support if you are a Confluent customer. |
🐛 convert AnsibleVaultEncryptedUnicode to String in filter plugin #637
Resolved in PR #640 |
Describe the issue
Using your playbook with sasl_protocol to scram. If you set user password vaulted, you have an exception in this task :
fatal: [XXXXXXX]: FAILED! => {"msg": "An unhandled exception occurred while templating '{{ kafka_broker_combined_properties | combine(kafka_broker_custom_properties) }}'. [....] can only concatenate str (not "AnsibleVaultEncryptedUnicode") to str"}
I think problem raise from combine_properties function because in default configuration password is string. So if password is vault encode myabe fix it with 'toString() python method' :
To Reproduce
All Vars Configuration :
Workaround
A workaround exist, you need to convert vault encoded string :
The text was updated successfully, but these errors were encountered: