From 15f4526ce3bd81e8e6741bef96dfb26671e0f67a Mon Sep 17 00:00:00 2001 From: rajeevme Date: Sat, 28 Sep 2019 00:05:44 +0530 Subject: [AAI-2617] Search guard is no longer available Change-Id: I5cc786073ac27d3d36d05f0aa89ac5b7f1aadc02 Signed-off-by: rajeevme Change-Id: I6b8ce9867d8b1d8108fcd7002e84f798a5b4e8e2 (cherry picked from commit 360d63a7609c566a6b8043a7de70ae35bd1f258a) --- components/aai-elasticsearch/resources/bin/init_sg.sh | 11 ----------- components/aai-elasticsearch/resources/bin/run.sh | 8 -------- .../aai-elasticsearch/resources/bin/wait_until_started.sh | 9 --------- 3 files changed, 28 deletions(-) delete mode 100644 components/aai-elasticsearch/resources/bin/init_sg.sh delete mode 100644 components/aai-elasticsearch/resources/bin/run.sh delete mode 100644 components/aai-elasticsearch/resources/bin/wait_until_started.sh (limited to 'components/aai-elasticsearch/resources/bin') diff --git a/components/aai-elasticsearch/resources/bin/init_sg.sh b/components/aai-elasticsearch/resources/bin/init_sg.sh deleted file mode 100644 index e859365..0000000 --- a/components/aai-elasticsearch/resources/bin/init_sg.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -/usr/share/elasticsearch/plugins/search-guard-6/tools/sgadmin.sh \ - -cd /usr/share/elasticsearch/config/sg \ - -ks /usr/share/elasticsearch/config/sg/auth/{{ .Values.config.adminKeyStore }} \ - -ts /usr/share/elasticsearch/config/sg/auth/{{ .Values.config.trustStore }} \ - -kspass {{ .Values.config.adminKeyStorePassword }} \ - -tspass {{ .Values.config.trustStorePassword}} \ - -nhnv \ - -icl \ - -p {{ .Values.service.internalPort2 }} \ No newline at end of file diff --git a/components/aai-elasticsearch/resources/bin/run.sh b/components/aai-elasticsearch/resources/bin/run.sh deleted file mode 100644 index a612c74..0000000 --- a/components/aai-elasticsearch/resources/bin/run.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -# Wait for ES to start then initialize SearchGuard -/usr/local/bin/docker-entrypoint.sh eswrapper & -/usr/share/elasticsearch/bin/wait_until_started.sh -/usr/share/elasticsearch/bin/init_sg.sh - -wait \ No newline at end of file diff --git a/components/aai-elasticsearch/resources/bin/wait_until_started.sh b/components/aai-elasticsearch/resources/bin/wait_until_started.sh deleted file mode 100644 index 279253b..0000000 --- a/components/aai-elasticsearch/resources/bin/wait_until_started.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh -RET=1 - -while [[ RET -ne 0 ]]; do - echo "Waiting for Elasticsearch to become ready before running sgadmin..." - curl -XGET -k "https://localhost:{{ .Values.service.internalPort }}/" >/dev/null 2>&1 - RET=$? - sleep 5 -done \ No newline at end of file -- cgit 1.2.3-korg