[ 
https://issues.apache.org/jira/browse/CAMEL-27696?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18152225#comment-18152225
 ] 

Claus Ibsen commented on CAMEL-27696:
-------------------------------------

Merged in https://github.com/apache/camel/pull/31035 as 
https://github.com/apache/camel/commit/28c490b76ecab190f05918ce1e61ceedaaf7a71d,
 fixed in 4.24.0.

_Claude Code on behalf of Claus Ibsen_

> camel-jgroups-raft - document that the bundled raft.xml is for development 
> only, and warn when it is used
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27696
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27696
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jgroups
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> h4. camel-jgroups-raft
> When the {{channelProperties}} option is not set (on the endpoint or the 
> component), {{JGroupsRaftEndpoint.resolveHandle()}} creates the JChannel from 
> {{raft.xml}}, which is the file in the camel-jgroups-raft JAR 
> ({{src/main/resources/raft.xml}}) unless another {{raft.xml}} comes first. 
> The {{JGroupsRaftClusterService}} uses the same file when {{jgroupsConfig}} 
> is not set.
> That file is a sample configuration: UDP multicast on 228.5.5.5, no AUTH and 
> no SYM_ENCRYPT/ASYM_ENCRYPT protocol, and a single RAFT member 
> ({{members="A"}}). Any host on the same multicast network that uses the same 
> cluster name can join the cluster and take part in the Raft log, and the 
> messages are sent in clear text.
> The option text and the documentation only say that the bundled raft.xml 
> lists A as the only member.
> h4. camel-jgroups
> {{JGroupsEndpoint.resolveChannel()}} creates {{new JChannel()}} when neither 
> {{channel}} nor {{channelProperties}} is set, which uses the default 
> {{udp.xml}} of the JGroups JAR (UDP multicast, no AUTH, no encryption). The 
> option text only says "Specifies configuration properties of the JChannel 
> used by the endpoint."
> h4. Proposed change
> * Say in the {{channelProperties}} option text (component and endpoint, both 
> components) and in the documentation that the default configuration is meant 
> for development and tests, and that production should set 
> {{channelProperties}} to its own JGroups configuration with authentication 
> and encryption (for example AUTH and SYM_ENCRYPT or ASYM_ENCRYPT) and, for 
> raft, the real members ({{raft_members}} / {{members}} of RAFT).
> * Log a WARN when the endpoint (or the raft cluster service) creates its 
> channel from the default configuration, once per start, not per message.
> * The protocol stack of the bundled raft.xml is not changed.
> _Claude Code on behalf of Claus Ibsen_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to