-
Notifications
You must be signed in to change notification settings - Fork 33
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
SOLR Shared Secret Incorrectly Quoted in JAVA_TOOL_OPTIONS #806
Comments
Reviweing the code. Same seems to apply to the other values set to JAVA_TOOL_OPTIONS about the
|
Fixing it in shell will be a nightmare and probably open the door for regressions or we'll simply miss some use-cases. |
Came back to this and foud this works:
Produces:
Would just require to sanitize the every value escaping the
|
Bug description
The SOLR shared secret is configured both for the repository and for SOLR through the
JAVA_TOOL_OPTIONS
. In both cases it is set in a shell script (tomcat.sh or solr.sh) in this way:Which results in, for example:
As the example contains a $ sign, the shell script will process the string and result in:
Which end up being the secret value set for both repository and SOLR. As the value matches, it operationally works, but breaks any attempt to access the SOLR in other way.
A simple way to test it:
Will output:
Whereas:
Gives the correct result:
Target OS
Any
Host OS
Any
Playbook version
Any (ACS vertion 7.2+)
Ansible error
Not relevant
Ansible context
Not relevant
ansible --version
Not relevant
ansible-config dump --only-changed
Not relevant
ansible-inventory -i your_inventory_file --graph
Not relevant
pip list
Not relevant
The text was updated successfully, but these errors were encountered: