Andrea Cosentino created CAMEL-25584:
----------------------------------------

             Summary: camel-lra - only join LRAs hosted by the configured LRA 
coordinator
                 Key: CAMEL-25584
                 URL: https://issues.apache.org/jira/browse/CAMEL-25584
             Project: Camel
          Issue Type: Improvement
          Components: camel-lra
            Reporter: Andrea Cosentino
            Assignee: Andrea Cosentino
             Fix For: 4.24.0, 4.18.6, 4.22.2


When a message with a {{Long-Running-Action}} header reaches a saga route, the 
LRA saga service joins that LRA by calling the URL in the header, and the saga 
component's complete/compensate operations close or cancel it the same way. The 
URL is not checked against the configured LRA coordinator.

* accept a {{Long-Running-Action}} only when its URL is under the configured 
coordinator ({{coordinatorUrl}} + {{coordinatorContextPath}}); otherwise the 
exchange fails with a clear error
* new option {{allowedCoordinatorUrls}} (also 
{{camel.lra.allowedCoordinatorUrls}}): further coordinator URLs to accept, e.g. 
when services reach the same coordinator under different host names
* upgrade-guide note: a {{Long-Running-Action}} from another coordinator is now 
rejected



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to