Skip to content

Commit

Permalink
Support Kafka SASL_SSL/SSL security protocol for self signed certifice
Browse files Browse the repository at this point in the history
- Renamed the field names for certificate, truststore and password.
- Removed redundant information from build.gradle

Signed-off-by: Dinu John <[email protected]>
  • Loading branch information
dinujoh committed Feb 23, 2024
1 parent 23d0476 commit 72b0164
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 23 deletions.
13 changes: 0 additions & 13 deletions data-prepper-plugins/http-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

plugins {
id 'java'
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.apache.httpcomponents:httpcore:4.4.16'
testImplementation testLibs.bundles.junit
}

test {
useJUnitPlatform()
}

jacocoTestCoverageVerification {
dependsOn jacocoTestReport
violationRules {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ public class EncryptionConfig {
@JsonProperty("type")
private EncryptionType type = EncryptionType.SSL;

@JsonProperty("certificateContent")
@JsonProperty("certificate_content")
private String certificateContent;

@JsonProperty("trustStoreFilePath")
@JsonProperty("trust_store_file_path")
private String trustStoreFilePath;

@JsonProperty("trustStorePassword")
@JsonProperty("trust_store_password")
private String trustStorePassword;

@JsonProperty("insecure")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ log-pipeline :
- "localhost:9092"
encryption:
type: "NONE"
certificateContent: "CERTIFICATE_DATA"
certificate_content: "CERTIFICATE_DATA"
insecure: "true"
authentication:
sasl:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ log-pipeline :
- "localhost:9092"
encryption:
type: "NONE"
certificateContent: "CERTIFICATE_DATA"
certificate_content: "CERTIFICATE_DATA"
topics:
- name: "quickstart-events"
group_id: "groupdID1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ log-pipeline :
- "localhost:9092"
encryption:
type: "SSL"
certificateContent: "CERTIFICATE_DATA"
certificate_content: "CERTIFICATE_DATA"
topics:
- name: "quickstart-events"
group_id: "groupdID1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ log-pipeline :
- "localhost:9092"
encryption:
type: "SSL"
certificateContent: "CERTIFICATE_DATA"
certificate_content: "CERTIFICATE_DATA"
authentication:
sasl:
plaintext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ log-pipeline :
- "localhost:9092"
encryption:
type: "SSL"
trustStoreFilePath: "some-file-path"
trustStorePassword: "some-password"
trust_store_file_path: "some-file-path"
trust_store_password: "some-password"
authentication:
sasl:
plaintext:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ log-pipeline :
- "localhost:9092"
encryption:
type: "SSL"
certificateContent: "CERTIFICATE_DATA"
certificate_content: "CERTIFICATE_DATA"
authentication:
sasl:
plaintext:
Expand Down

0 comments on commit 72b0164

Please sign in to comment.