From 63817dfd55772c178e5a51facbcbed705e342b08 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Thu, 7 Sep 2023 12:15:25 -0300 Subject: [PATCH 1/3] add extensions for wazuh.yml --- build-docker-images/wazuh-dashboard/Dockerfile | 2 ++ build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build-docker-images/wazuh-dashboard/Dockerfile b/build-docker-images/wazuh-dashboard/Dockerfile index 1b95ca88..5c3689e9 100644 --- a/build-docker-images/wazuh-dashboard/Dockerfile +++ b/build-docker-images/wazuh-dashboard/Dockerfile @@ -66,6 +66,8 @@ ENV PATTERN="" \ EXTENSIONS_CISCAT="" \ EXTENSIONS_AWS="" \ EXTENSIONS_GCP="" \ + EXTENSIONS_GITHUB=""\ + EXTENSIONS_OFFICE=""\ EXTENSIONS_VIRUSTOTAL="" \ EXTENSIONS_OSQUERY="" \ EXTENSIONS_DOCKER="" \ diff --git a/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh b/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh index 2457315a..4773d45d 100644 --- a/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh +++ b/build-docker-images/wazuh-dashboard/config/wazuh_app_config.sh @@ -25,6 +25,8 @@ declare -A CONFIG_MAP=( [extensions.ciscat]=$EXTENSIONS_CISCAT [extensions.aws]=$EXTENSIONS_AWS [extensions.gcp]=$EXTENSIONS_GCP + [extensions.github]=$EXTENSIONS_GITHUB + [extensions.office]=$EXTENSIONS_OFFICE [extensions.virustotal]=$EXTENSIONS_VIRUSTOTAL [extensions.osquery]=$EXTENSIONS_OSQUERY [extensions.docker]=$EXTENSIONS_DOCKER From de7754364d49ef6b8922989be19c9bff143faed4 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Tue, 12 Sep 2023 15:49:31 -0300 Subject: [PATCH 2/3] change wazuh template origin --- build-docker-images/wazuh-manager/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-docker-images/wazuh-manager/Dockerfile b/build-docker-images/wazuh-manager/Dockerfile index da310bd6..ad3d5aa6 100644 --- a/build-docker-images/wazuh-manager/Dockerfile +++ b/build-docker-images/wazuh-manager/Dockerfile @@ -5,7 +5,7 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh ARG WAZUH_VERSION ARG WAZUH_TAG_REVISION -ARG TEMPLATE_VERSION=4.6 +ARG TEMPLATE_VERSION=v4.6.0 ARG FILEBEAT_CHANNEL=filebeat-oss ARG FILEBEAT_VERSION=7.10.2 ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.2.tar.gz" @@ -54,4 +54,4 @@ RUN chmod 755 /permanent_data.sh && \ # Services ports EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp -ENTRYPOINT [ "/init" ] \ No newline at end of file +ENTRYPOINT [ "/init" ] From 5769159cf9e886e48c02162aa323dbef95a42a41 Mon Sep 17 00:00:00 2001 From: vcerenu Date: Mon, 18 Sep 2023 12:05:29 -0300 Subject: [PATCH 3/3] change RBAC database procedure --- build-docker-images/wazuh-manager/config/create_user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-docker-images/wazuh-manager/config/create_user.py b/build-docker-images/wazuh-manager/config/create_user.py index e2a89325..3bb6bb6c 100644 --- a/build-docker-images/wazuh-manager/config/create_user.py +++ b/build-docker-images/wazuh-manager/config/create_user.py @@ -13,7 +13,7 @@ try: - from wazuh.rbac.orm import create_rbac_db + from wazuh.rbac.orm import check_database_integrity from wazuh.security import ( create_user, get_users, @@ -69,7 +69,7 @@ def disable_user(uid): username, password = read_user_file() # create RBAC database - create_rbac_db() + check_database_integrity() initial_users = db_users() if username not in initial_users: