-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set the "camel.sink.endpoint.sslContextParameters" in the CamelHttpsSinkConnector.properties #1610
Comments
What version of the connector are you using? |
@oscerd Hello, sorry for replying lately, the version destais as: implementation group: 'org.apache.camel.kafkaconnector', name: 'camel-https-kafka-connector', version: '4.0.3'. |
The implementation is based on the following Kamelet https://github.com/apache/camel-kamelets/blob/v4.0.3/kamelets/http-secured-sink.kamelet.yaml and SSLContextParameters is not exposed. |
@oscerd Thank you for your replying, our scenario is as below:
If SSLContextParameters is not exposed, how can we handle MTLS scenario for setting "keystore information"? Do you have any suggestion for that? |
We need to create a new Kameelt for that and generating a new connector for that purpose. This requires time. |
@oscerd hope can release new connector for SSLContextParameters setting asap. Currently we cannot directly do the configuration for SSLContextParameters in the file: or https://github.com/apache/camel-kamelets/blob/v4.0.3/kamelets/http-secured-sink.kamelet.yaml Whether only can create a project like Springboot Project and create bean name like "mySSLContextParameters" of SSLContextParameters according to spring configuration: And reference bean mySSLContextParameters by configuration like As this document explanation: I am fresher for Camel Connector, my understanding is correct or not? |
You cannot use the approach with bean and SB project in the Kafka connect context |
I don't know the ETA for this. |
@oscerd One more question, regarding below configuration file 2.Does it support Kafka Connect "Single Message Transform" configuration like below? if it supports could you share some samples for configuration? """ transforms.tenantSelection.type=com.services.kafka.connect.transforms.FilterByTenantId transforms.insertHeaders.type=org.apache.kafka.connect.transforms.InsertHeader """ Thanks. |
No, Kamelets are building blocks used to generate the Kafka connectors in this repository, but they are not Kafka connect oriented. If you want to use SMT, you have to extend the connector and add your own SMT. |
How does http-secured-sink.kamelet.yaml integrate with Kafka? I cannot find any config related with Kafka? Does it need combine with https://github.com/apache/camel-kamelets/blob/v4.0.3/kamelets/kafka-source.kamelet.yaml ? Could you show some demo for that? |
Not http specific, but you can have a look at https://github.com/apache/camel-kamelets-examples/tree/main/jbang/kafka-batch-s3 |
@oscerd Regarding Kafka sink connector of camel-https-kafka-connector doc reference :https://camel.apache.org/camel-kafka-connector/4.0.x/reference/connectors/camel-https-kafka-sink-connector.html How does it support oauth2 relevant configuration items something like below http component? Not sure whether it is similar with SSLContextParameters also does not expose to configuration file. |
It doesn't expose those parameters. We need a specialized kamelet for that purpose and we need to support camel 4.4.x |
@oscerd There is another issue regarding camel-https-kafka-connector, Not sure we can add parameters to have the connector construct a unique HTTP API URL like containing the Kafka record key , topic name and others value that refer to fields from the Kafka record. If currently we do not support that, whether have plan to implement it? Thanks |
For doing that we need to use toD in the Kamelet instead of to and you'll need to use Camel headers for the purpose. As of today we don't have any plan to support that, first we need to switch to Camel 4.4.x |
One more question regarding CamelHttpsSinkConnector configuration. I do not know how to configure it in the properties file. Version destais as: implementation group: 'org.apache.camel.kafkaconnector', name: 'camel-https-kafka-connector', version: '4.0.3'. Thanks |
It's not exposed. |
@oscerd Now, shall we have some methods or approches to disableCookieManagement? CloseableHttpClient httpClient = HttpClients.custom() |
@oscerd For the Camel 4.4.x, shall we can expose the "camel.component.https.cookieManagementDisabled" to control the Apache HttpClient can disable the cookie management? We have the use case that the events are belong to multi-tenants, during events sync to Remote Endpoint, it will cause the issue something like the tenantA’s cookie will send to tenantB’s and lead security issue. Thanks |
I created this: apache/camel-kamelets#2042 The target it's 4.7.0, which won't be an LTS, @valdar is working on releasing 4.4.x for Camel-Kafka-connector and the next supported LTS will 4.8.0. So you'll have to wait. |
@oscerd Cloud you provide the available timeline regarding the version 4.4.x and 4.8.0? we can do the further plan. |
In 4.4.x you don't have the fix. For 4.8 the release should be after summer maybe Sept/Oct. After that we need to release the kamelets and after camel Kafka connector. It takes a while |
@oscerd Whether we not only expose "sslContextParameters","camel.component.https.cookieManagementDisabled", and add another fields as many as we can, something like but not limit "camel.sink.endpoint.authMethodPriority", "camel.sink.endpoint.authPassword", "camel.sink.endpoint.authUsername", "camel.component.https.connectionRequestTimeout","camel.component.https.connectTimeout","camel.component.https.responseTimeout","camel.component.https.soTimeout" |
Just checked the version 4.4.2 already released, could help confirm that "sslContextParameters" and "oauth2 related parameters" whether exposed or not? Thanks a lot. |
As already said:
It will be in the next LTS so 4.8.x |
hi,
I am trying to use the CamelHttpsSinkConnector to fulfill that sync the Kafka events to the remote Endpoint.
The remote endpoint URL accessing must by MTLS need to set keystore information.
According to below example and doc, I cannot understand how to set the "camel.sink.endpoint.sslContextParameters" in the CamelHttpsSinkConnector.properties
Could you provide one example for that?
https://github.com/apache/camel-kafka-connector/blob/camel-kafka-connector-4.0.x/connectors/camel-https-kafka-connector/src/main/docs/examples/CamelHttpsSinkConnector.properties
https://camel.apache.org/camel-kafka-connector/next/reference/connectors/camel-https-kafka-sink-connector.html
Best regards
The text was updated successfully, but these errors were encountered: