Skip to content

Commit 3294624

Browse files
tabVersionxxchan
andauthored
feat: add kafka props enable.ssl.certificate.verification (#15073)
Signed-off-by: tabVersion <[email protected]> Co-authored-by: xxchan <[email protected]>
1 parent 2306bd9 commit 3294624

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

src/connector/src/common.rs

+7
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ pub struct RdKafkaPropertiesCommon {
259259
#[serde(rename = "properties.client.id")]
260260
#[serde_as(as = "Option<DisplayFromStr>")]
261261
pub client_id: Option<String>,
262+
263+
#[serde(rename = "properties.enable.ssl.certificate.verification")]
264+
#[serde_as(as = "Option<DisplayFromStr>")]
265+
pub enable_ssl_certificate_verification: Option<bool>,
262266
}
263267

264268
impl RdKafkaPropertiesCommon {
@@ -275,6 +279,9 @@ impl RdKafkaPropertiesCommon {
275279
if let Some(v) = self.client_id.as_ref() {
276280
c.set("client.id", v);
277281
}
282+
if let Some(v) = self.enable_ssl_certificate_verification {
283+
c.set("enable.ssl.certificate.verification", v.to_string());
284+
}
278285
}
279286
}
280287

src/connector/with_options_sink.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ KafkaConfig:
252252
field_type: String
253253
comments: Client identifier
254254
required: false
255+
- name: properties.enable.ssl.certificate.verification
256+
field_type: bool
257+
required: false
255258
- name: properties.allow.auto.create.topics
256259
field_type: bool
257260
comments: Allow automatic topic creation on the broker when subscribing to or assigning non-existent topics.

src/connector/with_options_source.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ KafkaProperties:
143143
field_type: String
144144
comments: Client identifier
145145
required: false
146+
- name: properties.enable.ssl.certificate.verification
147+
field_type: bool
148+
required: false
146149
- name: properties.queued.min.messages
147150
field_type: usize
148151
comments: Minimum number of messages per topic+partition librdkafka tries to maintain in the local consumer queue.

0 commit comments

Comments
 (0)