mirror of
https://github.com/wazuh/wazuh-docker.git
synced 2025-11-04 05:53:16 +00:00
Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9c1ab98f1 | ||
|
|
623021be27 | ||
|
|
095d878b04 | ||
|
|
53903126cf | ||
|
|
63ceab20b0 | ||
|
|
5fb369f9e8 | ||
|
|
6ddaecd7b5 | ||
|
|
c87580cfb5 | ||
|
|
e0cd80c105 | ||
|
|
796751aec9 | ||
|
|
15205ada03 | ||
|
|
c1bfc450ba | ||
|
|
b08fd3e384 | ||
|
|
fd08279f32 | ||
|
|
f42b30b71d | ||
|
|
7555453d55 | ||
|
|
22b77749fa | ||
|
|
28e21b0282 | ||
|
|
b83dcc087e | ||
|
|
19c23456ec | ||
|
|
f99721e98b | ||
|
|
38271d7797 | ||
|
|
c278f6a503 | ||
|
|
d6ba8c3661 | ||
|
|
1db718ffc8 | ||
|
|
cf137c6703 | ||
|
|
6f966cb01a | ||
|
|
8bc11c48d9 | ||
|
|
be1bc64e0f |
4
.env
4
.env
@@ -1,3 +1,3 @@
|
|||||||
WAZUH_VERSION=4.3.6
|
WAZUH_VERSION=4.3.11
|
||||||
WAZUH_IMAGE_VERSION=4.3.6
|
WAZUH_IMAGE_VERSION=4.3.11
|
||||||
WAZUH_TAG_REVISION=1
|
WAZUH_TAG_REVISION=1
|
||||||
|
|||||||
2
.github/.goss.yaml
vendored
2
.github/.goss.yaml
vendored
@@ -56,7 +56,7 @@ package:
|
|||||||
wazuh-manager:
|
wazuh-manager:
|
||||||
installed: true
|
installed: true
|
||||||
versions:
|
versions:
|
||||||
- 4.3.6-1
|
- 4.3.11-1
|
||||||
port:
|
port:
|
||||||
tcp:1514:
|
tcp:1514:
|
||||||
listening: true
|
listening: true
|
||||||
|
|||||||
27
CHANGELOG.md
27
CHANGELOG.md
@@ -1,6 +1,33 @@
|
|||||||
# 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 v4.3.11
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Update Wazuh to version [4.3.11](https://github.com/wazuh/wazuh/blob/v4.3.11/CHANGELOG.md#v4311)
|
||||||
|
|
||||||
|
## Wazuh Docker v4.3.10
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Update Wazuh to version [4.3.10](https://github.com/wazuh/wazuh/blob/v4.3.10/CHANGELOG.md#v4310)
|
||||||
|
|
||||||
|
|
||||||
|
## Wazuh Docker v4.3.9
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Update Wazuh to version [4.3.9](https://github.com/wazuh/wazuh/blob/v4.3.9/CHANGELOG.md#v439)
|
||||||
|
|
||||||
|
|
||||||
|
## Wazuh Docker v4.3.8
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Update Wazuh to version [4.3.8](https://github.com/wazuh/wazuh/blob/v4.3.8/CHANGELOG.md#v438)
|
||||||
|
|
||||||
|
## Wazuh Docker v4.3.7
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- Update Wazuh to version [4.3.7](https://github.com/wazuh/wazuh/blob/v4.3.7/CHANGELOG.md#v437)
|
||||||
|
|
||||||
## Wazuh Docker v4.3.6
|
## Wazuh Docker v4.3.6
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|||||||
15
README.md
15
README.md
@@ -36,13 +36,13 @@ Default values are included when available.
|
|||||||
|
|
||||||
### Wazuh
|
### Wazuh
|
||||||
```
|
```
|
||||||
API_USERNAME="wazuh" # Wazuh API username
|
API_USERNAME="wazuh-wui" # Wazuh API username
|
||||||
API_PASSWORD="wazuh" # Wazuh API password - Must comply with requirements
|
API_PASSWORD="MyS3cr37P450r.*-" # Wazuh API password - Must comply with requirements
|
||||||
# (8+ length, uppercase, lowercase, specials chars)
|
# (8+ length, uppercase, lowercase, specials chars)
|
||||||
|
|
||||||
INDEXER_URL=https://wazuh.indexer:9200 # Wazuh indexer URL
|
INDEXER_URL=https://wazuh.indexer:9200 # Wazuh indexer URL
|
||||||
INDEXER_USERNAME=admin # Wazuh indexer Username
|
INDEXER_USERNAME=admin # Wazuh indexer Username
|
||||||
INDEXER_PASSWORD=admin # Wazuh indexer Password
|
INDEXER_PASSWORD=SecretPassword # Wazuh indexer Password
|
||||||
FILEBEAT_SSL_VERIFICATION_MODE=full # Filebeat SSL Verification mode (full or none)
|
FILEBEAT_SSL_VERIFICATION_MODE=full # Filebeat SSL Verification mode (full or none)
|
||||||
SSL_CERTIFICATE_AUTHORITIES="" # Path of Filebeat SSL CA
|
SSL_CERTIFICATE_AUTHORITIES="" # Path of Filebeat SSL CA
|
||||||
SSL_CERTIFICATE="" # Path of Filebeat SSL Certificate
|
SSL_CERTIFICATE="" # Path of Filebeat SSL Certificate
|
||||||
@@ -78,10 +78,12 @@ API_SELECTOR=true Defines if the user is allowed to change the sel
|
|||||||
IP_SELECTOR=true # Defines if the user is allowed to change the selected index pattern directly from the Wazuh app top menu
|
IP_SELECTOR=true # Defines if the user is allowed to change the selected index pattern directly from the Wazuh app top menu
|
||||||
IP_IGNORE="[]" # List of index patterns to be ignored
|
IP_IGNORE="[]" # List of index patterns to be ignored
|
||||||
|
|
||||||
|
DASHBOARD_USERNAME=kibanaserver # Custom user saved in the dashboard keystore
|
||||||
|
DASHBOARD_PASSWORD=kibanaserver # Custom password saved in the dashboard keystore
|
||||||
WAZUH_MONITORING_ENABLED=true # Custom settings to enable/disable wazuh-monitoring indices
|
WAZUH_MONITORING_ENABLED=true # Custom settings to enable/disable wazuh-monitoring indices
|
||||||
WAZUH_MONITORING_FREQUENCY=900 # Custom setting to set the frequency for wazuh-monitoring indices cron task
|
WAZUH_MONITORING_FREQUENCY=900 # Custom setting to set the frequency for wazuh-monitoring indices cron task
|
||||||
WAZUH_MONITORING_SHARDS=2 # Configure wazuh-monitoring-* indices shards and replicas
|
WAZUH_MONITORING_SHARDS=2 # Configure wazuh-monitoring-* indices shards and replicas
|
||||||
WAZUH_MONITORING_REPLICAS=0 #
|
WAZUH_MONITORING_REPLICAS=0 ##
|
||||||
```
|
```
|
||||||
|
|
||||||
## Directory structure
|
## Directory structure
|
||||||
@@ -193,6 +195,11 @@ WAZUH_MONITORING_REPLICAS=0 #
|
|||||||
|
|
||||||
| Wazuh version | ODFE | XPACK |
|
| Wazuh version | ODFE | XPACK |
|
||||||
|---------------|---------|--------|
|
|---------------|---------|--------|
|
||||||
|
| v4.3.11 | | |
|
||||||
|
| v4.3.10 | | |
|
||||||
|
| v4.3.9 | | |
|
||||||
|
| v4.3.8 | | |
|
||||||
|
| v4.3.7 | | |
|
||||||
| v4.3.6 | | |
|
| v4.3.6 | | |
|
||||||
| v4.3.5 | | |
|
| v4.3.5 | | |
|
||||||
| v4.3.4 | | |
|
| v4.3.4 | | |
|
||||||
|
|||||||
4
VERSION
4
VERSION
@@ -1,2 +1,2 @@
|
|||||||
WAZUH-DOCKER_VERSION="4.3.6"
|
WAZUH-DOCKER_VERSION="4.3.11"
|
||||||
REVISION="40318"
|
REVISION="40324"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
WAZUH_IMAGE_VERSION=4.3.6
|
WAZUH_IMAGE_VERSION=4.3.11
|
||||||
WAZUH_VERSION=$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g')
|
WAZUH_VERSION=$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g')
|
||||||
WAZUH_TAG_REVISION=1
|
WAZUH_TAG_REVISION=1
|
||||||
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2- | sed -e 's/\.//g')
|
WAZUH_CURRENT_VERSION=$(curl --silent https://api.github.com/repos/wazuh/wazuh/releases/latest | grep '\"tag_name\":' | sed -E 's/.*\"([^\"]+)\".*/\1/' | cut -c 2- | sed -e 's/\.//g')
|
||||||
|
|||||||
@@ -113,5 +113,9 @@ cp -pr /wazuh-certificates/root-ca.pem ${TARGET_DIR}${CONFIG_DIR}/certs/root-ca.
|
|||||||
cp -pr /wazuh-certificates/admin.pem ${TARGET_DIR}${CONFIG_DIR}/certs/admin.pem
|
cp -pr /wazuh-certificates/admin.pem ${TARGET_DIR}${CONFIG_DIR}/certs/admin.pem
|
||||||
cp -pr /wazuh-certificates/admin-key.pem ${TARGET_DIR}${CONFIG_DIR}/certs/admin-key.pem
|
cp -pr /wazuh-certificates/admin-key.pem ${TARGET_DIR}${CONFIG_DIR}/certs/admin-key.pem
|
||||||
|
|
||||||
|
# Delete xms and xmx parameters in jvm.options
|
||||||
|
sed '/-Xms/d' -i ${TARGET_DIR}${CONFIG_DIR}/jvm.options
|
||||||
|
sed '/-Xmx/d' -i ${TARGET_DIR}${CONFIG_DIR}/jvm.options
|
||||||
|
|
||||||
chmod -R 500 ${TARGET_DIR}${CONFIG_DIR}/certs
|
chmod -R 500 ${TARGET_DIR}${CONFIG_DIR}/certs
|
||||||
chmod -R 400 ${TARGET_DIR}${CONFIG_DIR}/certs/*
|
chmod -R 400 ${TARGET_DIR}${CONFIG_DIR}/certs/*
|
||||||
@@ -179,6 +179,15 @@ set_rids_owner() {
|
|||||||
chown -R wazuh:wazuh /var/ossec/queue/rids
|
chown -R wazuh:wazuh /var/ossec/queue/rids
|
||||||
}
|
}
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Change any ossec user/group to wazuh user/group
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
set_correct_permOwner() {
|
||||||
|
find / -group 997 -exec chown :101 {} +;
|
||||||
|
find / -user 999 -exec chown 101 {} +;
|
||||||
|
}
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Main function
|
# Main function
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@@ -190,6 +199,9 @@ main() {
|
|||||||
# Restore files stored in permanent data that are not permanent (i.e. internal_options.conf)
|
# Restore files stored in permanent data that are not permanent (i.e. internal_options.conf)
|
||||||
apply_exclusion_data
|
apply_exclusion_data
|
||||||
|
|
||||||
|
# Apply correct permission and ownership
|
||||||
|
set_correct_permOwner
|
||||||
|
|
||||||
# Rename files stored in permanent data (i.e. queue/ossec)
|
# Rename files stored in permanent data (i.e. queue/ossec)
|
||||||
move_data_files
|
move_data_files
|
||||||
|
|
||||||
|
|||||||
@@ -12,32 +12,38 @@ fi
|
|||||||
|
|
||||||
if [ "$INDEXER_USERNAME" != "" ]; then
|
if [ "$INDEXER_USERNAME" != "" ]; then
|
||||||
>&2 echo "Configuring username."
|
>&2 echo "Configuring username."
|
||||||
sed -i "s|#username:.*|username: '$INDEXER_USERNAME'|g" /etc/filebeat/filebeat.yml
|
sed -i "s|#username:.*|username:|g" /etc/filebeat/filebeat.yml
|
||||||
|
sed -i "s|username:.*|username: '$INDEXER_USERNAME'|g" /etc/filebeat/filebeat.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$INDEXER_PASSWORD" != "" ]; then
|
if [ "$INDEXER_PASSWORD" != "" ]; then
|
||||||
>&2 echo "Configuring password."
|
>&2 echo "Configuring password."
|
||||||
sed -i "s|#password:.*|password: '$INDEXER_PASSWORD'|g" /etc/filebeat/filebeat.yml
|
sed -i "s|#password:.*|password:|g" /etc/filebeat/filebeat.yml
|
||||||
|
sed -i "s|password:.*|password: '$INDEXER_PASSWORD'|g" /etc/filebeat/filebeat.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$FILEBEAT_SSL_VERIFICATION_MODE" != "" ]; then
|
if [ "$FILEBEAT_SSL_VERIFICATION_MODE" != "" ]; then
|
||||||
>&2 echo "Configuring SSL verification mode."
|
>&2 echo "Configuring SSL verification mode."
|
||||||
sed -i "s|#ssl.verification_mode:.*|ssl.verification_mode: $FILEBEAT_SSL_VERIFICATION_MODE|g" /etc/filebeat/filebeat.yml
|
sed -i "s|#ssl.verification_mode:.*|ssl.verification_mode:|g" /etc/filebeat/filebeat.yml
|
||||||
|
sed -i "s|ssl.verification_mode:.*|ssl.verification_mode: '$FILEBEAT_SSL_VERIFICATION_MODE'|g" /etc/filebeat/filebeat.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SSL_CERTIFICATE_AUTHORITIES" != "" ]; then
|
if [ "$SSL_CERTIFICATE_AUTHORITIES" != "" ]; then
|
||||||
>&2 echo "Configuring Certificate Authorities."
|
>&2 echo "Configuring Certificate Authorities."
|
||||||
sed -i "s|#ssl.certificate_authorities:.*|ssl.certificate_authorities: ['$SSL_CERTIFICATE_AUTHORITIES']|g" /etc/filebeat/filebeat.yml
|
sed -i "s|#ssl.certificate_authorities:.*|ssl.certificate_authorities:|g" /etc/filebeat/filebeat.yml
|
||||||
|
sed -i "s|ssl.certificate_authorities:.*|ssl.certificate_authorities: ['$SSL_CERTIFICATE_AUTHORITIES']|g" /etc/filebeat/filebeat.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SSL_CERTIFICATE" != "" ]; then
|
if [ "$SSL_CERTIFICATE" != "" ]; then
|
||||||
>&2 echo "Configuring SSL Certificate."
|
>&2 echo "Configuring SSL Certificate."
|
||||||
sed -i "s|#ssl.certificate:.*|ssl.certificate: '$SSL_CERTIFICATE'|g" /etc/filebeat/filebeat.yml
|
sed -i "s|#ssl.certificate:.*|ssl.certificate:|g" /etc/filebeat/filebeat.yml
|
||||||
|
sed -i "s|ssl.certificate:.*|ssl.certificate: '$SSL_CERTIFICATE'|g" /etc/filebeat/filebeat.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$SSL_KEY" != "" ]; then
|
if [ "$SSL_KEY" != "" ]; then
|
||||||
>&2 echo "Configuring SSL Key."
|
>&2 echo "Configuring SSL Key."
|
||||||
sed -i "s|#ssl.key:.*|ssl.key: '$SSL_KEY'|g" /etc/filebeat/filebeat.yml
|
sed -i "s|#ssl.key:.*|ssl.key:|g" /etc/filebeat/filebeat.yml
|
||||||
|
sed -i "s|ssl.key:.*|ssl.key: '$SSL_KEY'|g" /etc/filebeat/filebeat.yml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ hosts:
|
|||||||
url: "https://wazuh.master"
|
url: "https://wazuh.master"
|
||||||
port: 55000
|
port: 55000
|
||||||
username: wazuh-wui
|
username: wazuh-wui
|
||||||
password: MyS3cr37P450r.*-
|
password: "MyS3cr37P450r.*-"
|
||||||
run_as: false
|
run_as: false
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version: '3.7'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
wazuh.master:
|
wazuh.master:
|
||||||
image: wazuh/wazuh-manager:4.3.6
|
image: wazuh/wazuh-manager:4.3.11
|
||||||
hostname: wazuh.master
|
hostname: wazuh.master
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -38,7 +38,7 @@ services:
|
|||||||
- ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
- ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
||||||
|
|
||||||
wazuh.worker:
|
wazuh.worker:
|
||||||
image: wazuh/wazuh-manager:4.3.6
|
image: wazuh/wazuh-manager:4.3.11
|
||||||
hostname: wazuh.worker
|
hostname: wazuh.worker
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
@@ -67,7 +67,7 @@ services:
|
|||||||
- ./config/wazuh_cluster/wazuh_worker.conf:/wazuh-config-mount/etc/ossec.conf
|
- ./config/wazuh_cluster/wazuh_worker.conf:/wazuh-config-mount/etc/ossec.conf
|
||||||
|
|
||||||
wazuh1.indexer:
|
wazuh1.indexer:
|
||||||
image: wazuh/wazuh-indexer:4.3.6
|
image: wazuh/wazuh-indexer:4.3.11
|
||||||
hostname: wazuh1.indexer
|
hostname: wazuh1.indexer
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -93,7 +93,7 @@ services:
|
|||||||
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
||||||
|
|
||||||
wazuh2.indexer:
|
wazuh2.indexer:
|
||||||
image: wazuh/wazuh-indexer:4.3.6
|
image: wazuh/wazuh-indexer:4.3.11
|
||||||
hostname: wazuh2.indexer
|
hostname: wazuh2.indexer
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
@@ -115,7 +115,7 @@ services:
|
|||||||
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
||||||
|
|
||||||
wazuh3.indexer:
|
wazuh3.indexer:
|
||||||
image: wazuh/wazuh-indexer:4.3.6
|
image: wazuh/wazuh-indexer:4.3.11
|
||||||
hostname: wazuh3.indexer
|
hostname: wazuh3.indexer
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
@@ -137,7 +137,7 @@ services:
|
|||||||
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
||||||
|
|
||||||
wazuh.dashboard:
|
wazuh.dashboard:
|
||||||
image: wazuh/wazuh-dashboard:4.3.6
|
image: wazuh/wazuh-dashboard:4.3.11
|
||||||
hostname: wazuh.dashboard
|
hostname: wazuh.dashboard
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ hosts:
|
|||||||
url: "https://wazuh.manager"
|
url: "https://wazuh.manager"
|
||||||
port: 55000
|
port: 55000
|
||||||
username: wazuh-wui
|
username: wazuh-wui
|
||||||
password: MyS3cr37P450r.*-
|
password: "MyS3cr37P450r.*-"
|
||||||
run_as: false
|
run_as: false
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ version: '3.7'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
wazuh.manager:
|
wazuh.manager:
|
||||||
image: wazuh/wazuh-manager:4.3.6
|
image: wazuh/wazuh-manager:4.3.11
|
||||||
hostname: wazuh.manager
|
hostname: wazuh.manager
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -39,7 +39,7 @@ services:
|
|||||||
- ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
- ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf
|
||||||
|
|
||||||
wazuh.indexer:
|
wazuh.indexer:
|
||||||
image: wazuh/wazuh-indexer:4.3.6
|
image: wazuh/wazuh-indexer:4.3.11
|
||||||
hostname: wazuh.indexer
|
hostname: wazuh.indexer
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
@@ -64,7 +64,7 @@ services:
|
|||||||
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
- ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml
|
||||||
|
|
||||||
wazuh.dashboard:
|
wazuh.dashboard:
|
||||||
image: wazuh/wazuh-dashboard:4.3.6
|
image: wazuh/wazuh-dashboard:4.3.11
|
||||||
hostname: wazuh.dashboard
|
hostname: wazuh.dashboard
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user