Skip to content

Commit

Permalink
feat: enable nifi secure script
Browse files Browse the repository at this point in the history
  • Loading branch information
saidsef committed Jan 1, 2025
1 parent 1958475 commit f5858a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions deployment/nifi/configmap-ssl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ data:
-keysize 2048 \
-keypass "${KEY_PASS:-$NIFI_SENSITIVE_PROPS_KEY}" \
-keyalg RSA \
-ext "SAN=dns:${PUBLIC_DNS},ip:${POD_IP},ip:0.0.0.0,dns:${NIFI_WEB_HTTP_HOST},dns:${POD_NAME},dns:${HOSTNAME},dns:${NODE_IDENTITY}" \
-storetype pkcs12
echo "Exporting the self-signed certificate from the keystore"
Expand All @@ -45,7 +46,7 @@ data:
if [[ ! -f "${NIFI_HOME}/keytool/truststore.p12" ]]
then
echo "Import truststore"
echo "Importing truststore"
keytool -import -noprompt -alias nifi-truststore \
-file "${NIFI_HOME}/keytool/nifi-cert.cer" \
-keystore "${TRUSTSTORE_PATH}" \
Expand All @@ -55,4 +56,4 @@ data:
fi
#/usr/bin/bash ${NIFI_HOME}/../scripts/secure.sh
#eval ${NIFI_HOME}/../scripts/secure.sh
# eval ${NIFI_HOME}/../scripts/secure.sh
2 changes: 1 addition & 1 deletion deployment/nifi/configmap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data:
KEYSTORE_PASSWORD: "th1s1s3up34e5r37"
KEYSTORE_TYPE: "PKCS12"
NIFI_ANALYTICS_PREDICT_ENABLED: "true"
NIFI_CLUSTER_IS_NODE: "true"
NIFI_CLUSTER_IS_NODE: "false"
# NIFI_CLUSTER_LOAD_BALANCE_HOST: "nifi"
NIFI_CLUSTER_NODE_CONNECTION_TIMEOUT: "5 min"
NIFI_CLUSTER_NODE_EVENT_HISTORY_SIZE: "25"
Expand Down

0 comments on commit f5858a6

Please sign in to comment.