gnodet-bot commented on code in PR #31029: URL: https://github.com/apache/camel/pull/31029#discussion_r4721263310
########## components/camel-bonita/src/main/docs/bonita-component.adoc: ########## @@ -40,6 +40,25 @@ Any other body, also JSON text that is not an object (such as a JSON array), fai After the operation, the body is still the `Map` of the inputs, or the JSON text that was sent. The id of the started case is set in the `CamelBonitaCaseId` header. +=== Using HTTPS + +By default, the producer calls the REST API of Bonita over plain HTTP, so the username and password of the login, +the session cookies and the `X-Bonita-API-Token` header are sent in clear text. Review Comment: 🔤 **[low] Long sentence (36 words) with passive clause** — "are sent in clear text" can be rewritten in active voice. Consider splitting: ```suggestion By default, the producer calls the REST API of Bonita over plain HTTP. The username, password, session cookies and `X-Bonita-API-Token` header travel in clear text. ``` ########## components/camel-bonita/src/main/docs/bonita-component.adoc: ########## @@ -40,6 +40,25 @@ Any other body, also JSON text that is not an object (such as a JSON array), fai After the operation, the body is still the `Map` of the inputs, or the JSON text that was sent. The id of the started case is set in the `CamelBonitaCaseId` header. +=== Using HTTPS + +By default, the producer calls the REST API of Bonita over plain HTTP, so the username and password of the login, +the session cookies and the `X-Bonita-API-Token` header are sent in clear text. +Set the `protocol` option to `https` to send them over TLS, and set `port` to the HTTPS port of the Bonita server. + +When the JVM does not trust the certificate of the Bonita server, configure a trust store with the +`sslContextParameters` option (or with the global SSL context parameters of Camel and the +`useGlobalSslContextParameters` option of the component). The SSL context is used for the login and for all the +requests of the producer. Without it, the default SSL context of the JVM is used. It is ignored with the `http` +protocol. Review Comment: 🔤 **[low] Three passive clauses in a row** — "is used", "is used", "It is ignored". Suggested active rewrite: ```suggestion `useGlobalSslContextParameters` option of the component). The login and all requests of the producer use this SSL context. Without it, the JAX-RS runtime uses the default SSL context of the JVM. The `http` protocol ignores it. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
