-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added https port and renamed ports (#19)
* Added https port and renamed ports * Added NiFi security autoload to config map * Added toolset security scripts * Added cluster LB
- Loading branch information
Showing
7 changed files
with
107 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: nifi-ssl-cm | ||
data: | ||
security.sh: | | ||
#!/bin/bash | ||
set -ex -o allexport | ||
ORGANISATION_UNIT=${ORGANISATION_UNIT:-'Cloud Services Application'} | ||
ORGANISATION=${ORGANISATION:-'Cloud Services'} | ||
PUBLIC_DNS=${PUBLIC_DNS:-'nifi.tld'} | ||
CITY=${CITY:-'London'} | ||
STATE=${STATE:-'London'} | ||
COUNTRY_CODE=${COUNTRY_CODE:-'GB'} | ||
KEY_PASS=${KEY_PASS:-$KEYSTORE_PASS} | ||
KEYSTORE_PASS=${KEYSTORE_PASS:-$NIFI_SENSITIVE_PROPS_KEY} | ||
KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD:-$NIFI_SENSITIVE_PROPS_KEY} | ||
KEYSTORE_PATH=${NIFI_HOME}/keytool/keystore.p12 | ||
KEYSTORE_TYPE=jks | ||
TRUSTSTORE_PASS=${TRUSTSTORE_PASS:-$NIFI_SENSITIVE_PROPS_KEY} | ||
TRUSTSTORE_PASSWORD=${TRUSTSTORE_PASSWORD:-$NIFI_SENSITIVE_PROPS_KEY} | ||
TRUSTSTORE_PATH=${NIFI_HOME}/keytool/truststore.jks | ||
TRUSTSTORE_TYPE=jks | ||
if [[ ! -f "${NIFI_HOME}/keytool/keystore.p12" ]] | ||
then | ||
echo "Creating keystore" | ||
keytool -genkey -noprompt -alias nifi-keystore \ | ||
-dname "CN=SA,OU=${ORGANISATION_UNIT},O=${ORGANISATION},L=${CITY},S=${STATE},C=${COUNTRY_CODE}" \ | ||
-keystore ${NIFI_HOME}/keytool/keystore.p12 \ | ||
-storepass ${KEYSTORE_PASS:-$NIFI_SENSITIVE_PROPS_KEY} \ | ||
-KeySize 2048 \ | ||
-keypass "${KEY_PASS:-$NIFI_SENSITIVE_PROPS_KEY}" \ | ||
-keyalg RSA \ | ||
-storetype pkcs12 | ||
fi | ||
if [[ ! -f "${NIFI_HOME}/keytool/truststore.jks" ]] | ||
then | ||
echo "Creating truststore" | ||
keytool -genkey -noprompt -alias nifi-truststore \ | ||
-dname "CN=SA,OU=${ORGANISATION_UNIT},O=${ORGANISATION},L=${CITY},S=${STATE},C=${COUNTRY_CODE}" \ | ||
-keystore ${NIFI_HOME}/keytool/truststore.jks \ | ||
-storetype jks \ | ||
-keypass ${KEYSTORE_PASS:-$NIFI_SENSITIVE_PROPS_KEY} \ | ||
-storepass ${KEY_PASS:-$NIFI_SENSITIVE_PROPS_KEY} \ | ||
-KeySize 2048 | ||
fi | ||
#/usr/bin/bash ${NIFI_HOME}/../scripts/secure.sh | ||
#eval ${NIFI_HOME}/../scripts/secure.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters