You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "oscerd (via GitHub)" <gi...@apache.org> on 2026/04/13 08:39:52 UTC

[PR] CAMEL-23314: camel-opensearch - add SSLContextParameters support for TLS configuration [camel]

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

   ## Summary
   
   Adds `SSLContextParameters` support to `camel-opensearch`, following the same pattern as other Camel components that expose TLS configuration (`camel-vertx-http`, `camel-kafka`, etc.). Users can now configure TLS protocols, cipher suites, named groups, and signature schemes instead of relying solely on the CA certificate path.
   
   ### Changes
   
   - **`OpensearchConfiguration`** - new `sslContextParameters` URI option (label `security`).
   - **`OpensearchComponent`** - now implements `SSLContextParametersAware`; exposes `sslContextParameters` and `useGlobalSslContextParameters` at component level. Propagates the component-level value to the endpoint configuration, falling back to the global `SSLContextParameters` when `useGlobalSslContextParameters=true`.
   - **`OpensearchProducer`** - the SSL setup in `createClient()` now prefers `SSLContextParameters` (via `createSSLContext(camelContext)`) when configured; falls back to `certificatePath` (existing behaviour), and finally to `SSLContext.getDefault()`.
   
   The existing certificate-path-only configuration continues to work as a fallback.
   
   ### Acceptance Criteria (from CAMEL-23314)
   
   - [x] Component supports SSLContextParameters configuration
   - [x] Named groups and signature schemes from SSLContextParameters are applied to TLS connections (via the underlying `SSLContext`)
   - [x] Existing certificate-path-only configuration still works as a fallback
   
   ## Test plan
   
   - [x] New \`OpensearchSslContextParametersTest\` (4 cases):
     - Configuration property round-trip
     - Component-level \`SSLContextParameters\` propagates to endpoint configuration
     - Global \`SSLContextParameters\` is used when \`useGlobalSslContextParameters=true\`
     - Component-level explicit value wins over the global one
   - [x] \`mvn test\` - 4/4 pass
   - [x] \`mvn -DskipTests install\` - catalog metadata regenerated (opensearch.json, configurers, endpoint URI factory)
   - [ ] CI will run the integration tests (require an OpenSearch container)
   
   ---
   _Claude Code on behalf of Andrea Cosentino_


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23314: camel-opensearch - add SSLContextParameters support for TLS configuration [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22578:
URL: https://github.com/apache/camel/pull/22578#issuecomment-4235022588

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23314: camel-opensearch - add SSLContextParameters support for TLS configuration [camel]

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd merged PR #22578:
URL: https://github.com/apache/camel/pull/22578


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23314: camel-opensearch - add SSLContextParameters support for TLS configuration [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #22578:
URL: https://github.com/apache/camel/pull/22578#issuecomment-4235661220

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `catalog/camel-catalog`
   - `components/camel-opensearch`
   - `dsl/camel-componentdsl`
   - `dsl/camel-endpointdsl`
   
   <details><summary>All tested modules (10 modules)</summary>
   
   - Camel :: Catalog :: Camel Catalog
   - Camel :: Component DSL
   - Camel :: Endpoint DSL
   - Camel :: JBang :: MCP
   - Camel :: JBang :: Plugin :: Route Parser
   - Camel :: JBang :: Plugin :: Validate
   - Camel :: Launcher :: Container
   - Camel :: OpenSearch Java API Client
   - Camel :: YAML DSL :: Validator
   - Camel :: YAML DSL :: Validator Maven Plugin
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/24337601542)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org