From 23d34f6a8988099887a02f76c881133bf290feb4 Mon Sep 17 00:00:00 2001 From: c-bordon Date: Mon, 2 Oct 2023 08:27:49 -0300 Subject: [PATCH] Fixed OpenSearch security plugin warnings --- build-docker-images/wazuh-indexer/config/config.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build-docker-images/wazuh-indexer/config/config.sh b/build-docker-images/wazuh-indexer/config/config.sh index 00540eef..7d9dc129 100644 --- a/build-docker-images/wazuh-indexer/config/config.sh +++ b/build-docker-images/wazuh-indexer/config/config.sh @@ -143,4 +143,14 @@ find ${TARGET_DIR} -type d -exec chmod 750 {} \; find ${TARGET_DIR} -type f -perm 644 -exec chmod 640 {} \; find ${TARGET_DIR} -type f -perm 664 -exec chmod 660 {} \; find ${TARGET_DIR} -type f -perm 755 -exec chmod 750 {} \; -find ${TARGET_DIR} -type f -perm 744 -exec chmod 740 {} \; \ No newline at end of file +find ${TARGET_DIR} -type f -perm 744 -exec chmod 740 {} \; + +chmod -R 0700 ${TARGET_DIR}/.cache +chmod 0700 ${TARGET_DIR}/extensions +chmod 0700 ${TARGET_DIR}/logs +chmod 0600 ${TARGET_DIR}/opensearch.yml +find ${TARGET_DIR}/bin -type f -exec chmod 0600 {} \; +find ${TARGET_DIR}/jdk/bin -type f -exec chmod 0600 {} \; +chmod 0600 ${TARGET_DIR}/opensearch-security/internal_users.yml +find ${TARGET_DIR}/performance-analyzer-rca/bin -type f -exec chmod 0600 {} \; +chmod 0600 ${TARGET_DIR}/plugins/opensearch-security/tools/wazuh-certs-tool.sh