From 96b54e345f175ffef78d9ab045af204d4abaa2af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Souqui=C3=A8res?= Date: Thu, 21 Nov 2024 09:50:10 +0100 Subject: [PATCH] Do not expose full configuration in the logs to avoid to leak secrets. (#277) 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()); } }