mirror of
				https://github.com/wazuh/wazuh-docker.git
				synced 2025-10-31 03:53:32 +00:00 
			
		
		
		
	Compare commits
	
		
			174 Commits
		
	
	
		
			v4.5.3-rc1
			...
			v4.7.0
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|  | dcf48426c1 | ||
|  | f8eb0b5f1d | ||
|  | 2df37520a7 | ||
|  | 423fc248ef | ||
|  | 6c50089d53 | ||
|  | 56ccf81185 | ||
|  | 20a3f170d8 | ||
|  | 25e4c24c87 | ||
|  | 2ccd5dc431 | ||
|  | 504e1f2017 | ||
|  | 15413250e8 | ||
|  | fa956c53e7 | ||
|  | d352019385 | ||
|  | 92b3395abc | ||
|  | b1d10f879c | ||
|  | 98e96a5260 | ||
|  | 84e57b9c9a | ||
|  | e13cfcf454 | ||
|  | e48255641f | ||
|  | 0c7d298eea | ||
|  | 05ef9b899b | ||
|  | c46b1c0d82 | ||
|  | 3a3218f0d4 | ||
|  | dd86d1b707 | ||
|  | 60563720f3 | ||
|  | 0cd98767c8 | ||
|  | 8aad8651d7 | ||
|  | 3c073ab5ea | ||
|  | b8ff013b36 | ||
|  | 5106715b0c | ||
|  | 523a28b20d | ||
|  | 0f1cc4b955 | ||
|  | aee83a1a2d | ||
|  | 0555e4956b | ||
|  | dee2c3c8dc | ||
|  | c18a1eca56 | ||
|  | 14dcc8b6a6 | ||
|  | 89e0fc9604 | ||
|  | 64f083631d | ||
|  | fa2f2b2a31 | ||
|  | 8d1c239a3c | ||
|  | ded91b2f0a | ||
|  | d7e051af19 | ||
|  | b4db7f16cc | ||
|  | 61bfe58491 | ||
|  | 9d3701fa60 | ||
|  | c550c1a852 | ||
|  | 1b41068618 | ||
|  | 8ac3ea1e8a | ||
|  | 893796c4a2 | ||
|  | d6a72c6fb1 | ||
|  | 7172c818c7 | ||
|  | a2ee29bfd3 | ||
|  | e205c87d37 | ||
|  | 545ef6851b | ||
|  | 36c06dc4c8 | ||
|  | 3fd3f42389 | ||
|  | b22fa235c7 | ||
|  | c3c8ea3d02 | ||
|  | 905b4de859 | ||
|  | 23d34f6a89 | ||
|  | 8fa20abbbd | ||
|  | d9b053caf4 | ||
|  | d5dc67e9c3 | ||
|  | 93c53a712d | ||
|  | 5f3a0481ba | ||
|  | 958e466682 | ||
|  | 7d5b1c4f85 | ||
|  | 6407325761 | ||
|  | 7312f86235 | ||
|  | d6b73cb3dc | ||
|  | 62627e32fd | ||
|  | 149df5e492 | ||
|  | 8cc5c8b0bb | ||
|  | 536dd51aa7 | ||
|  | 5769159cf9 | ||
|  | 0c6077c3e0 | ||
|  | de7754364d | ||
|  | 73ada94ed6 | ||
|  | 63817dfd55 | ||
|  | 17029c5510 | ||
|  | 2234517218 | ||
|  | 637110c278 | ||
|  | b18c068650 | ||
|  | 9a871dbbcb | ||
|  | b377a0f6eb | ||
|  | 44e9bebed0 | ||
|  | 2de4a28098 | ||
|  | 760fc8ccbf | ||
|  | 44303d3701 | ||
|  | 17ed766228 | ||
|  | 6c91bac96d | ||
|  | 1dec665a97 | ||
|  | 757e5dbf05 | ||
|  | 7d3bea67f7 | ||
|  | 3953986652 | ||
|  | f2dab81387 | ||
|  | a9d505b316 | ||
|  | a0899a8358 | ||
|  | b27d991f0c | ||
|  | 4d0aa57ed2 | ||
|  | f4f99f17b7 | ||
|  | 3c9b5ac717 | ||
|  | 8e3b8aada8 | ||
|  | 6a98b87b8e | ||
|  | 56dbf052c9 | ||
|  | 7abaea9b4c | ||
|  | 303b64c7ae | ||
|  | 1238820b6c | ||
|  | f168bd62fe | ||
|  | 2058734154 | ||
|  | 4e34f1f7b7 | ||
|  | efc8ab88df | ||
|  | f71616939e | ||
|  | 9a9fac6243 | ||
|  | 11d15670f4 | ||
|  | 7427eff847 | ||
|  | 5abe95a0f1 | ||
|  | fed4302744 | ||
|  | 750aa90b91 | ||
|  | aec90c2f3d | ||
|  | 84a40b9eea | ||
|  | 57c63bc60e | ||
|  | dd46f8a2c1 | ||
|  | 76a38f68b5 | ||
|  | 4caf18f12c | ||
|  | ea11d66f42 | ||
|  | 02a75a7678 | ||
|  | 7e0311e99a | ||
|  | e939010507 | ||
|  | b7bce45e82 | ||
|  | 697b7538cc | ||
|  | 2cbf64dafa | ||
|  | 638d548d74 | ||
|  | d6f19cebf5 | ||
|  | 944c6aa4c8 | ||
|  | 5e3676e125 | ||
|  | fd9c09a7e5 | ||
|  | 395b769b6a | ||
|  | ee46520701 | ||
|  | b838023509 | ||
|  | be9019a065 | ||
|  | 42193f4cfa | ||
|  | 6e7b1c2899 | ||
|  | 06a1efc094 | ||
|  | e9764b0a6a | ||
|  | 6398b66e10 | ||
|  | 70938d52d2 | ||
|  | d5932ac4a1 | ||
|  | 4b621466a0 | ||
|  | e24d17f730 | ||
|  | b33aea9ef8 | ||
|  | 3525003ef7 | ||
|  | 00a94ce5b0 | ||
|  | e826236a28 | ||
|  | 137989ddd1 | ||
|  | 0d76a85ded | ||
|  | e95455a12b | ||
|  | 887293d474 | ||
|  | ae20f302c0 | ||
|  | 08314f9e2e | ||
|  | c6f1f31d57 | ||
|  | 312466704d | ||
|  | d00fc0ccf6 | ||
|  | 42ea26b3bd | ||
|  | fe75f8fb4e | ||
|  | 8b1ed497ab | ||
|  | 195b34c259 | ||
|  | 08c9b95455 | ||
|  | 095d878b04 | ||
|  | 53903126cf | ||
|  | 63ceab20b0 | ||
|  | 5fb369f9e8 | ||
|  | 6ddaecd7b5 | 
							
								
								
									
										4
									
								
								.env
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								.env
									
									
									
									
									
								
							| @@ -1,3 +1,3 @@ | |||||||
