From b544bc62c7d5ac970cb4dc48f5401d7abfba7440 Mon Sep 17 00:00:00 2001 From: Adam Souquieres Date: Thu, 21 Nov 2024 09:25:53 +0100 Subject: [PATCH] Do not expose full configuration in the logs to avoid to leak secrets. Kafka Streams already expose this in a secure way. --- .../kstreamplify/context/KafkaStreamsExecutionContext.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/kstreamplify-core/src/main/java/com/michelin/kstreamplify/context/KafkaStreamsExecutionContext.java b/kstreamplify-core/src/main/java/com/michelin/kstreamplify/context/KafkaStreamsExecutionContext.java index 434ab36..199586f 100644 --- a/kstreamplify-core/src/main/java/com/michelin/kstreamplify/context/KafkaStreamsExecutionContext.java +++ b/kstreamplify-core/src/main/java/com/michelin/kstreamplify/context/KafkaStreamsExecutionContext.java @@ -73,10 +73,5 @@ public static void registerProperties(Properties properties) { } KafkaStreamsExecutionContext.properties = properties; - StringBuilder stringBuilderProperties = new StringBuilder("Kafka Stream properties:\n"); - properties.forEach( - (key, value) -> stringBuilderProperties.append("\t").append(key).append(" = ") - .append(value).append("\n")); - log.info(stringBuilderProperties.toString()); } }