mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-10-31 03:53:32 +00:00 
			
		
		
		
	Compare commits
	
		
			17 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | 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_IMAGE_VERSION=4.3.6 | ||||
| WAZUH_VERSION=4.3.9 | ||||
| WAZUH_IMAGE_VERSION=4.3.9 | ||||
| WAZUH_TAG_REVISION=1 | ||||
|   | ||||
							
								
								
									
										2
									
								
								.github/.goss.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/.goss.yaml
									
									
									
									
										vendored
									
									
								
							| @@ -56,7 +56,7 @@ package: | ||||
|   wazuh-manager: | ||||
|     installed: true | ||||
|     versions: | ||||
|     - 4.3.6-1 | ||||
|     - 4.3.9-1 | ||||
| port: | ||||
|   tcp:1514: | ||||
|     listening: true | ||||
|   | ||||
							
								
								
									
										16
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										16
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,6 +1,22 @@ | ||||
| # Change Log | ||||
| All notable changes to this project will be documented in this file. | ||||
|  | ||||
| ## 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 | ||||
| ### Added | ||||
|  | ||||
|   | ||||
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							| @@ -36,8 +36,8 @@ Default values are included when available. | ||||
|  | ||||
| ### Wazuh | ||||
| ``` | ||||
| API_USERNAME="wazuh"                                # Wazuh API username | ||||
| API_PASSWORD="wazuh"                                # Wazuh API password - Must comply with requirements | ||||
| API_USERNAME="wazuh-wui"                            # Wazuh API username | ||||
| API_PASSWORD="MyS3cr37P450r.*-"                     # Wazuh API password - Must comply with requirements | ||||
|                                                     # (8+ length, uppercase, lowercase, specials chars) | ||||
|  | ||||
| INDEXER_URL=https://wazuh.indexer:9200              # Wazuh indexer URL | ||||
| @@ -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_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_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_REPLICAS=0         # | ||||
| WAZUH_MONITORING_REPLICAS=0         ## | ||||
| ``` | ||||
|  | ||||
| ## Directory structure | ||||
| @@ -193,6 +195,9 @@ WAZUH_MONITORING_REPLICAS=0         # | ||||
|  | ||||
| | Wazuh version | ODFE    | XPACK  | | ||||
| |---------------|---------|--------| | ||||
| | v4.3.9        |         |        | | ||||
| | v4.3.8        |         |        | | ||||
| | v4.3.7        |         |        | | ||||
| | v4.3.6        |         |        | | ||||
| | v4.3.5        |         |        | | ||||
| | v4.3.4        |         |        | | ||||
|   | ||||
							
								
								
									
										4
									
								
								VERSION
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								VERSION
									
									
									
									
									
								
							| @@ -1,2 +1,2 @@ | ||||
