This is an automated email from the ASF dual-hosted git repository. JiriOndrusek pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
commit 1f3f01d327455a42412bfd7f613b8a7348b372ba Author: James Netherton <[email protected]> AuthorDate: Fri Aug 7 07:12:27 2026 +0100 Document Jolokia remote access config for the observability example The Jolokia agent now binds to localhost by default and its restrictor rejects non-loopback requests, so hawtio-online on Kubernetes needs server.host and remote-access-allowed to be set. Added them commented out to keep the local defaults secure, and updated the README. Companion to https://github.com/apache/camel-quarkus/pull/8944 Co-authored-by: Claude Opus 5 (1M context) <[email protected]> --- observability/README.adoc | 10 +++++++++- observability/src/main/resources/application.properties | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/observability/README.adoc b/observability/README.adoc index a2813955..6200428b 100644 --- a/observability/README.adoc +++ b/observability/README.adoc @@ -319,7 +319,15 @@ hawtio --port 8085 When this example project is run in dev mode, it will be discoverable from Hawtio via the 'Discover' tab. When running the application from the runnable JAR or native binary, you'll need to choose 'Add Connection' from the 'Remote' tab and add a connection for http://localhost:8778/jolokia/. -When deploying to Kubernetes or Openshift, you can use https://github.com/hawtio/hawtio-online[Hawtio Online]. The `camel-quarkus-jolokia` extension will automatically configure the application to be discoverable from the Hawtio Online console. +When deploying to Kubernetes or Openshift, you can use https://github.com/hawtio/hawtio-online[Hawtio Online]. The `camel-quarkus-jolokia` extension configures SSL client authentication automatically, but you must also uncomment the following properties in `application.properties`. + +[source,properties] +---- +quarkus.camel.jolokia.server.host=0.0.0.0 +quarkus.camel.jolokia.remote-access-allowed=true +---- + +The Jolokia agent binds to `localhost` by default, which is unreachable from outside the pod, and the default restrictor rejects requests from non-loopback addresses. === Package and run the application diff --git a/observability/src/main/resources/application.properties b/observability/src/main/resources/application.properties index b7254004..1293735a 100644 --- a/observability/src/main/resources/application.properties +++ b/observability/src/main/resources/application.properties @@ -47,3 +47,7 @@ greeting-provider-app.service.port = ${quarkus.http.port} # Optional hawtio-online support quarkus.camel.jolokia.kubernetes.client-principal=cn=hawtio-online.hawtio.svc +# Uncomment when deploying to Kubernetes or OpenShift. The Jolokia agent binds to localhost by default, +# which is unreachable from outside the pod, and the default restrictor rejects non-loopback requests. +# quarkus.camel.jolokia.server.host=0.0.0.0 +# quarkus.camel.jolokia.remote-access-allowed=true
