davsclaus opened a new pull request, #31399:
URL: https://github.com/apache/camel/pull/31399

   ## Description
   
   [CAMEL-28113](https://issues.apache.org/jira/browse/CAMEL-28113): on 4.22.x, 
`camel.server.useGlobalSslContextParameters=false` and 
`camel.management.useGlobalSslContextParameters=false` are ignored when global 
SSL (`camel.ssl.*`) is enabled. `BaseMainSupport` checked 
`properties.containsKey("useGlobalSslContextParameters")` after 
`setPropertiesOnTarget(...)`, which removes the bound keys, so the HTTP server 
and the HTTP management server were always switched to the global SSL context. 
So you cannot serve the application over TLS while keeping the 
management/health port on plain HTTP, which worked on 4.18.x.
   
   This backports only the `explicitGlobalSsl` part of CAMEL-25099 
(45cff41ebfca, #27001) from main: whether the option is configured is now read 
before the properties are bound. That is 4 hunks in `BaseMainSupport`, applied 
without conflicts.
   
   The rest of CAMEL-25099 is intentionally **not** backported. It changes 
behaviour that LTS users may rely on (the `traceRests` default, the enabling of 
metrics/otel/lra configured using the Java API, wildcard component options on 
components created later). The reporter only asked for this part.
   
   Not a straight cherry-pick: the test of the original commit is in 
`MainConfigurationEdgeCasesTest`, which does not exist on 4.22.x. This adds 
`MainHttpServerGlobalSslTest` instead. It covers the default (both servers use 
global SSL), an explicit `false` on the server, and an explicit `false` on the 
management server (the setup in the JIRA). Two of its three tests fail without 
the fix.
   
   camel-4.18.x is not affected (the automatic use of global SSL came in 4.20, 
CAMEL-22497).
   
   ## Testing
   
   - `core/camel-main`: `mvn test`, 239 tests, all pass.
   - `MainHttpServerGlobalSslTest` fails without the change in 
`BaseMainSupport` (`expected: <false> but was: <true>`) and passes with it.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to