| WAZUH-DOCKER_VERSION="4.3.6" | ||||
| REVISION="40318" | ||||
| WAZUH-DOCKER_VERSION="4.3.9" | ||||
| REVISION="40322" | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| WAZUH_IMAGE_VERSION=4.3.6 | ||||
| WAZUH_IMAGE_VERSION=4.3.9 | ||||
| WAZUH_VERSION=$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g') | ||||
| 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') | ||||
|   | ||||
| @@ -179,6 +179,15 @@ set_rids_owner() { | ||||
|   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 | ||||
| ############################################################################## | ||||
| @@ -190,6 +199,9 @@ main() { | ||||
|   # Restore files stored in permanent data that are not permanent  (i.e. internal_options.conf) | ||||
|   apply_exclusion_data | ||||
|    | ||||
|   # Apply correct permission and ownership | ||||
|   set_correct_permOwner | ||||
|  | ||||
|   # Rename files stored in permanent data (i.e. queue/ossec) | ||||
|   move_data_files | ||||
|  | ||||
|   | ||||
| @@ -12,32 +12,38 @@ fi | ||||
|  | ||||
| if [ "$INDEXER_USERNAME" != "" ]; then | ||||
|   >&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 | ||||
|  | ||||
| if [ "$INDEXER_PASSWORD" != "" ]; then | ||||
|   >&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 | ||||
|  | ||||
| if [ "$FILEBEAT_SSL_VERIFICATION_MODE" != "" ]; then | ||||
|   >&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 | ||||
|  | ||||
| if [ "$SSL_CERTIFICATE_AUTHORITIES" != "" ]; then | ||||
|   >&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 | ||||
|  | ||||
| if [ "$SSL_CERTIFICATE" != "" ]; then | ||||
|   >&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 | ||||
|  | ||||
| if [ "$SSL_KEY" != "" ]; then | ||||
|   >&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 | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -3,5 +3,5 @@ hosts: | ||||
|       url: "https://wazuh.master" | ||||
|       port: 55000 | ||||
|       username: wazuh-wui | ||||
|       password: MyS3cr37P450r.*- | ||||
|       password: "MyS3cr37P450r.*-" | ||||
|       run_as: false | ||||
|   | ||||
| @@ -3,7 +3,7 @@ version: '3.7' | ||||
|  | ||||
| services: | ||||
|   wazuh.master: | ||||
|     image: wazuh/wazuh-manager:4.3.6 | ||||
|     image: wazuh/wazuh-manager:4.3.9 | ||||
|     hostname: wazuh.master | ||||
|     restart: always | ||||
|     ports: | ||||
| @@ -38,7 +38,7 @@ services: | ||||
|       - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf | ||||
|  | ||||
|   wazuh.worker: | ||||
|     image: wazuh/wazuh-manager:4.3.6 | ||||
|     image: wazuh/wazuh-manager:4.3.9 | ||||
|     hostname: wazuh.worker | ||||
|     restart: always | ||||
|     environment: | ||||
| @@ -67,7 +67,7 @@ services: | ||||
|       - ./config/wazuh_cluster/wazuh_worker.conf:/wazuh-config-mount/etc/ossec.conf | ||||
|  | ||||
|   wazuh1.indexer: | ||||
|     image: wazuh/wazuh-indexer:4.3.6 | ||||
|     image: wazuh/wazuh-indexer:4.3.9 | ||||
|     hostname: wazuh1.indexer | ||||
|     restart: always | ||||
|     ports: | ||||
| @@ -93,7 +93,7 @@ services: | ||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml | ||||
|  | ||||
|   wazuh2.indexer: | ||||
|     image: wazuh/wazuh-indexer:4.3.6 | ||||
|     image: wazuh/wazuh-indexer:4.3.9 | ||||
|     hostname: wazuh2.indexer | ||||
|     restart: always | ||||
|     environment: | ||||
| @@ -115,7 +115,7 @@ services: | ||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml | ||||
|  | ||||
|   wazuh3.indexer: | ||||
|     image: wazuh/wazuh-indexer:4.3.6 | ||||
|     image: wazuh/wazuh-indexer:4.3.9 | ||||
|     hostname: wazuh3.indexer | ||||
|     restart: always | ||||
|     environment: | ||||
| @@ -137,7 +137,7 @@ services: | ||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml | ||||
|  | ||||
|   wazuh.dashboard: | ||||
|     image: wazuh/wazuh-dashboard:4.3.6 | ||||
|     image: wazuh/wazuh-dashboard:4.3.9 | ||||
|     hostname: wazuh.dashboard | ||||
|     restart: always | ||||
|     ports: | ||||
|   | ||||
| @@ -3,5 +3,5 @@ hosts: | ||||
|       url: "https://wazuh.manager" | ||||
|       port: 55000 | ||||
|       username: wazuh-wui | ||||
|       password: MyS3cr37P450r.*- | ||||
|       password: "MyS3cr37P450r.*-" | ||||
|       run_as: false | ||||
|   | ||||
| @@ -3,7 +3,7 @@ version: '3.7' | ||||
|  | ||||
| services: | ||||
|   wazuh.manager: | ||||
|     image: wazuh/wazuh-manager:4.3.6 | ||||
|     image: wazuh/wazuh-manager:4.3.9 | ||||
|     hostname: wazuh.manager | ||||
|     restart: always | ||||
|     ports: | ||||
| @@ -39,7 +39,7 @@ services: | ||||
|       - ./config/wazuh_cluster/wazuh_manager.conf:/wazuh-config-mount/etc/ossec.conf | ||||
|  | ||||
|   wazuh.indexer: | ||||
|     image: wazuh/wazuh-indexer:4.3.6 | ||||
|     image: wazuh/wazuh-indexer:4.3.9 | ||||
|     hostname: wazuh.indexer | ||||
|     restart: always | ||||
|     ports: | ||||
| @@ -64,7 +64,7 @@ services: | ||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/plugins/opensearch-security/securityconfig/internal_users.yml | ||||
|  | ||||
|   wazuh.dashboard: | ||||
|     image: wazuh/wazuh-dashboard:4.3.6 | ||||
|     image: wazuh/wazuh-dashboard:4.3.9 | ||||
|     hostname: wazuh.dashboard | ||||
|     restart: always | ||||
|     ports: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user