[bitnami/kafka] change zookeeper keystore pem location (#46901)

* feat: change zookeeper ksystore pem location

Signed-off-by: Babatunde Aromire <babatunde.aromire@cognite.com>

* ci: signoff

Signed-off-by: Babatunde Aromire <babatunde.aromire@cognite.com>

* Update bitnami/kafka/3.2/debian-11/rootfs/opt/bitnami/scripts/libkafka.sh

Co-authored-by: Andrés Bono <andresbonojimenez@gmail.com>
Signed-off-by: B'Tunde Aromire <babatunde.aromire@cognite.com>

* refactor: review suggestions

Signed-off-by: Babatunde Aromire <babatunde.aromire@cognite.com>

* refactor: adherence to common styles

Signed-off-by: Babatunde Aromire <babatunde.aromire@cognite.com>

* docs: correction of environment name in doc

Signed-off-by: Babatunde Aromire <babatunde.aromire@cognite.com>

---------

Signed-off-by: Babatunde Aromire <babatunde.aromire@cognite.com>
Signed-off-by: B'Tunde Aromire <babatunde.aromire@cognite.com>
Co-authored-by: Andrés Bono <andresbonojimenez@gmail.com>
This commit is contained in:
B'Tunde Aromire 2023-09-07 11:02:27 +02:00 committed by GitHub
parent da720f816f
commit 3bb68384fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 9 deletions

View File

@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keypair.pem"
cat "${KAFKA_CERTS_DIR}/zookeeper.keystore.pem" "${KAFKA_CERTS_DIR}/zookeeper.keystore.key" > "$keystore_location"
fi
kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"

View File

@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keypair.pem"
cat "${KAFKA_CERTS_DIR}/zookeeper.keystore.pem" "${KAFKA_CERTS_DIR}/zookeeper.keystore.key" > "$keystore_location"
fi
kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"

View File

@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keypair.pem"
cat "${KAFKA_CERTS_DIR}/zookeeper.keystore.pem" "${KAFKA_CERTS_DIR}/zookeeper.keystore.key" > "$keystore_location"
fi
kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"

View File

@ -772,8 +772,8 @@ kafka_zookeeper_configure_tls() {
elif [[ "$KAFKA_ZOOKEEPER_TLS_TYPE" = "PEM" ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.pem ]] && [[ -f "$KAFKA_CERTS_DIR"/zookeeper.keystore.key ]]; then
# Concatenating private key into public certificate file
# This is needed to load keystore from location using PEM
cat "$KAFKA_CERTS_DIR"/zookeeper.keystore.key >>"$KAFKA_CERTS_DIR"/zookeeper.keystore.pem
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keystore.pem"
keystore_location="${KAFKA_CERTS_DIR}/zookeeper.keypair.pem"
cat "${KAFKA_CERTS_DIR}/zookeeper.keystore.pem" "${KAFKA_CERTS_DIR}/zookeeper.keystore.key" > "$keystore_location"
fi
kafka_server_conf_set "zookeeper.clientCnxnSocket" "org.apache.zookeeper.ClientCnxnSocketNetty"

View File

@ -207,7 +207,7 @@ The configuration can easily be setup with the Bitnami Apache Kafka Docker image
* `KAFKA_CFG_PROCESS_ROLES`: Node roles when running in KRaft mode. No defaults.
* `KAFKA_CFG_NODE_ID`: Unique node id, required when running in KRaft mode. No defaults.
* `KAFKA_CFG_CONTROLLER_QUORUM_VOTERS`: Map of id/endpoint information for the set of controller quorum voters in a comma-separated list of {id}@{host}:{port} entries. No defaults.
* `KAFKA_RAFT_CLUSTER_ID`: Kafka cluster ID when using Kafka Raft (KRaft). No defaults.
* `KAFKA_KRAFT_CLUSTER_ID`: Kafka cluster ID when using Kafka Raft (KRaft). No defaults.
Additionally, any environment variable beginning with `KAFKA_CFG_` will be mapped to its corresponding Apache Kafka key. For example, use `KAFKA_CFG_BACKGROUND_THREADS` in order to set `background.threads` or `KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE` in order to configure `auto.create.topics.enable`.