Skip to content

Commit

Permalink
chore: add truststore certificate as env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kortwael authored and rtyler committed Jul 3, 2024
1 parent b44b5b8 commit a1990e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,9 @@ fn kafka_client_config_from_options(opts: &IngestOptions) -> ClientConfig {
if let Ok(key_pem) = std::env::var("KAFKA_DELTA_INGEST_KEY") {
kafka_client_config.set("ssl.key.pem", key_pem);
}
if let Ok(ca_pem) = std::env::var("KAFKA_DELTA_INGEST_CA") {
kafka_client_config.set("ssl.ca.pem", ca_pem);
}
if let Ok(scram_json) = std::env::var("KAFKA_DELTA_INGEST_SCRAM_JSON") {
let value: Value = serde_json::from_str(scram_json.as_str())
.expect("KAFKA_DELTA_INGEST_SCRAM_JSON should be valid JSON");
Expand Down

0 comments on commit a1990e6

Please sign in to comment.