diff --git a/production_cluster/nginx/nginx.conf b/production_cluster/nginx/nginx.conf index 864aa77b..b2103bb0 100644 --- a/production_cluster/nginx/nginx.conf +++ b/production_cluster/nginx/nginx.conf @@ -28,7 +28,7 @@ http { server_tokens off; gzip on; - # kibana UI + # Dashboard UI server { listen 80; listen [::]:80; diff --git a/wazuh-dashboard/Dockerfile b/wazuh-dashboard/Dockerfile index 821d23d2..566b3aba 100644 --- a/wazuh-dashboard/Dockerfile +++ b/wazuh-dashboard/Dockerfile @@ -7,7 +7,7 @@ ARG WAZUH_VERSION=4.3.0-1 RUN apt-get update && apt install curl libcap2-bin -y #Download and install Wazuh Dashboard -RUN curl https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-dashboard/wazuh-dashboard_${WAZUH_VERSION}_amd64.deb --output wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \ +RUN curl https://packages-dev.wazuh.com/pre-release/apt/pool/main/w/wazuh-dashboard/wazuh-dashboard_${WAZUH_VERSION}_amd64.deb --output wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \ dpkg -i wazuh-dashboard_${WAZUH_VERSION}_amd64.deb && \ apt-get clean -y && rm -rf wazuh-dashboard_${WAZUH_VERSION}_amd64.deb @@ -57,6 +57,8 @@ RUN chmod 700 /entrypoint.sh RUN chmod 700 /wazuh_app_config.sh +RUN chown 1000:1000 /*.sh + COPY --from=builder --chown=1000:1000 /usr/share/wazuh-dashboard /usr/share/wazuh-dashboard COPY --from=builder --chown=1000:1000 /run/wazuh-dashboard /run/wazuh-dashboard COPY --from=builder --chown=1000:1000 /etc/wazuh-dashboard /etc/wazuh-dashboard diff --git a/wazuh-dashboard/config/entrypoint.sh b/wazuh-dashboard/config/entrypoint.sh index b05f93da..ec31aafe 100644 --- a/wazuh-dashboard/config/entrypoint.sh +++ b/wazuh-dashboard/config/entrypoint.sh @@ -7,4 +7,4 @@ /wazuh_app_config.sh -runuser wazuh-dashboard --shell="/bin/bash" --command="/usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/opensearch_dashboards.yml" +/usr/share/wazuh-dashboard/bin/opensearch-dashboards -c /etc/wazuh-dashboard/opensearch_dashboards.yml \ No newline at end of file diff --git a/wazuh-indexer/Dockerfile b/wazuh-indexer/Dockerfile index 8ae49e70..8aff4760 100644 --- a/wazuh-indexer/Dockerfile +++ b/wazuh-indexer/Dockerfile @@ -49,6 +49,8 @@ COPY config/securityadmin.sh / RUN chmod 700 /entrypoint.sh && chmod 700 /securityadmin.sh +RUN chown 1000:1000 /*.sh + COPY --from=builder --chown=1000:1000 /debian/wazuh-indexer/usr/share/wazuh-indexer /usr/share/wazuh-indexer COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/systemd /usr/lib/systemd COPY --from=builder --chown=0:0 /debian/wazuh-indexer/usr/lib/sysctl.d /usr/lib/sysctl.d