Skip to content

Correctly set etc path and allow cors config for jolokia #24

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

Conversation

guidograzioli
Copy link
Member

@guidograzioli guidograzioli commented Sep 7, 2022

Fix #22 : Update sysconfig and default JAVA_ARGS
Fix #16 : correctly set HAWTIO_ROLE
Fix #24: new variables allow to config jolokia-access.xml

Variable Description Default
activemq_cors_allow_origin CORS allow origin setting for jolokia *://0.0.0.0*
activemq_cors_strict_checking Whether to enforce strict checking for CORS True

@guidograzioli guidograzioli added the bugfixes Fixes that resolve issues. SHOULD not be used for minor enhancements label Sep 7, 2022
@guidograzioli guidograzioli changed the title Jolokia etc hashed passwords Correctly set instance etc path for jolokia Sep 7, 2022
@guidograzioli guidograzioli force-pushed the jolokia_etc_hashed_passwords branch from 25ee268 to 265f1b4 Compare September 7, 2022 10:22
@@ -28,7 +28,12 @@ activemq_jolokia_url: "http://{{ activemq_host }}:{{ activemq_http_port }}/conso
activemq_console_url: "http://{{ activemq_host }}:{{ activemq_http_port }}/console/"
activemq_jvm_package: java-11-openjdk-headless
activemq_java_home:
activemq_java_opts: "-Xms512M -Xmx2G -XX:+PrintClassHistogram -XX:+UseG1GC -XX:+UseStringDeduplication -Dhawtio.disableProxy=true -Dhawtio.realm=activemq -Dhawtio.offline=true -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal -Djolokia.policyLocation=${ARTEMIS_INSTANCE_ETC_URI}jolokia-access.xml "
activemq_java_opts: "{{ [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guidograzioli be careful, that's getting to complicated for default. Down the road, it might be better to assemble that (somehow) dynamically to be able to check all vars involved and ensure that the array does not blow up to the user.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed... worth mentioning that's the current default value in amq

@guidograzioli guidograzioli force-pushed the jolokia_etc_hashed_passwords branch 2 times, most recently from 4e497b0 to b76d4e9 Compare September 7, 2022 18:26
@guidograzioli guidograzioli force-pushed the jolokia_etc_hashed_passwords branch from b76d4e9 to 73fe64e Compare September 7, 2022 18:27
@guidograzioli guidograzioli force-pushed the jolokia_etc_hashed_passwords branch from 30ca3e9 to f290535 Compare September 7, 2022 18:52
@guidograzioli guidograzioli changed the title Correctly set instance etc path for jolokia Correctly set etc path and allow cors config for jolokia Sep 7, 2022
@guidograzioli guidograzioli merged commit 382f0c0 into ansible-middleware:main Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfixes Fixes that resolve issues. SHOULD not be used for minor enhancements
Projects
None yet
2 participants