| WAZUH_VERSION=4.5.3 | WAZUH_VERSION=4.7.0 | ||||||
| WAZUH_IMAGE_VERSION=4.5.3 | WAZUH_IMAGE_VERSION=4.7.0 | ||||||
| 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.5.3-1 |     - 4.7.0-1 | ||||||
| port: | port: | ||||||
|   tcp:1514: |   tcp:1514: | ||||||
|     listening: true |     listening: true | ||||||
|   | |||||||
							
								
								
									
										71
									
								
								.github/workflows/trivy-dashboard-4-4.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								.github/workflows/trivy-dashboard-4-4.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | |||||||
|  | # This workflow uses actions that are not certified by GitHub. | ||||||
|  | # They are provided by a third-party and are governed by | ||||||
|  | # separate terms of service, privacy policy, and support | ||||||
|  | # documentation. | ||||||
|  |  | ||||||
|  | name: Trivy scan Wazuh dashboard | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   release: | ||||||
|  |     types: | ||||||
|  |     - published | ||||||
|  |   pull_request: | ||||||
|  |     branches: | ||||||
|  |       - master | ||||||
|  |       - stable | ||||||
|  |   schedule: | ||||||
|  |     - cron: '34 2 * * 1' | ||||||
|  |   workflow_dispatch: | ||||||
|  |  | ||||||
|  | permissions: | ||||||
|  |   contents: read | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     permissions: | ||||||
|  |       contents: read # for actions/checkout to fetch code | ||||||
|  |       security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||||||
|  |  | ||||||
|  |     name: Build images and upload Trivy results | ||||||
|  |     runs-on: "ubuntu-latest" | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout code | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: { ref: 4.4 } | ||||||
|  |  | ||||||
|  |       - name: Installing dependencies | ||||||
|  |         run: | | ||||||
|  |           sudo apt-get update | ||||||
|  |           sudo apt-get install -y jq | ||||||
|  |       - name: Build Wazuh images | ||||||
|  |         run: build-docker-images/build-images.sh | ||||||
|  |  | ||||||
|  |       - name: Create enviroment variables | ||||||
|  |         run: | | ||||||
|  |           cat .env > $GITHUB_ENV | ||||||
|  |           echo "GITHUB_REF_NAME="${GITHUB_REF_NAME%/*} >> $GITHUB_ENV | ||||||
|  |  | ||||||
|  |       - name: Run Trivy vulnerability scanner for Wazuh dashboard | ||||||
|  |         uses: aquasecurity/trivy-action@2a2157eb22c08c9a1fac99263430307b8d1bc7a2 | ||||||
|  |         with: | ||||||
|  |           image-ref: 'wazuh/wazuh-dashboard:${{env.WAZUH_IMAGE_VERSION}}' | ||||||
|  |           format: 'template' | ||||||
|  |           template: '@/contrib/sarif.tpl' | ||||||
|  |           output: 'trivy-results-dashboard.sarif' | ||||||
|  |           severity: 'LOW,MEDIUM,CRITICAL,HIGH' | ||||||
|  |  | ||||||
|  |       - name: Upload Trivy scan results to GitHub Security tab | ||||||
|  |         uses: github/codeql-action/upload-sarif@v2 | ||||||
|  |         with: | ||||||
|  |           sarif_file: 'trivy-results-dashboard.sarif' | ||||||
|  |  | ||||||
|  |       - name: Slack notification | ||||||
|  |         uses: rtCamp/action-slack-notify@v2 | ||||||
|  |         env: | ||||||
|  |           SLACK_CHANNEL: cicd-monitoring | ||||||
|  |           SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' | ||||||
|  |           #SLACK_ICON: https://github.com/rtCamp.png?size=48 | ||||||
|  |           SLACK_MESSAGE: "Check the results: https://github.com/wazuh/wazuh-docker/security/code-scanning?query=is%3Aopen+branch%3A${{ env.GITHUB_REF_NAME }}" | ||||||
|  |           SLACK_TITLE: Wazuh docker Trivy vulnerability scan finished. | ||||||
|  |           SLACK_USERNAME: github_actions | ||||||
|  |           SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||||||
							
								
								
									
										71
									
								
								.github/workflows/trivy-indexer-4-4.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								.github/workflows/trivy-indexer-4-4.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | |||||||
|  | # This workflow uses actions that are not certified by GitHub. | ||||||
|  | # They are provided by a third-party and are governed by | ||||||
|  | # separate terms of service, privacy policy, and support | ||||||
|  | # documentation. | ||||||
|  |  | ||||||
|  | name: Trivy scan Wazuh indexer | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   release: | ||||||
|  |     types: | ||||||
|  |     - published | ||||||
|  |   pull_request: | ||||||
|  |     branches: | ||||||
|  |       - master | ||||||
|  |       - stable | ||||||
|  |   schedule: | ||||||
|  |     - cron: '34 2 * * 1' | ||||||
|  |   workflow_dispatch: | ||||||
|  |  | ||||||
|  | permissions: | ||||||
|  |   contents: read | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     permissions: | ||||||
|  |       contents: read # for actions/checkout to fetch code | ||||||
|  |       security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||||||
|  |  | ||||||
|  |     name: Build images and upload Trivy results | ||||||
|  |     runs-on: "ubuntu-latest" | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout code | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: { ref: 4.4 } | ||||||
|  |  | ||||||
|  |       - name: Installing dependencies | ||||||
|  |         run: | | ||||||
|  |           sudo apt-get update | ||||||
|  |           sudo apt-get install -y jq | ||||||
|  |       - name: Build Wazuh images | ||||||
|  |         run: build-docker-images/build-images.sh | ||||||
|  |  | ||||||
|  |       - name: Create enviroment variables | ||||||
|  |         run: | | ||||||
|  |           cat .env > $GITHUB_ENV | ||||||
|  |           echo "GITHUB_REF_NAME="${GITHUB_REF_NAME%/*} >> $GITHUB_ENV | ||||||
|  |  | ||||||
|  |       - name: Run Trivy vulnerability scanner for Wazuh indexer | ||||||
|  |         uses: aquasecurity/trivy-action@2a2157eb22c08c9a1fac99263430307b8d1bc7a2 | ||||||
|  |         with: | ||||||
|  |           image-ref: 'wazuh/wazuh-indexer:${{env.WAZUH_IMAGE_VERSION}}' | ||||||
|  |           format: 'template' | ||||||
|  |           template: '@/contrib/sarif.tpl' | ||||||
|  |           output: 'trivy-results-indexer.sarif' | ||||||
|  |           severity: 'LOW,MEDIUM,CRITICAL,HIGH' | ||||||
|  |  | ||||||
|  |       - name: Upload Trivy scan results to GitHub Security tab | ||||||
|  |         uses: github/codeql-action/upload-sarif@v2 | ||||||
|  |         with: | ||||||
|  |           sarif_file: 'trivy-results-indexer.sarif' | ||||||
|  |  | ||||||
|  |       - name: Slack notification | ||||||
|  |         uses: rtCamp/action-slack-notify@v2 | ||||||
|  |         env: | ||||||
|  |           SLACK_CHANNEL: cicd-monitoring | ||||||
|  |           SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' | ||||||
|  |           #SLACK_ICON: https://github.com/rtCamp.png?size=48 | ||||||
|  |           SLACK_MESSAGE: "Check the results: https://github.com/wazuh/wazuh-docker/security/code-scanning?query=is%3Aopen+branch%3A${{ env.GITHUB_REF_NAME }}" | ||||||
|  |           SLACK_TITLE: Wazuh docker Trivy vulnerability scan finished. | ||||||
|  |           SLACK_USERNAME: github_actions | ||||||
|  |           SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||||||
							
								
								
									
										71
									
								
								.github/workflows/trivy-manager-4-4.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								.github/workflows/trivy-manager-4-4.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,71 @@ | |||||||
|  | # This workflow uses actions that are not certified by GitHub. | ||||||
|  | # They are provided by a third-party and are governed by | ||||||
|  | # separate terms of service, privacy policy, and support | ||||||
|  | # documentation. | ||||||
|  |  | ||||||
|  | name: Trivy scan Wazuh manager | ||||||
|  |  | ||||||
|  | on: | ||||||
|  |   release: | ||||||
|  |     types: | ||||||
|  |     - published | ||||||
|  |   pull_request: | ||||||
|  |     branches: | ||||||
|  |       - master | ||||||
|  |       - stable | ||||||
|  |   schedule: | ||||||
|  |     - cron: '34 2 * * 1' | ||||||
|  |   workflow_dispatch: | ||||||
|  |  | ||||||
|  | permissions: | ||||||
|  |   contents: read | ||||||
|  |  | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     permissions: | ||||||
|  |       contents: read # for actions/checkout to fetch code | ||||||
|  |       security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||||||
|  |  | ||||||
|  |     name: Build images and upload Trivy results | ||||||
|  |     runs-on: "ubuntu-latest" | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout code | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: { ref: 4.4 } | ||||||
|  |  | ||||||
|  |       - name: Installing dependencies | ||||||
|  |         run: | | ||||||
|  |           sudo apt-get update | ||||||
|  |           sudo apt-get install -y jq | ||||||
|  |       - name: Build Wazuh images | ||||||
|  |         run: build-docker-images/build-images.sh | ||||||
|  |  | ||||||
|  |       - name: Create enviroment variables | ||||||
|  |         run: | | ||||||
|  |           cat .env > $GITHUB_ENV | ||||||
|  |           echo "GITHUB_REF_NAME="${GITHUB_REF_NAME%/*} >> $GITHUB_ENV | ||||||
|  |  | ||||||
|  |       - name: Run Trivy vulnerability scanner for Wazuh manager | ||||||
|  |         uses: aquasecurity/trivy-action@2a2157eb22c08c9a1fac99263430307b8d1bc7a2 | ||||||
|  |         with: | ||||||
|  |           image-ref: 'wazuh/wazuh-manager:${{env.WAZUH_IMAGE_VERSION}}' | ||||||
|  |           format: 'template' | ||||||
|  |           template: '@/contrib/sarif.tpl' | ||||||
|  |           output: 'trivy-results-manager.sarif' | ||||||
|  |           severity: 'LOW,MEDIUM,CRITICAL,HIGH' | ||||||
|  |  | ||||||
|  |       - name: Upload Trivy scan results to GitHub Security tab | ||||||
|  |         uses: github/codeql-action/upload-sarif@v2 | ||||||
|  |         with: | ||||||
|  |           sarif_file: 'trivy-results-manager.sarif' | ||||||
|  |  | ||||||
|  |       - name: Slack notification | ||||||
|  |         uses: rtCamp/action-slack-notify@v2 | ||||||
|  |         env: | ||||||
|  |           SLACK_CHANNEL: cicd-monitoring | ||||||
|  |           SLACK_COLOR: ${{ job.status }} # or a specific color like 'good' or '#ff00ff' | ||||||
|  |           #SLACK_ICON: https://github.com/rtCamp.png?size=48 | ||||||
|  |           SLACK_MESSAGE: "Check the results: https://github.com/wazuh/wazuh-docker/security/code-scanning?query=is%3Aopen+branch%3A${{ env.GITHUB_REF_NAME }}" | ||||||
|  |           SLACK_TITLE: Wazuh docker Trivy vulnerability scan finished. | ||||||
|  |           SLACK_USERNAME: github_actions | ||||||
|  |           SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||||||
							
								
								
									
										15
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,6 +1,21 @@ | |||||||
| # 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.7.0 | ||||||
|  | ### Added | ||||||
|  |  | ||||||
|  | - Update Wazuh to version [4.7.0](https://github.com/wazuh/wazuh/blob/v4.7.0/CHANGELOG.md#v470) | ||||||
|  |  | ||||||
|  | ## Wazuh Docker v4.6.0 | ||||||
|  | ### Added | ||||||
|  |  | ||||||
|  | - Update Wazuh to version [4.6.0](https://github.com/wazuh/wazuh/blob/v4.6.0/CHANGELOG.md#v460) | ||||||
|  |  | ||||||
|  | ## Wazuh Docker v4.5.4 | ||||||
|  | ### Added | ||||||
|  |  | ||||||
|  | - Update Wazuh to version [4.5.4](https://github.com/wazuh/wazuh/blob/v4.5.4/CHANGELOG.md#v454) | ||||||
|  |  | ||||||
| ## Wazuh Docker v4.5.3 | ## Wazuh Docker v4.5.3 | ||||||
| ### Added | ### Added | ||||||
|  |  | ||||||
|   | |||||||
| @@ -195,6 +195,9 @@ WAZUH_MONITORING_REPLICAS=0         ## | |||||||
|  |  | ||||||
| | Wazuh version | ODFE    | XPACK  | | | Wazuh version | ODFE    | XPACK  | | ||||||
| |---------------|---------|--------| | |---------------|---------|--------| | ||||||
|  | | v4.7.0        |         |        | | ||||||
|  | | v4.6.0        |         |        | | ||||||
|  | | v4.5.4        |         |        | | ||||||
| | v4.5.3        |         |        | | | v4.5.3        |         |        | | ||||||
| | v4.5.2        |         |        | | | v4.5.2        |         |        | | ||||||
| | v4.5.1        |         |        | | | v4.5.1        |         |        | | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								VERSION
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								VERSION
									
									
									
									
									
								
							| @@ -1,2 +1,2 @@ | |||||||
| WAZUH-DOCKER_VERSION="4.5.3" | WAZUH-DOCKER_VERSION="4.7.0" | ||||||
| REVISION="40505" | REVISION="40704" | ||||||
|   | |||||||
| @@ -9,3 +9,24 @@ $ build-docker-images/build-images.sh | |||||||
| ``` | ``` | ||||||
|  |  | ||||||
| This script initializes the environment variables needed to build each of the images. | This script initializes the environment variables needed to build each of the images. | ||||||
|  |  | ||||||
|  | The script allows you to build images from other versions of Wazuh, to do this you must use the -v or --version argument: | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | $ build-docker-images/build-images.sh -v 4.5.2 | ||||||
|  | ``` | ||||||
|  |  | ||||||
|  | To get all the available script options use the -h or --help option: | ||||||
|  |  | ||||||
|  | ``` | ||||||
|  | $ build-docker-images/build-images.sh -h | ||||||
|  |  | ||||||
|  | Usage: build-docker-images/build-images.sh [OPTIONS] | ||||||
|  |  | ||||||
|  |     -d, --dev <ref>              [Optional] Set the development stage you want to build, example rc1 or beta1, not used by default. | ||||||
|  |     -f, --filebeat-module <ref>  [Optional] Set Filebeat module version. By default 0.3. | ||||||
|  |     -r, --revision <rev>         [Optional] Package revision. By default 1 | ||||||
|  |     -v, --version <ver>          [Optional] Set the Wazuh version should be builded. By default, 4.7.0. | ||||||
|  |     -h, --help                   Show this help. | ||||||
|  |  | ||||||
|  | ``` | ||||||
| @@ -1,11 +1,144 @@ | |||||||
| WAZUH_IMAGE_VERSION=4.5.3 | WAZUH_IMAGE_VERSION=4.7.0 | ||||||
| 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') | ||||||
| IMAGE_VERSION=${WAZUH_IMAGE_VERSION} | IMAGE_VERSION=${WAZUH_IMAGE_VERSION} | ||||||
|  |  | ||||||
| echo WAZUH_VERSION=$WAZUH_IMAGE_VERSION > .env | # Wazuh package generator | ||||||
| echo WAZUH_IMAGE_VERSION=$IMAGE_VERSION >> .env | # Copyright (C) 2023, Wazuh Inc. | ||||||
| echo WAZUH_TAG_REVISION=$WAZUH_TAG_REVISION >> .env | # | ||||||
|  | # This program is a free software; you can redistribute it | ||||||
|  | # and/or modify it under the terms of the GNU General Public | ||||||
|  | # License (version 2) as published by the FSF - Free Software | ||||||
|  | # Foundation. | ||||||
|  |  | ||||||
| docker-compose -f build-docker-images/build-images.yml --env-file .env build --no-cache | WAZUH_IMAGE_VERSION="4.7.0" | ||||||
|  | WAZUH_TAG_REVISION="1" | ||||||
|  | WAZUH_DEV_STAGE="" | ||||||
|  | FILEBEAT_MODULE_VERSION="0.3" | ||||||
|  |  | ||||||
|  | # ----------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  | trap ctrl_c INT | ||||||
|  |  | ||||||
|  | clean() { | ||||||
|  |     exit_code=$1 | ||||||
|  |  | ||||||
|  |     exit ${exit_code} | ||||||
|  | } | ||||||
|  |  | ||||||
|  | ctrl_c() { | ||||||
|  |     clean 1 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | # ----------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  |  | ||||||
|  | build() { | ||||||
|  |  | ||||||
|  |     WAZUH_VERSION="$(echo $WAZUH_IMAGE_VERSION | sed -e 's/\.//g')" | ||||||
|  |     FILEBEAT_TEMPLATE_BRANCH="${WAZUH_IMAGE_VERSION}" | ||||||
|  |     WAZUH_FILEBEAT_MODULE="wazuh-filebeat-${FILEBEAT_MODULE_VERSION}.tar.gz" | ||||||
|  |     WAZUH_UI_REVISION="${WAZUH_TAG_REVISION}" | ||||||
|  |  | ||||||
|  |     if  [ "${WAZUH_DEV_STAGE}" ];then | ||||||
|  |         FILEBEAT_TEMPLATE_BRANCH="v${FILEBEAT_TEMPLATE_BRANCH}-${WAZUH_DEV_STAGE,,}" | ||||||
|  |         if ! curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then | ||||||
|  |             echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}" | ||||||
|  |             clean 1 | ||||||
|  |         fi | ||||||
|  |     else | ||||||
|  |         if curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/v${FILEBEAT_TEMPLATE_BRANCH}"; then | ||||||
|  |             FILEBEAT_TEMPLATE_BRANCH="v${FILEBEAT_TEMPLATE_BRANCH}" | ||||||
|  |         elif curl --output /dev/null --silent --head --fail "https://github.com/wazuh/wazuh/tree/${FILEBEAT_TEMPLATE_BRANCH}"; then | ||||||
|  |             FILEBEAT_TEMPLATE_BRANCH="${FILEBEAT_TEMPLATE_BRANCH}" | ||||||
|  |         else | ||||||
|  |             WAZUH_MASTER_VERSION="$(curl -s https://raw.githubusercontent.com/wazuh/wazuh/master/src/VERSION | sed -e 's/v//g')" | ||||||
|  |             if [ "${FILEBEAT_TEMPLATE_BRANCH}" == "${WAZUH_MASTER_VERSION}" ]; then | ||||||
|  |                 FILEBEAT_TEMPLATE_BRANCH="master" | ||||||
|  |             else | ||||||
|  |                 echo "The indicated branch does not exist in the wazuh/wazuh repository: ${FILEBEAT_TEMPLATE_BRANCH}" | ||||||
|  |                 clean 1 | ||||||
|  |             fi | ||||||
|  |         fi | ||||||
|  |     fi | ||||||
|  |  | ||||||
|  |     echo WAZUH_VERSION=$WAZUH_IMAGE_VERSION > .env | ||||||
|  |     echo WAZUH_IMAGE_VERSION=$WAZUH_IMAGE_VERSION >> .env | ||||||
|  |     echo WAZUH_TAG_REVISION=$WAZUH_TAG_REVISION >> .env | ||||||
|  |     echo FILEBEAT_TEMPLATE_BRANCH=$FILEBEAT_TEMPLATE_BRANCH >> .env | ||||||
|  |     echo WAZUH_FILEBEAT_MODULE=$WAZUH_FILEBEAT_MODULE >> .env | ||||||
|  |     echo WAZUH_UI_REVISION=$WAZUH_UI_REVISION >> .env | ||||||
|  |  | ||||||
|  |     docker-compose -f build-docker-images/build-images.yml --env-file .env build --no-cache | ||||||
|  |  | ||||||
|  |     return 0 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | # ----------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  | help() { | ||||||
|  |     echo | ||||||
|  |     echo "Usage: $0 [OPTIONS]" | ||||||
|  |     echo | ||||||
|  |     echo "    -d, --dev <ref>              [Optional] Set the development stage you want to build, example rc1 or beta1, not used by default." | ||||||
|  |     echo "    -f, --filebeat-module <ref>  [Optional] Set Filebeat module version. By default ${FILEBEAT_MODULE_VERSION}." | ||||||
|  |     echo "    -r, --revision <rev>         [Optional] Package revision. By default ${WAZUH_TAG_REVISION}" | ||||||
|  |     echo "    -v, --version <ver>          [Optional] Set the Wazuh version should be builded. By default, ${WAZUH_IMAGE_VERSION}." | ||||||
|  |     echo "    -h, --help                   Show this help." | ||||||
|  |     echo | ||||||
|  |     exit $1 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | # ----------------------------------------------------------------------------- | ||||||
|  |  | ||||||
|  | main() { | ||||||
|  |     while [ -n "${1}" ] | ||||||
|  |     do | ||||||
|  |         case "${1}" in | ||||||
|  |         "-h"|"--help") | ||||||
|  |             help 0 | ||||||
|  |             ;; | ||||||
|  |         "-d"|"--dev") | ||||||
|  |             if [ -n "${2}" ]; then | ||||||
|  |                 WAZUH_DEV_STAGE="${2}" | ||||||
|  |                 shift 2 | ||||||
|  |             else | ||||||
|  |                 help 1 | ||||||
|  |             fi | ||||||
|  |             ;; | ||||||
|  |         "-f"|"--filebeat-module") | ||||||
|  |             if [ -n "${2}" ]; then | ||||||
|  |                 FILEBEAT_MODULE_VERSION="${2}" | ||||||
|  |                 shift 2 | ||||||
|  |             else | ||||||
|  |                 help 1 | ||||||
|  |             fi | ||||||
|  |             ;; | ||||||
|  |         "-r"|"--revision") | ||||||
|  |             if [ -n "${2}" ]; then | ||||||
|  |                 WAZUH_TAG_REVISION="${2}" | ||||||
|  |                 shift 2 | ||||||
|  |             else | ||||||
|  |                 help 1 | ||||||
|  |             fi | ||||||
|  |             ;; | ||||||
|  |         "-v"|"--version") | ||||||
|  |             if [ -n "$2" ]; then | ||||||
|  |                 WAZUH_IMAGE_VERSION="$2" | ||||||
|  |                 shift 2 | ||||||
|  |             else | ||||||
|  |                 help 1 | ||||||
|  |             fi | ||||||
|  |             ;; | ||||||
|  |         *) | ||||||
|  |             help 1 | ||||||
|  |         esac | ||||||
|  |     done | ||||||
|  |  | ||||||
|  |     build || clean 1 | ||||||
|  |  | ||||||
|  |     clean 0 | ||||||
|  | } | ||||||
|  |  | ||||||
|  | main "$@" | ||||||
|   | |||||||
| @@ -8,6 +8,8 @@ services: | |||||||
|       args: |       args: | ||||||
|         WAZUH_VERSION: ${WAZUH_VERSION} |         WAZUH_VERSION: ${WAZUH_VERSION} | ||||||
|         WAZUH_TAG_REVISION: ${WAZUH_TAG_REVISION} |         WAZUH_TAG_REVISION: ${WAZUH_TAG_REVISION} | ||||||
|  |         FILEBEAT_TEMPLATE_BRANCH: ${FILEBEAT_TEMPLATE_BRANCH} | ||||||
|  |         WAZUH_FILEBEAT_MODULE: ${WAZUH_FILEBEAT_MODULE} | ||||||
|     image: wazuh/wazuh-manager:${WAZUH_IMAGE_VERSION} |     image: wazuh/wazuh-manager:${WAZUH_IMAGE_VERSION} | ||||||
|     hostname: wazuh.manager |     hostname: wazuh.manager | ||||||
|     restart: always |     restart: always | ||||||
| @@ -61,6 +63,7 @@ services: | |||||||
|       args: |       args: | ||||||
|         WAZUH_VERSION: ${WAZUH_VERSION} |         WAZUH_VERSION: ${WAZUH_VERSION} | ||||||
|         WAZUH_TAG_REVISION: ${WAZUH_TAG_REVISION} |         WAZUH_TAG_REVISION: ${WAZUH_TAG_REVISION} | ||||||
|  |         WAZUH_UI_REVISION: ${WAZUH_UI_REVISION} | ||||||
|     image: wazuh/wazuh-dashboard:${WAZUH_IMAGE_VERSION} |     image: wazuh/wazuh-dashboard:${WAZUH_IMAGE_VERSION} | ||||||
|     hostname: wazuh.dashboard |     hostname: wazuh.dashboard | ||||||
|     restart: always |     restart: always | ||||||
|   | |||||||
| @@ -4,7 +4,7 @@ FROM ubuntu:focal AS builder | |||||||
| ARG WAZUH_VERSION | ARG WAZUH_VERSION | ||||||
| ARG WAZUH_TAG_REVISION | ARG WAZUH_TAG_REVISION | ||||||
| ARG INSTALL_DIR=/usr/share/wazuh-dashboard | ARG INSTALL_DIR=/usr/share/wazuh-dashboard | ||||||
| ARG WAZUH_UI_REVISION=1 | ARG WAZUH_UI_REVISION | ||||||
|  |  | ||||||
| # Update and install dependencies | # Update and install dependencies | ||||||
| RUN apt-get update && apt install curl libcap2-bin xz-utils -y | RUN apt-get update && apt install curl libcap2-bin xz-utils -y | ||||||
| @@ -66,6 +66,8 @@ ENV PATTERN="" \ | |||||||
|     EXTENSIONS_CISCAT="" \ |     EXTENSIONS_CISCAT="" \ | ||||||
|     EXTENSIONS_AWS="" \ |     EXTENSIONS_AWS="" \ | ||||||
|     EXTENSIONS_GCP="" \ |     EXTENSIONS_GCP="" \ | ||||||
|  |     EXTENSIONS_GITHUB=""\ | ||||||
|  |     EXTENSIONS_OFFICE=""\ | ||||||
|     EXTENSIONS_VIRUSTOTAL="" \ |     EXTENSIONS_VIRUSTOTAL="" \ | ||||||
|     EXTENSIONS_OSQUERY="" \ |     EXTENSIONS_OSQUERY="" \ | ||||||
|     EXTENSIONS_DOCKER="" \ |     EXTENSIONS_DOCKER="" \ | ||||||
| @@ -78,9 +80,6 @@ ENV PATTERN="" \ | |||||||
|     WAZUH_MONITORING_SHARDS="" \ |     WAZUH_MONITORING_SHARDS="" \ | ||||||
|     WAZUH_MONITORING_REPLICAS="" |     WAZUH_MONITORING_REPLICAS="" | ||||||
|  |  | ||||||
| # Install dependencies |  | ||||||
| RUN apt update && apt install -y libnss3-dev fonts-liberation libfontconfig1 |  | ||||||
|  |  | ||||||
| # Create wazuh-dashboard user and group | # Create wazuh-dashboard user and group | ||||||
| RUN getent group $GROUP || groupadd -r -g 1000 $GROUP | RUN getent group $GROUP || groupadd -r -g 1000 $GROUP | ||||||
| RUN useradd --system \ | RUN useradd --system \ | ||||||
|   | |||||||
| @@ -9,8 +9,8 @@ export CONFIG_DIR=${INSTALLATION_DIR}/config | |||||||
|  |  | ||||||
| ## Variables | ## Variables | ||||||
| CERT_TOOL=wazuh-certs-tool.sh | CERT_TOOL=wazuh-certs-tool.sh | ||||||
| PACKAGES_URL=https://packages.wazuh.com/4.5/ | PACKAGES_URL=https://packages.wazuh.com/4.7/ | ||||||
| PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.5/ | PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.7/ | ||||||
|  |  | ||||||
| ## Check if the cert tool exists in S3 buckets | ## Check if the cert tool exists in S3 buckets | ||||||
| CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk  '{print $2}') | CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk  '{print $2}') | ||||||
|   | |||||||
| @@ -16,7 +16,7 @@ | |||||||
| # https://documentation.wazuh.com/current/installation-guide/index.html | # https://documentation.wazuh.com/current/installation-guide/index.html | ||||||
| # | # | ||||||
| # Also, you can check our repository: | # Also, you can check our repository: | ||||||
| # https://github.com/wazuh/wazuh-kibana-app | # https://github.com/wazuh/wazuh-dashboard-plugins | ||||||
| # | # | ||||||
| # ------------------------------- Index patterns ------------------------------- | # ------------------------------- Index patterns ------------------------------- | ||||||
| # | # | ||||||
|   | |||||||
| @@ -25,6 +25,8 @@ declare -A CONFIG_MAP=( | |||||||
|   [extensions.ciscat]=$EXTENSIONS_CISCAT |   [extensions.ciscat]=$EXTENSIONS_CISCAT | ||||||
|   [extensions.aws]=$EXTENSIONS_AWS |   [extensions.aws]=$EXTENSIONS_AWS | ||||||
|   [extensions.gcp]=$EXTENSIONS_GCP |   [extensions.gcp]=$EXTENSIONS_GCP | ||||||
|  |   [extensions.github]=$EXTENSIONS_GITHUB | ||||||
|  |   [extensions.office]=$EXTENSIONS_OFFICE | ||||||
|   [extensions.virustotal]=$EXTENSIONS_VIRUSTOTAL |   [extensions.virustotal]=$EXTENSIONS_VIRUSTOTAL | ||||||
|   [extensions.osquery]=$EXTENSIONS_OSQUERY |   [extensions.osquery]=$EXTENSIONS_OSQUERY | ||||||
|   [extensions.docker]=$EXTENSIONS_DOCKER |   [extensions.docker]=$EXTENSIONS_DOCKER | ||||||
|   | |||||||
| @@ -53,8 +53,8 @@ tar -xf ${INDEXER_FILE} | |||||||
| ## Variables | ## Variables | ||||||
| CERT_TOOL=wazuh-certs-tool.sh | CERT_TOOL=wazuh-certs-tool.sh | ||||||
| PASSWORD_TOOL=wazuh-passwords-tool.sh | PASSWORD_TOOL=wazuh-passwords-tool.sh | ||||||
| PACKAGES_URL=https://packages.wazuh.com/4.5/ | PACKAGES_URL=https://packages.wazuh.com/4.7/ | ||||||
| PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.5/ | PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.7/ | ||||||
|  |  | ||||||
| ## Check if the cert tool exists in S3 buckets | ## Check if the cert tool exists in S3 buckets | ||||||
| CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk  '{print $2}') | CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk  '{print $2}') | ||||||
| @@ -133,6 +133,14 @@ cp -pr /wazuh-certificates/admin-key.pem ${TARGET_DIR}${CONFIG_DIR}/certs/admin- | |||||||
| # Delete xms and xmx parameters in jvm.options | # Delete xms and xmx parameters in jvm.options | ||||||
| sed '/-Xms/d' -i ${TARGET_DIR}${CONFIG_DIR}/jvm.options | sed '/-Xms/d' -i ${TARGET_DIR}${CONFIG_DIR}/jvm.options | ||||||
| sed '/-Xmx/d' -i ${TARGET_DIR}${CONFIG_DIR}/jvm.options | sed '/-Xmx/d' -i ${TARGET_DIR}${CONFIG_DIR}/jvm.options | ||||||
|  | sed -i 's/-Djava.security.policy=file:\/\/\/etc\/wazuh-indexer\/opensearch-performance-analyzer\/opensearch_security.policy/-Djava.security.policy=file:\/\/\/usr\/share\/wazuh-indexer\/opensearch-performance-analyzer\/opensearch_security.policy/g' ${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/* | ||||||
|  |  | ||||||
|  | find ${TARGET_DIR} -type d -exec chmod 750 {} \; | ||||||
|  | find ${TARGET_DIR} -type f -perm 644 -exec chmod 640 {} \; | ||||||
|  | find ${TARGET_DIR} -type f -perm 664 -exec chmod 660 {} \; | ||||||
|  | find ${TARGET_DIR} -type f -perm 755 -exec chmod 750 {} \; | ||||||
|  | find ${TARGET_DIR} -type f -perm 744 -exec chmod 740 {} \; | ||||||
|   | |||||||
| @@ -5,10 +5,10 @@ RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |||||||
|  |  | ||||||
| ARG WAZUH_VERSION | ARG WAZUH_VERSION | ||||||
| ARG WAZUH_TAG_REVISION | ARG WAZUH_TAG_REVISION | ||||||
| ARG TEMPLATE_VERSION=4.5 | ARG FILEBEAT_TEMPLATE_BRANCH | ||||||
| ARG FILEBEAT_CHANNEL=filebeat-oss | ARG FILEBEAT_CHANNEL=filebeat-oss | ||||||
| ARG FILEBEAT_VERSION=7.10.2 | ARG FILEBEAT_VERSION=7.10.2 | ||||||
| ARG WAZUH_FILEBEAT_MODULE="wazuh-filebeat-0.2.tar.gz" | ARG WAZUH_FILEBEAT_MODULE | ||||||
|  |  | ||||||
| RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y | RUN apt-get update && apt install curl apt-transport-https lsb-release gnupg -y | ||||||
|  |  | ||||||
| @@ -38,7 +38,7 @@ COPY config/filebeat.yml /etc/filebeat/ | |||||||
|  |  | ||||||
| RUN chmod go-w /etc/filebeat/filebeat.yml | RUN chmod go-w /etc/filebeat/filebeat.yml | ||||||
|  |  | ||||||
| ADD https://raw.githubusercontent.com/wazuh/wazuh/$TEMPLATE_VERSION/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat | ADD https://raw.githubusercontent.com/wazuh/wazuh/$FILEBEAT_TEMPLATE_BRANCH/extensions/elasticsearch/7.x/wazuh-template.json /etc/filebeat | ||||||
| RUN chmod go-w /etc/filebeat/wazuh-template.json | RUN chmod go-w /etc/filebeat/wazuh-template.json | ||||||
|  |  | ||||||
| # Prepare permanent data | # Prepare permanent data | ||||||
| @@ -52,4 +52,4 @@ RUN chmod 755 /permanent_data.sh && \ | |||||||
| # Services ports | # Services ports | ||||||
| EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp | EXPOSE 55000/tcp 1514/tcp 1515/tcp 514/udp 1516/tcp | ||||||
|  |  | ||||||
| ENTRYPOINT [ "/init" ] | ENTRYPOINT [ "/init" ] | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ SPECIAL_CHARS = "@$!%*?&-_" | |||||||
|  |  | ||||||
|  |  | ||||||
| try: | try: | ||||||
|     from wazuh.rbac.orm import create_rbac_db |     from wazuh.rbac.orm import check_database_integrity | ||||||
|     from wazuh.security import ( |     from wazuh.security import ( | ||||||
|         create_user, |         create_user, | ||||||
|         get_users, |         get_users, | ||||||
| @@ -69,7 +69,7 @@ if __name__ == "__main__": | |||||||
|     username, password = read_user_file() |     username, password = read_user_file() | ||||||
|  |  | ||||||
|     # create RBAC database |     # create RBAC database | ||||||
|     create_rbac_db() |     check_database_integrity() | ||||||
|  |  | ||||||
|     initial_users = db_users() |     initial_users = db_users() | ||||||
|     if username not in initial_users: |     if username not in initial_users: | ||||||
|   | |||||||
| @@ -8,8 +8,8 @@ | |||||||
| ## Variables | ## Variables | ||||||
| CERT_TOOL=wazuh-certs-tool.sh | CERT_TOOL=wazuh-certs-tool.sh | ||||||
| PASSWORD_TOOL=wazuh-passwords-tool.sh | PASSWORD_TOOL=wazuh-passwords-tool.sh | ||||||
| PACKAGES_URL=https://packages.wazuh.com/4.5/ | PACKAGES_URL=https://packages.wazuh.com/4.7/ | ||||||
| PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.5/ | PACKAGES_DEV_URL=https://packages-dev.wazuh.com/4.7/ | ||||||
|  |  | ||||||
| ## Check if the cert tool exists in S3 buckets | ## Check if the cert tool exists in S3 buckets | ||||||
| CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk  '{print $2}') | CERT_TOOL_PACKAGES=$(curl --silent -I $PACKAGES_URL$CERT_TOOL | grep -E "^HTTP" | awk  '{print $2}') | ||||||
|   | |||||||
| @@ -117,6 +117,7 @@ | |||||||
|       <enabled>no</enabled> |       <enabled>no</enabled> | ||||||
|       <os>buster</os> |       <os>buster</os> | ||||||
|       <os>bullseye</os> |       <os>bullseye</os> | ||||||
|  |       <os>bookworm</os> | ||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
| @@ -136,6 +137,7 @@ | |||||||
|       <enabled>no</enabled> |       <enabled>no</enabled> | ||||||
|       <os>amazon-linux</os> |       <os>amazon-linux</os> | ||||||
|       <os>amazon-linux-2</os> |       <os>amazon-linux-2</os> | ||||||
|  |       <os>amazon-linux-2023</os> | ||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
| @@ -163,6 +165,14 @@ | |||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
|  |     <!-- Alma Linux OS vulnerabilities --> | ||||||
|  |     <provider name="almalinux"> | ||||||
|  |       <enabled>no</enabled> | ||||||
|  |       <os>8</os> | ||||||
|  |       <os>9</os> | ||||||
|  |       <update_interval>1h</update_interval> | ||||||
|  |     </provider> | ||||||
|  |  | ||||||
|     <!-- Aggregate vulnerabilities --> |     <!-- Aggregate vulnerabilities --> | ||||||
|     <provider name="nvd"> |     <provider name="nvd"> | ||||||
|       <enabled>yes</enabled> |       <enabled>yes</enabled> | ||||||
| @@ -366,4 +376,4 @@ | |||||||
|     <location>/var/log/dpkg.log</location> |     <location>/var/log/dpkg.log</location> | ||||||
|   </localfile> |   </localfile> | ||||||
|  |  | ||||||
| </ossec_config> | </ossec_config> | ||||||
|   | |||||||
| @@ -117,6 +117,7 @@ | |||||||
|       <enabled>no</enabled> |       <enabled>no</enabled> | ||||||
|       <os>buster</os> |       <os>buster</os> | ||||||
|       <os>bullseye</os> |       <os>bullseye</os> | ||||||
|  |       <os>bookworm</os> | ||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
| @@ -136,6 +137,7 @@ | |||||||
|       <enabled>no</enabled> |       <enabled>no</enabled> | ||||||
|       <os>amazon-linux</os> |       <os>amazon-linux</os> | ||||||
|       <os>amazon-linux-2</os> |       <os>amazon-linux-2</os> | ||||||
|  |       <os>amazon-linux-2023</os> | ||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
| @@ -157,6 +159,14 @@ | |||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
|  |     <!-- Alma Linux OS vulnerabilities --> | ||||||
|  |     <provider name="almalinux"> | ||||||
|  |       <enabled>no</enabled> | ||||||
|  |       <os>8</os> | ||||||
|  |       <os>9</os> | ||||||
|  |       <update_interval>1h</update_interval> | ||||||
|  |     </provider> | ||||||
|  |  | ||||||
|     <!-- Windows OS vulnerabilities --> |     <!-- Windows OS vulnerabilities --> | ||||||
|     <provider name="msu"> |     <provider name="msu"> | ||||||
|       <enabled>yes</enabled> |       <enabled>yes</enabled> | ||||||
| @@ -366,4 +376,4 @@ | |||||||
|     <location>/var/log/dpkg.log</location> |     <location>/var/log/dpkg.log</location> | ||||||
|   </localfile> |   </localfile> | ||||||
|  |  | ||||||
| </ossec_config> | </ossec_config> | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ version: '3.7' | |||||||
|  |  | ||||||
| services: | services: | ||||||
|   wazuh.master: |   wazuh.master: | ||||||
|     image: wazuh/wazuh-manager:4.5.3 |     image: wazuh/wazuh-manager:4.7.0 | ||||||
|     hostname: wazuh.master |     hostname: wazuh.master | ||||||
|     restart: always |     restart: always | ||||||
|     ulimits: |     ulimits: | ||||||
| @@ -45,7 +45,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.5.3 |     image: wazuh/wazuh-manager:4.7.0 | ||||||
|     hostname: wazuh.worker |     hostname: wazuh.worker | ||||||
|     restart: always |     restart: always | ||||||
|     ulimits: |     ulimits: | ||||||
| @@ -81,7 +81,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.5.3 |     image: wazuh/wazuh-indexer:4.7.0 | ||||||
|     hostname: wazuh1.indexer |     hostname: wazuh1.indexer | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
| @@ -107,7 +107,7 @@ services: | |||||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml |       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml | ||||||
|  |  | ||||||
|   wazuh2.indexer: |   wazuh2.indexer: | ||||||
|     image: wazuh/wazuh-indexer:4.5.3 |     image: wazuh/wazuh-indexer:4.7.0 | ||||||
|     hostname: wazuh2.indexer |     hostname: wazuh2.indexer | ||||||
|     restart: always |     restart: always | ||||||
|     environment: |     environment: | ||||||
| @@ -129,7 +129,7 @@ services: | |||||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml |       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml | ||||||
|  |  | ||||||
|   wazuh3.indexer: |   wazuh3.indexer: | ||||||
|     image: wazuh/wazuh-indexer:4.5.3 |     image: wazuh/wazuh-indexer:4.7.0 | ||||||
|     hostname: wazuh3.indexer |     hostname: wazuh3.indexer | ||||||
|     restart: always |     restart: always | ||||||
|     environment: |     environment: | ||||||
| @@ -151,7 +151,7 @@ services: | |||||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml |       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml | ||||||
|  |  | ||||||
|   wazuh.dashboard: |   wazuh.dashboard: | ||||||
|     image: wazuh/wazuh-dashboard:4.5.3 |     image: wazuh/wazuh-dashboard:4.7.0 | ||||||
|     hostname: wazuh.dashboard |     hostname: wazuh.dashboard | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
|   | |||||||
| @@ -117,6 +117,7 @@ | |||||||
|       <enabled>no</enabled> |       <enabled>no</enabled> | ||||||
|       <os>buster</os> |       <os>buster</os> | ||||||
|       <os>bullseye</os> |       <os>bullseye</os> | ||||||
|  |       <os>bookworm</os> | ||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
| @@ -136,6 +137,7 @@ | |||||||
|       <enabled>no</enabled> |       <enabled>no</enabled> | ||||||
|       <os>amazon-linux</os> |       <os>amazon-linux</os> | ||||||
|       <os>amazon-linux-2</os> |       <os>amazon-linux-2</os> | ||||||
|  |       <os>amazon-linux-2023</os> | ||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
| @@ -157,6 +159,14 @@ | |||||||
|       <update_interval>1h</update_interval> |       <update_interval>1h</update_interval> | ||||||
|     </provider> |     </provider> | ||||||
|  |  | ||||||
|  |     <!-- Alma Linux OS vulnerabilities --> | ||||||
|  |     <provider name="almalinux"> | ||||||
|  |       <enabled>no</enabled> | ||||||
|  |       <os>8</os> | ||||||
|  |       <os>9</os> | ||||||
|  |       <update_interval>1h</update_interval> | ||||||
|  |     </provider> | ||||||
|  |  | ||||||
|     <!-- Windows OS vulnerabilities --> |     <!-- Windows OS vulnerabilities --> | ||||||
|     <provider name="msu"> |     <provider name="msu"> | ||||||
|       <enabled>yes</enabled> |       <enabled>yes</enabled> | ||||||
|   | |||||||
| @@ -3,7 +3,7 @@ version: '3.7' | |||||||
|  |  | ||||||
| services: | services: | ||||||
|   wazuh.manager: |   wazuh.manager: | ||||||
|     image: wazuh/wazuh-manager:4.5.3 |     image: wazuh/wazuh-manager:4.7.0 | ||||||
|     hostname: wazuh.manager |     hostname: wazuh.manager | ||||||
|     restart: always |     restart: always | ||||||
|     ulimits: |     ulimits: | ||||||
| @@ -46,7 +46,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.5.3 |     image: wazuh/wazuh-indexer:4.7.0 | ||||||
|     hostname: wazuh.indexer |     hostname: wazuh.indexer | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
| @@ -71,7 +71,7 @@ services: | |||||||
|       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml |       - ./config/wazuh_indexer/internal_users.yml:/usr/share/wazuh-indexer/opensearch-security/internal_users.yml | ||||||
|  |  | ||||||
|   wazuh.dashboard: |   wazuh.dashboard: | ||||||
|     image: wazuh/wazuh-dashboard:4.5.3 |     image: wazuh/wazuh-dashboard:4.7.0 | ||||||
|     hostname: wazuh.dashboard |     hostname: wazuh.dashboard | ||||||
|     restart: always |     restart: always | ||||||
|     ports: |     ports: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user