Claus Ibsen created CAMEL-27696:
-----------------------------------
Summary: 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
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)