Skip to content

Commit 44a7a9b

Browse files
author
Jose M. Garcia
authored
Merge pull request #287 from wazuh/3.11.0_7.5.1
Release 3.11.0_7.5.1
2 parents 99361ee + 49f1b47 commit 44a7a9b

8 files changed

Lines changed: 49 additions & 59 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## Wazuh Docker v3.11.0_7.5.1
5+
6+
### Added
7+
8+
- Update to Wazuh version 3.11.0_7.5.1
9+
- Filebeat configuration file updated to latest version ([@manuasir](https://github.com/manuasir)) [#271](https://github.com/wazuh/wazuh-docker/pull/271)
10+
- Allow using the hostname as node_name for managers ([@JPLachance](https://github.com/JPLachance)) [#261](https://github.com/wazuh/wazuh-docker/pull/261)
11+
412
## Wazuh Docker v3.10.2_7.5.0
513

614
### Added

VERSION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
WAZUH-DOCKER_VERSION="3.10.2_7.5.0"
2-
REVISION="31030"
1+
WAZUH-DOCKER_VERSION="3.11.0_7.5.1"
2+
REVISION="31100"

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ version: '2'
33

44
services:
55
wazuh:
6-
image: wazuh/wazuh:3.10.2_7.5.0
6+
image: wazuh/wazuh:3.11.0_7.5.1
77
hostname: wazuh-manager
88
restart: always
99
ports:
@@ -13,7 +13,7 @@ services:
1313
- "55000:55000"
1414

1515
elasticsearch:
16-
image: wazuh/wazuh-elasticsearch:3.10.2_7.5.0
16+
image: wazuh/wazuh-elasticsearch:3.11.0_7.5.1
1717
hostname: elasticsearch
1818
restart: always
1919
ports:
@@ -30,7 +30,7 @@ services:
3030
mem_limit: 2g
3131

3232
kibana:
33-
image: wazuh/wazuh-kibana:3.10.2_7.5.0
33+
image: wazuh/wazuh-kibana:3.11.0_7.5.1
3434
hostname: kibana
3535
restart: always
3636
depends_on:
@@ -39,7 +39,7 @@ services:
3939
- elasticsearch:elasticsearch
4040
- wazuh:wazuh
4141
nginx:
42-
image: wazuh/wazuh-nginx:3.10.2_7.5.0
42+
image: wazuh/wazuh-nginx:3.11.0_7.5.1
4343
hostname: nginx
4444
restart: always
4545
environment:

elasticsearch/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
2-
ARG ELASTIC_VERSION=7.5.0
2+
ARG ELASTIC_VERSION=7.5.1
33
FROM docker.elastic.co/elasticsearch/elasticsearch:${ELASTIC_VERSION}
44
ARG S3_PLUGIN_URL="https://artifacts.elastic.co/downloads/elasticsearch-plugins/repository-s3/repository-s3-${ELASTIC_VERSION}.zip"
55

@@ -15,7 +15,7 @@ ENV XPACK_ML="true"
1515

1616
ENV ENABLE_CONFIGURE_S3="false"
1717

18-
ARG TEMPLATE_VERSION=v3.10.2
18+
ARG TEMPLATE_VERSION=v3.11.0
1919

2020
# Elasticearch cluster configuration environment variables
2121
# If ELASTIC_CLUSTER is set to "true" the following variables will be added to the Elasticsearch configuration

elasticsearch/config/load_settings.sh

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ set -e
55

66
el_url=${ELASTICSEARCH_URL}
77

8-
if [ "x${WAZUH_API_URL}" = "x" ]; then
9-
wazuh_url="https://wazuh"
10-
else
11-
wazuh_url="${WAZUH_API_URL}"
12-
fi
138

149
if [[ ${ENABLED_XPACK} != "true" || "x${ELASTICSEARCH_USERNAME}" = "x" || "x${ELASTICSEARCH_PASSWORD}" = "x" ]]; then
1510
auth=""
@@ -43,44 +38,6 @@ if [ $ENABLE_CONFIGURE_S3 ]; then
4338

4439
fi
4540

46-
#Insert default templates
47-
48-
API_PASS_Q=`echo "$API_PASS" | tr -d '"'`
49-
API_USER_Q=`echo "$API_USER" | tr -d '"'`
50-
API_PASSWORD=`echo -n $API_PASS_Q | base64`
51-
52-
echo "Setting API credentials into Wazuh APP"
53-
CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/_doc/1513629884013 ${auth})
54-
55-
if [ "x$CONFIG_CODE" != "x200" ]; then
56-
curl -s -XPOST $el_url/.wazuh/_doc/1513629884013 ${auth} -H 'Content-Type: application/json' -d'
57-
{
58-
"api_user": "'"$API_USER_Q"'",
59-
"api_password": "'"$API_PASSWORD"'",
60-
"url": "'"$wazuh_url"'",
61-
"api_port": "55000",
62-
"insecure": "true",
63-
"component": "API",
64-
"cluster_info": {
65-
"manager": "wazuh-manager",
66-
"cluster": "Disabled",
67-
"status": "disabled"
68-
},
69-
"extensions": {
70-
"oscap": true,
71-
"audit": true,
72-
"pci": true,
73-
"aws": true,
74-
"virustotal": true,
75-
"gdpr": true,
76-
"ciscat": true
77-
}
78-
}
79-
' > /dev/null
80-
else
81-
echo "Wazuh APP already configured"
82-
fi
83-
sleep 5
8441

8542
curl -XPUT "$el_url/_cluster/settings" ${auth} -H 'Content-Type: application/json' -d'
8643
{

kibana/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
2-
FROM docker.elastic.co/kibana/kibana:7.5.0
2+
FROM docker.elastic.co/kibana/kibana:7.5.1
33
USER kibana
4-
ARG ELASTIC_VERSION=7.5.0
5-
ARG WAZUH_VERSION=3.10.2
4+
ARG ELASTIC_VERSION=7.5.1
5+
ARG WAZUH_VERSION=3.11.0
66
ARG WAZUH_APP_VERSION="${WAZUH_VERSION}_${ELASTIC_VERSION}"
77

88
#ADD https://packages.wazuh.com/wazuhapp/wazuhapp-${WAZUH_APP_VERSION}.zip /usr/share/kibana/

kibana/config/wazuh_app_config.sh

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/bin/bash
22
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
33

4-
kibana_config_file="/usr/share/kibana/plugins/wazuh/config.yml"
4+
wazuh_url="${WAZUH_API_URL:-https://wazuh}"
5+
wazuh_port="${API_PORT:-55000}"
6+
api_user="${API_USER:-foo}"
7+
api_password="${API_PASS:-bar}"
8+
9+
kibana_config_file="/usr/share/kibana/plugins/wazuh/wazuh.yml"
510

611
declare -A CONFIG_MAP=(
712
[pattern]=$PATTERN
@@ -38,3 +43,23 @@ do
3843
sed -i 's/.*#'"$i"'.*/'"$i"': '"${CONFIG_MAP[$i]}"'/' $kibana_config_file
3944
fi
4045
done
46+
47+
# remove default API entry (new in 3.11.0_7.5.1)
48+
sed -ie '/- default:/,+4d' $kibana_config_file
49+
50+
CONFIG_CODE=$(curl -s -o /dev/null -w "%{http_code}" -XGET $el_url/.wazuh/_doc/1513629884013 ${auth})
51+
52+
grep -q 1513629884013 $kibana_config_file
53+
_config_exists=$?
54+
55+
if [[ "x$CONFIG_CODE" != "x200" && $_config_exists -ne 0 ]]; then
56+
cat << EOF >> $kibana_config_file
57+
- 1513629884013:
58+
url: $wazuh_url
59+
port: $wazuh_port
60+
user: $api_user
61+
password: $api_password
62+
EOF
63+
else
64+
echo "Wazuh APP already configured"
65+
fi

wazuh/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Wazuh Docker Copyright (C) 2019 Wazuh Inc. (License GPLv2)
22
FROM phusion/baseimage:latest
33

4-
ARG FILEBEAT_VERSION=7.5.0
4+
ARG FILEBEAT_VERSION=7.5.1
55

6-
ARG WAZUH_VERSION=3.10.2-1
6+
ARG WAZUH_VERSION=3.11.0-1
77

88
ENV API_USER="foo" \
99
API_PASS="bar"
1010

11-
ARG TEMPLATE_VERSION="v3.10.2"
11+
ARG TEMPLATE_VERSION="v3.11.0"
1212

1313
# Set repositories.
1414
RUN set -x && echo "deb https://packages.wazuh.com/3.x/apt/ stable main" | tee /etc/apt/sources.list.d/wazuh.list && \
@@ -77,4 +77,4 @@ ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/e
7777
RUN chmod go-w /etc/filebeat/wazuh-template.json
7878

7979
# Run all services
80-
ENTRYPOINT ["/entrypoint.sh"]
80+
ENTRYPOINT ["/entrypoint.sh"]

0 commit comments

Comments
 (0)