Merge pull request #313 from wazuh/release-wazuh_3.11.4_7.6.1

Release wazuh 3.11.4 7.6.1
This commit is contained in:
Manuel J. Bernal 2020-03-06 17:41:57 +01:00 committed by GitHub
commit 320061f022
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 39 additions and 27 deletions

View File

@ -1,6 +1,19 @@
# Change Log # Change Log
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## Wazuh Docker v3.11.4_7.6.1
### Added
- Update to Wazuh version 3.11.4_7.6.1
- Enable HTTP v2 on nginx ([@xr09](https://github.com/xr09)) [#308](https://github.com/wazuh/wazuh-docker/pull/308)
### Fixed
- Updated NGINX config syntax ([@xr09](https://github.com/xr09)) [#303](https://github.com/wazuh/wazuh-docker/pull/303)
## Wazuh Docker v3.11.3_7.5.2 ## Wazuh Docker v3.11.3_7.5.2
### Added ### Added

View File

@ -1,2 +1,2 @@
WAZUH-DOCKER_VERSION="3.11.3_7.5.2" WAZUH-DOCKER_VERSION="3.11.4_7.6.1"
REVISION="31130" REVISION="31140"

View File

@ -3,7 +3,7 @@ version: '2'
services: services:
wazuh: wazuh:
image: wazuh/wazuh:3.11.3_7.5.2 image: wazuh/wazuh:3.11.4_7.6.1
hostname: wazuh-manager hostname: wazuh-manager
restart: always restart: always
ports: ports:
@ -13,7 +13,7 @@ services:
- "55000:55000" - "55000:55000"
elasticsearch: elasticsearch:
image: wazuh/wazuh-elasticsearch:3.11.3_7.5.2 image: wazuh/wazuh-elasticsearch:3.11.4_7.6.1
hostname: elasticsearch hostname: elasticsearch
restart: always restart: always
ports: ports:
@ -30,7 +30,7 @@ services:
mem_limit: 2g mem_limit: 2g
kibana: kibana:
image: wazuh/wazuh-kibana:3.11.3_7.5.2 image: wazuh/wazuh-kibana:3.11.4_7.6.1
hostname: kibana hostname: kibana
restart: always restart: always
depends_on: depends_on:
@ -38,8 +38,9 @@ services:
links: links:
- elasticsearch:elasticsearch - elasticsearch:elasticsearch
- wazuh:wazuh - wazuh:wazuh
nginx: nginx:
image: wazuh/wazuh-nginx:3.11.3_7.5.2 image: wazuh/wazuh-nginx:3.11.4_7.6.1
hostname: nginx hostname: nginx
restart: always restart: always
environment: environment:

View File

@ -1,5 +1,5 @@
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2) # Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
ARG ELASTIC_VERSION=7.5.2 ARG ELASTIC_VERSION=7.6.1
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION} FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
ARG ELASTIC_VERSION ARG ELASTIC_VERSION
ARG S3_PLUGIN_URL="https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-s3/repository-s3-${ELASTIC_VERSION}.zip" ARG S3_PLUGIN_URL="https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-s3/repository-s3-${ELASTIC_VERSION}.zip"
@ -16,7 +16,7 @@ ENV XPACK_ML="true"
ENV ENABLE_CONFIGURE_S3="false" ENV ENABLE_CONFIGURE_S3="false"
ARG TEMPLATE_VERSION=v3.11.3 ARG TEMPLATE_VERSION=v3.11.4
# Elasticearch cluster configuration environment variables # Elasticearch cluster configuration environment variables
# If ELASTIC_CLUSTER is set to "true" the following variables will be added to the Elasticsearch configuration # If ELASTIC_CLUSTER is set to "true" the following variables will be added to the Elasticsearch configuration

View File

@ -1,15 +1,14 @@
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2) # Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
FROM docker.elastic.co/kibana/kibana:7.5.2 FROM docker.elastic.co/kibana/kibana:7.6.1
USER kibana USER kibana
ARG ELASTIC_VERSION=7.5.2 ARG ELASTIC_VERSION=7.6.1
ARG WAZUH_VERSION=3.11.3 ARG WAZUH_VERSION=3.11.4
ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}" ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
#ADD https://packages.wazuh.com/wazuhapp/wazuhapp-${WAZUH_APP_VERSION}.zip /usr/share/kibana/ WORKDIR /usr/share/kibana
RUN ./bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-${WAZUH_APP_VERSION}.zip
RUN /usr/share/kibana/bin/kibana-plugin install https://packages.wazuh.com/wazuhapp/wazuhapp-${WAZUH_APP_VERSION}.zip
# RUN rm -rf /tmp/wazuhapp-${WAZUH_APP_VERSION}.zip
WORKDIR /
USER root USER root
COPY config/entrypoint.sh ./entrypoint.sh COPY config/entrypoint.sh ./entrypoint.sh
RUN chmod 755 ./entrypoint.sh RUN chmod 755 ./entrypoint.sh
@ -71,6 +70,6 @@ RUN chmod +x ./welcome_wazuh.sh
RUN ./welcome_wazuh.sh RUN ./welcome_wazuh.sh
USER kibana USER kibana
RUN /usr/local/bin/kibana-docker --optimize RUN NODE_OPTIONS="--max-old-space-size=2048" /usr/local/bin/kibana-docker --optimize
ENTRYPOINT ./entrypoint.sh ENTRYPOINT ./entrypoint.sh

