forked from opensearch-project/OpenSearch-Dashboards
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility with OpenSearch 2.11.1 (#131)
Signed-off-by: yenienserrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Ian Yenien Serrano <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Maximiliano Ibarra <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]>
- Loading branch information
1 parent
989d8f4
commit bd4fe7a
Showing
133 changed files
with
4,395 additions
and
682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
name: Compatibility request | ||
about: Suggest supporting a new version of OpenSearch | ||
title: 'Compatibility with OpenSearch (version)' | ||
labels: compatibility, level/task, type/research | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
We need to ensure the UI compatibility with the next version of OpenSearch vX.X. | ||
This update is still being discussed, but we need to be aware of potential issues. | ||
|
||
For that, we need to: | ||
|
||
- [ ] Review opensearch and opensearch-dashboard latest stable changelog. | ||
- [ ] Identify improvements and potential impact on the UI. | ||
- [ ] Create new tracking and development branches. | ||
- [ ] Develop a testing environment to verify our components would work under this new build. | ||
|
||
|
||
## Issues | ||
- _List here the detected issues_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: New release | ||
about: "[wazuh-team] Track the effort of the team to release a new version of Wazuh" | ||
title: Support for Wazuh 4.x.x | ||
labels: level/task, type/enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
## Description | ||
|
||
Example: | ||
> Wazuh 4.3.8 will be released shortly. Our Wazuh Dashboard app need to support this new version. From our side, no changes will be included, so we only need to bump the version. | ||
|
||
## Tasks | ||
|
||
### Pre-release | ||
- [ ] Add support for Wazuh 4.x.x (bump). | ||
- [ ] Generate the required tags. | ||
- [ ] Generate the packages. | ||
- [ ] Test the packages, to verify they install, and the app works as expected. | ||
- [ ] [Optional] Run Regression Testing (#issue) | ||
- [ ] Generate draft releases. | ||
- [ ] Notify the @wazuh/cicd and @wazuh/content teams that the release is good to go, from our side. | ||
|
||
### Post-release | ||
- [ ] Make draft releases final and public. | ||
- [ ] Sync branches. | ||
|
||
### Supported versions | ||
|
||
Same as on [previous releases](https://github.com/wazuh/wazuh-dashboard/wiki/Compatibility) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: Build | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
CHECKOUT_TO: # This is the branch to checkout to. Defaults to 'master' | ||
description: 'The branch/tag/commit to checkout to' | ||
required: true | ||
default: '' | ||
type: string | ||
workflow_dispatch: | ||
inputs: | ||
CHECKOUT_TO: # This is the branch to checkout to. Defaults to 'master' | ||
description: 'The branch/tag/commit to checkout to' | ||
required: true | ||
default: '' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Build | ||
defaults: | ||
run: | ||
working-directory: ./artifacts | ||
strategy: | ||
matrix: | ||
DISTRIBUTION: [ tar.gz ] | ||
ARCHITECTURE: [ x64 ] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: wazuh/wazuh-dashboard | ||
path: ./artifacts | ||
ref: ${{ inputs.CHECKOUT_TO }} | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: './artifacts/.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Setup Yarn | ||
run: | | ||
npm uninstall -g yarn | ||
npm i -g [email protected] | ||
yarn config set network-timeout 1000000 -g | ||
- name: Configure Yarn Cache | ||
run: echo "YARN_CACHE_LOCATION=$(yarn cache dir)" >> $GITHUB_ENV | ||
|
||
- name: Initialize Yarn Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.YARN_CACHE_LOCATION }} | ||
key: yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
yarn- | ||
- name: Get package version | ||
run: | | ||
echo "VERSION=$(yarn --silent pkg-version)" >> $GITHUB_ENV | ||
echo "WZD_VERSION=$(yarn --silent wzd-version)" >> $GITHUB_ENV | ||
echo "WZD_REVISION=$(yarn --silent wzd-revision)" >> $GITHUB_ENV | ||
- name: Get artifact build name | ||
run: | | ||
echo "ARTIFACT_BUILD_NAME=wazuh-dashboard_${{ env.WZD_VERSION }}-${{ env.WZD_REVISION }}_${{ matrix.ARCHITECTURE }}_${{ inputs.CHECKOUT_TO }}.${{ matrix.DISTRIBUTION }}" >> $GITHUB_ENV | ||
- name: Run bootstrap | ||
run: yarn osd bootstrap | ||
|
||
- name: Build linux-x64 | ||
if: matrix.ARCHITECTURE == 'x64' | ||
run: yarn build-platform --linux --skip-os-packages --release | ||
|
||
- name: Build linux-arm64 | ||
if: matrix.ARCHITECTURE == 'arm64' | ||
run: yarn build-platform --linux-arm --skip-os-packages --release | ||
|
||
- name: Rename artifact | ||
run: mv /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/opensearch-dashboards-${{ env.VERSION }}-linux-${{ matrix.ARCHITECTURE }}.${{ matrix.DISTRIBUTION }} /home/runner/work/wazuh-dashboard/wazuh-dashboard/artifacts/target/${{ env.ARTIFACT_BUILD_NAME }} | ||
|
||
- uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: ${{ env.ARTIFACT_BUILD_NAME }} | ||
path: ./artifacts/target/${{ env.ARTIFACT_BUILD_NAME }} | ||
retention-days: 30 |
212 changes: 212 additions & 0 deletions
212
.github/workflows/build_wazuh_dashboard_with_plugins.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
name: Build final packages | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
REFERENCE_SECURITY_PLUGIN: | ||
description: 'Reference Wazuh security packages (branch/tag/commit)' | ||
required: true | ||
default: '' | ||
REFERENCE_WAZUH_PLUGINS: | ||
description: 'Reference Wazuh plugins (branch/tag/commit)' | ||
required: true | ||
default: '' | ||
REFERENCE_WAZUH_DASHBOARD: | ||
description: 'Reference Wazuh dashboard (branch/tag/commit)' | ||
required: true | ||
default: '' | ||
DISTRIBUTION: | ||
description: 'Distribution to build (deb | rpm | tar | all-platforms)' | ||
required: true | ||
default: '' | ||
|
||
jobs: | ||
build-plugins: | ||
name: Build plugins | ||
uses: wazuh/wazuh-dashboard-plugins/.github/workflows/manual-build.yml@master | ||
with: | ||
reference: ${{ inputs.REFERENCE_WAZUH_PLUGINS }} | ||
|
||
build-dashboard: | ||
name: Build dashboard | ||
uses: wazuh/wazuh-dashboard/.github/workflows/[email protected] | ||
with: | ||
CHECKOUT_TO: ${{ inputs.REFERENCE_WAZUH_DASHBOARD }} | ||
|
||
build-security-plugin: | ||
name: Build security plugin | ||
uses: wazuh/wazuh-security-dashboards-plugin/.github/workflows/[email protected] | ||
with: | ||
reference: ${{ inputs.REFERENCE_SECURITY_PLUGIN }} | ||
|
||
|
||
Build-base-package: | ||
needs: [build-plugins, build-dashboard, build-security-plugin] | ||
runs-on: ubuntu-latest | ||
name: Generate final packages | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# TODO: Add arm64 support | ||
ARCHITECTURE: [ x64 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Setup variables | ||
run: | | ||
echo "CURRENT_DIR=$(pwd -P)" >> $GITHUB_ENV | ||
echo "VERSION=$(yarn --silent wzd-version)" >> $GITHUB_ENV | ||
echo "REVISION=$(yarn --silent wzd-revision)" >> $GITHUB_ENV | ||
- name: Setup packages names | ||
run: | | ||
echo "WAZUH_DASHBOARD_SLIM=wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_${{ matrix.ARCHITECTURE }}_${{ inputs.REFERENCE_WAZUH_DASHBOARD }}.tar.gz" >> $GITHUB_ENV | ||
echo "WAZUH_SECURITY_PLUGIN=wazuh-security-dashboards-plugin_${{ env.VERSION }}-${{ env.REVISION }}_${{ inputs.REFERENCE_SECURITY_PLUGIN }}.zip" >> $GITHUB_ENV | ||
echo "WAZUH_PLUGINS=wazuh-dashboard-plugins_${{ env.VERSION }}-${{ env.REVISION }}_${{ inputs.REFERENCE_WAZUH_PLUGINS }}.zip" >> $GITHUB_ENV | ||
- name: Download dashboard artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ env.WAZUH_DASHBOARD_SLIM }} | ||
path: ${{ env.CURRENT_DIR }}/artifacts/dashboard | ||
|
||
- name: Download security plugin artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ env.WAZUH_SECURITY_PLUGIN }} | ||
path: ${{ env.CURRENT_DIR }}/artifacts/security-plugin | ||
|
||
- name: Download plugins artifacts | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ env.WAZUH_PLUGINS }} | ||
path: ${{ env.CURRENT_DIR }}/artifacts/plugins | ||
|
||
- name: Zip plugins | ||
run: | | ||
zip -r -j ${{ env.CURRENT_DIR }}/artifacts/wazuh-package.zip ${{ env.CURRENT_DIR }}/artifacts/plugins | ||
zip -r -j ${{ env.CURRENT_DIR }}/artifacts/security-package.zip ${{ env.CURRENT_DIR }}/artifacts/security-plugin | ||
zip -r -j ${{ env.CURRENT_DIR }}/artifacts/dashboard-package.zip ${{ env.CURRENT_DIR }}/artifacts/dashboard/${{ env.WAZUH_DASHBOARD_SLIM }} | ||
- name: Build packages | ||
run: | | ||
cd ${{ env.CURRENT_DIR }}/dev-tools/build-packages | ||
bash ./build-packages.sh \ | ||
-v ${{ env.VERSION }} \ | ||
-r ${{ env.REVISION }} \ | ||
-a file://${{env.CURRENT_DIR}}/artifacts/wazuh-package.zip \ | ||
-s file://${{env.CURRENT_DIR}}/artifacts/security-package.zip \ | ||
-b file://${{env.CURRENT_DIR}}/artifacts/dashboard-package.zip \ | ||
--tar | ||
- name: Upload tar packages | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz | ||
path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/output/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz | ||
retention-days: 30 | ||
|
||
build-deb-package: | ||
needs: [Build-base-package] | ||
if: ( contains(inputs.DISTRIBUTION, 'deb') || contains(inputs.DISTRIBUTION, 'all-platforms') ) | ||
runs-on: ubuntu-latest | ||
name: Build deb package | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# TODO: Add arm64 support | ||
ARCHITECTURE: [ x64 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Setup variables | ||
run: | | ||
echo "CURRENT_DIR=$(pwd -P)" >> $GITHUB_ENV | ||
echo "VERSION=$(yarn --silent wzd-version)" >> $GITHUB_ENV | ||
echo "REVISION=$(yarn --silent wzd-revision)" >> $GITHUB_ENV | ||
- name: Download dashboard artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz | ||
path: ${{ env.CURRENT_DIR }}/artifacts/dashboard-tar | ||
|
||
- name: Build packages | ||
run: | | ||
cd ${{ env.CURRENT_DIR }}/dev-tools/build-packages/deb/ | ||
bash ./launcher.sh \ | ||
-v ${{ env.VERSION }} \ | ||
-r ${{ env.REVISION }} \ | ||
-p file://${{env.CURRENT_DIR}}/artifacts/dashboard-tar/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz | ||
- name: Upload deb packages | ||
uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb | ||
path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/deb/output/wazuh-dashboard_${{ env.VERSION }}-${{ env.REVISION }}_amd64.deb | ||
retention-days: 30 | ||
|
||
|
||
build-rpm-package: | ||
needs: [Build-base-package] | ||
if: ( contains(inputs.DISTRIBUTION, 'rpm') || contains(inputs.DISTRIBUTION, 'all-platforms') ) | ||
runs-on: ubuntu-latest | ||
name: Build rpm package | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ARCHITECTURE: [ x64 ] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Setup variables | ||
run: | | ||
echo "CURRENT_DIR=$(pwd -P)" >> $GITHUB_ENV | ||
echo "VERSION=$(yarn --silent wzd-version)" >> $GITHUB_ENV | ||
echo "REVISION=$(yarn --silent wzd-revision)" >> $GITHUB_ENV | ||
- name: Download dashboard artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz | ||
path: ${{ env.CURRENT_DIR }}/artifacts/dashboard-tar | ||
|
||
- name: Build packages | ||
run: | | ||
cd ${{ env.CURRENT_DIR }}/dev-tools/build-packages/rpm/ | ||
bash ./launcher.sh \ | ||
-v ${{ env.VERSION }} \ | ||
-r ${{ env.REVISION }} \ | ||
-p file://${{env.CURRENT_DIR}}/artifacts/dashboard-tar/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}-linux-${{ matrix.ARCHITECTURE }}.tar.gz | ||
- name: Upload rpm packages | ||
uses: actions/upload-artifact@v3 | ||
if: success() | ||
with: | ||
name: wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}.x86_64.rpm | ||
path: ${{ env.CURRENT_DIR }}/dev-tools/build-packages/rpm/output/wazuh-dashboard-${{ env.VERSION }}-${{ env.REVISION }}.x86_64.rpm | ||
retention-days: 30 |
Oops, something went wrong.