Skip to content

Commit

Permalink
Do not log KafkaAgent configuration at Kafka node startup
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Scholz <[email protected]>
  • Loading branch information
scholzj committed Oct 22, 2024
1 parent bab6083 commit b3e5041
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions docker-images/kafka-based/kafka/scripts/kafka_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,16 +108,17 @@ else
rm -f $KAFKA_READY $ZK_CONNECTED 2> /dev/null
fi

KEY_STORE=/tmp/kafka/cluster.keystore.p12
TRUST_STORE=/tmp/kafka/cluster.truststore.p12

# Generate the Kafka Agent configuration file
echo ""
echo "Preparing Kafka Agent configuration"
rm -f /tmp/kafka-agent.properties
tee /tmp/kafka-agent.properties <<EOF
sslKeyStorePath=${KEY_STORE}
cat <<EOF > /tmp/kafka-agent.properties
sslKeyStorePath=/tmp/kafka/cluster.keystore.p12
sslKeyStorePass=${CERTS_STORE_PASSWORD}
sslTrustStorePath=${TRUST_STORE}
sslTrustStorePath=/tmp/kafka/cluster.truststore.p12
sslTrustStorePass=${CERTS_STORE_PASSWORD}
EOF
echo ""

KAFKA_OPTS="${KAFKA_OPTS} -javaagent:$(ls "$KAFKA_HOME"/libs/kafka-agent*.jar)=$KAFKA_READY:$ZK_CONNECTED:/tmp/kafka-agent.properties"
export KAFKA_OPTS
Expand Down

0 comments on commit b3e5041

Please sign in to comment.