View File

@ -16,4 +16,4 @@ VOLUME ["/etc/nginx/conf.d"]
ENV NGINX_NAME="foo" \ ENV NGINX_NAME="foo" \
NGINX_PWD="bar" NGINX_PWD="bar"
ENTRYPOINT /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -30,14 +30,14 @@ if [ ! -f /etc/nginx/conf.d/kibana.htpasswd ]; then
do do
IFS=':' read -r -a credentials <<< "${users[index]}" IFS=':' read -r -a credentials <<< "${users[index]}"
if [ $index -eq 0 ]; then if [ $index -eq 0 ]; then
echo ${credentials[1]}|htpasswd -i -c /etc/nginx/conf.d/kibana.htpasswd ${credentials[0]} >/dev/null htpasswd -b -c /etc/nginx/conf.d/kibana.htpasswd ${credentials[0]} ${credentials[1]} >/dev/null
else else
echo ${credentials[1]}|htpasswd -i /etc/nginx/conf.d/kibana.htpasswd ${credentials[0]} >/dev/null htpasswd -b /etc/nginx/conf.d/kibana.htpasswd ${credentials[0]} ${credentials[1]} >/dev/null
fi fi
done done
else else
# NGINX_PWD and NGINX_NAME are declared in nginx/Dockerfile # NGINX_PWD and NGINX_NAME are declared in nginx/Dockerfile
echo $NGINX_PWD|htpasswd -i -c /etc/nginx/conf.d/kibana.htpasswd $NGINX_NAME >/dev/null htpasswd -b -c /etc/nginx/conf.d/kibana.htpasswd $NGINX_NAME $NGINX_PWD >/dev/null
fi fi
else else
echo "Kibana credentials already configured" echo "Kibana credentials already configured"
@ -60,9 +60,8 @@ server {
} }
server { server {
listen ${NGINX_PORT} default_server; listen ${NGINX_PORT} default_server ssl http2;
listen [::]:${NGINX_PORT}; listen [::]:${NGINX_PORT} ssl http2;
ssl on;
ssl_certificate /etc/nginx/conf.d/ssl/certs/kibana-access.pem; ssl_certificate /etc/nginx/conf.d/ssl/certs/kibana-access.pem;
ssl_certificate_key /etc/nginx/conf.d/ssl/private/kibana-access.key; ssl_certificate_key /etc/nginx/conf.d/ssl/private/kibana-access.key;
location / { location / {
@ -76,4 +75,4 @@ server {
} }
EOF EOF
nginx -g 'daemon off;' exec nginx -g 'daemon off;'

View File

@ -1,14 +1,14 @@
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2) # Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
FROM phusion/baseimage:latest FROM phusion/baseimage:latest
ARG FILEBEAT_VERSION=7.5.2 ARG FILEBEAT_VERSION=7.6.1
ARG WAZUH_VERSION=3.11.3-1 ARG WAZUH_VERSION=3.11.4-1
ENV API_USER="foo" \ ENV API_USER="foo" \
API_PASS="bar" API_PASS="bar"
ARG TEMPLATE_VERSION="v3.11.3" ARG TEMPLATE_VERSION="v3.11.4"
# Set repositories. # Set repositories.
RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \ RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \