Skip to content

Commit 2699600

Browse files
yenienserranoAlexRuiz7asteriscosTosttiDesvelao
authored
Migrate main to 3.2.0.0 (#371)
* Migrate main to 3.0.0.0 (#268) * Compatibility with opensearch 2.19.0 (#191) (#205) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump version 4.10.0 revision 00 (#53) * Merge 4.9.1 into 4.10.0 (#102) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * chore(bump): 4.10.0 rev01 (#103) * chore(bump): 4.10.1 rev 00 (#105) * Bump 4.10.2 00 (#109) * Merge 4.10.0 into 4.10.1 (#143) (#144) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * fix: conflict * fix: typo --------- * Bump version to 4.10.3 revision 00 (#149) * Support Wazuh 4.12.0 rev 00 (#159) * Bump version 4.12.0 * Bump version 4.12.0 * Merge 4.11.0 into 4.12.0 (#177) * Merge 4.10.0 into 4.10.1 (#143) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * fix: conflict * fix: typo --------- * Bump version 4.11.0 (#158) * Bump revision to 4.11.0-01 (#174) * Merge 4.10.2 into 4.11.0 (#176) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * Bump revision to 07 (#147) * Bump version 4.10.1 (#157) * chore(bump): 4.10.1 rev 01 (#165) * Bump version to 4.10.2-00 (#169) * Replace the SAML default embedded route redirects with a new default route redirect. (#171) * Saml url default path changes to wz-home * Added pretier * Resolve test * Repair tests --------- --------- * Change the version of cypress to opensearch dashboard version * Fix saml_aut_test.spec.js * Update dev-environment.yml * Update manual-build.yml * Add VERSION.json (#192) --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> * Bump version 4.13.0 (#213) * Merge 4.11.2 into 4.12.0 (#224) (#225) * chore(bump): 4.11.1 rev 01 (#203) * Bump revision to 02 (#209) * Bump version 4.11.2 (#217) * Bump version 4.11.2 * Bump version 4.11.2 * chore(bump): 4.11.2 rev 01 (#219) * chore(bump): 4.11.2 rev 02 (#221) --------- Co-authored-by: Antonio <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> * Repository bumper script development (#234) * add gitignore entry for repository bumper logs Prevents repository bumper log files from being tracked by Git. Improves repository cleanliness and avoids unnecessary clutter. * add repository version bumper script Introduces a shell script to automate version and stage updates across the repository. Includes argument parsing, input validation, version comparison, and file updates for consistent version management. * update manual build workflow version reference Adds a function to update the default version in the manual build workflow file. Logs changes and handles cases where the workflow file is missing. Enhances version consistency across repository workflows. * add stage extraction from VERSION.json Enhances pre-update checks by extracting the 'stage' field from VERSION.json using sed. Validates the extracted value and handles errors, ensuring robustness against missing or null fields. * improve version file update logic Adds conditional checks to update version and stage fields only if changes are detected. Prevents unnecessary modifications and improves logging clarity. * extract revision from package.json in repository bumper Adds logic to retrieve the current revision from package.json using sed. Logs errors if the revision is missing, null, or improperly formatted, and terminates the script to ensure data integrity. * improve version and revision update logic in package.json Adds conditional checks to update version and revision only when changes are needed. Introduces a flag to track modifications and logs success messages only when updates occur. Enhances code reliability and reduces redundant operations. * add conditional check when updating default reference Prevents redundant updates by adding a check to ensure the current version differs from the target version before making changes. Improves script reliability and avoids unnecessary operations. * add README for versioning tools Introduces a README file documenting the usage, functionality, and affected files of the `repository_bumper.sh` script. Provides examples, parameter details, and notes for users. Enhances clarity and usability of versioning tools. * Bump version to 5.0.0 (#252) * Bump version to 5.0.0 * Fix repository_bumper.sh * Optimizes CI workflows to run only on ready PRs Removes push triggers and adds draft PR filtering to prevent unnecessary CI runs. Changes workflow triggers from push/pull_request to only pull_request with specific types (opened, synchronize, reopened, ready_for_review) and adds conditional checks to skip execution when PRs are in draft state. Reduces CI resource usage and improves development workflow efficiency by avoiding test runs on incomplete work. * Add force: true --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> * Adds automated repository version bumping workflow (#277) * Adds automated repository version bumping workflow * Simplifies workflow by removing tag option and adding push trigger * Removes push trigger from repository bumper workflow * Simplifies repository bumper workflow configuration * Fix repository bumper workflow environment secret (#298) * fix: fixed env secret Signed-off-by: Raul Del Pozo Moreno <[email protected]> * chore: abstracted version Signed-off-by: Raul Del Pozo Moreno <[email protected]> --------- Signed-off-by: Raul Del Pozo Moreno <[email protected]> * Restrict GitHub actions permissions (#299) * Restrict ALL action permissions in the package build workflows * Add content read permission * ci(workflows): Add workflows from 6.0.0 to main (#302) Signed-off-by: gonzaarancibia <[email protected]> * fix: added admin privilege to PR merge (#310) Signed-off-by: Raul Del Pozo Moreno <[email protected]> * Fix pr permission write (#312) * Adds repository version bumper workflows and improves portability (#319) * Enhance GitHub workflows to include Wazuh version retrieval * Merge 4.14.1 into main (#361) * Migrate 4.14.0 to 2.19.3.0 (#347) * Compatibility with opensearch 2.19.0 (#191) (#205) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump version 4.10.0 revision 00 (#53) * Merge 4.9.1 into 4.10.0 (#102) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * chore(bump): 4.10.0 rev01 (#103) * chore(bump): 4.10.1 rev 00 (#105) * Bump 4.10.2 00 (#109) * Merge 4.10.0 into 4.10.1 (#143) (#144) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * fix: conflict * fix: typo --------- * Bump version to 4.10.3 revision 00 (#149) * Support Wazuh 4.12.0 rev 00 (#159) * Bump version 4.12.0 * Bump version 4.12.0 * Merge 4.11.0 into 4.12.0 (#177) * Merge 4.10.0 into 4.10.1 (#143) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * fix: conflict * fix: typo --------- * Bump version 4.11.0 (#158) * Bump revision to 4.11.0-01 (#174) * Merge 4.10.2 into 4.11.0 (#176) * Bump revision (#116) * chore: bump 4.10.0 rev 03 (#123) * Bump revision 04 (#133) * Update the actions' version (#131) * Support Wazuh 5.0.0 * Merge 4.9.1 into 4.10.0 (#102) (#121) * 2.13 release notes (opensearch-project#1832) (opensearch-project#1837) * 2.13 release notes * Fix style and package * Fix style and package * Fix link --------- (cherry picked from commit 7c8058f) * Add required ml permissions to support new roles (opensearch-project#1838) (opensearch-project#1844) * Add required ml permissions to support new roles * Add ml permissions * Remove internal ml action permissions * Add back internal ml action permissions --------- (cherry picked from commit f0cd1cf) * Add compatibility with OpenSearch 2.11.0 (#31) * Bump version Security Dashboards Plugin 2.9.0.0 (#21) * Upgrade to version 2.8.0 of Security Dashboards Plugin (#20) * Patch actions and workflows. Skip integration tests that fail (#4) * Change plugin name in actions and workflows * Patch install-dashboards action * Change jest config path * Skip tests --------- * Change Wazuh logo and titles (#3) * Change Wazuh logo and titles * Don't force custom logo to have 100% width * Add comment * Fix lint * Fix prettier * Update snapshots --------- * Disable tenant popup (#5) * Replace readme (#16) * Replace readme * Replace Opensearch to Wazuh * Update README.md --------- * Add GitHub workflow for automated build (#15) * Manual build * Workflow for automated build * Update .github/workflows/dev-environment.yml --------- * Create codeql.yml * Revert changes in cypress-test.yml * Revert changes in integration-test.yml * Fix integration test * Fix cypress test tenancy disabled --------- * Skip overview page test * Skip test for issue * Skip test for issue --------- * Fix home image and lint * Fix lint * Fix snapshot * Fix integration test * Revert selector --------- * Update of the GitHub actions to create the packages (#33) * Update Build manual Github action * Add wazuh version in package.json * Update package.json --------- * Change order of security in left menu (#36) * Change order of security in left menu * Fix cypress test * Fix repository tests (#46) * Initial commit * Removed Windows and Mac tests * Fix oidc test * Fix SAML test * Bump 4.9.0 to revision 01 (#56) * chore: bump 4.9.0 revision 02 (#64) * Bump revision 03 (#74) * chore: bump to 4.9.1 revision 00 (#76) * Update the security policy (#95) * change: update the security policy * fix: security policy * Update repository security policy (#97) * chore(bump): revision 4.9.1 01 (#99) --------- * Update all workflows to use actions/checkout@v4 for improved compatibility and performance * Update GitHub workflows to use actions/setup-java@v4 with Temurin distribution for better support and performance * Update workflows to use derek-ho/start-opensearch@v6 for enhanced features and compatibility across all GitHub actions * Update workflows to use derek-ho/setup-opensearch-dashboards@v3 for better features and compatibility across all GitHub actions * Update workflows to use tibdex/[email protected] for improved installation retrieval method and enhanced functionality * Update workflows to use actions/upload-artifact@v4 for improved artifact upload and added overwrite functionality * Update run-cypress-tests action to use Wandalen/wretry.action@v3 for improved reliability in test retries * Update backport workflow to use VachaShah/backport@v2 for enhanced features and improved functionality in backporting changes * Update Wazuh version to 4.10.0 with revision 03 * Update Wazuh revision to "00" in package.json * Fix missing newline at end of package.json file * Update SECURITY.md to redirect vulnerability reports to OpenSearch Security via email * Revise SECURITY.md to establish Wazuh's formal security policy and guidelines for reporting vulnerabilities --------- * chore: bump 4.10.0 rev 05 (#137) * Apply reference name change (#138) * chore(bump): 4.10.0 rev 06 (#141) * Bump revision to 07 (#147) * Bump version 4.10.1 (#157) * chore(bump): 4.10.1 rev 01 (#165) * Bump version to 4.10.2-00 (#169) * Replace the SAML default embedded route redirects with a new default route redirect. (#171) * Saml url default path changes to wz-home * Added pretier * Resolve test * Repair tests --------- --------- * Change the version of cypress to opensearch dashboard version * Fix saml_aut_test.spec.js * Update dev-environment.yml * Update manual-build.yml * Add VERSION.json (#192) --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> * Bump version 4.13.0 (#213) * Merge 4.11.2 into 4.12.0 (#224) (#225) * chore(bump): 4.11.1 rev 01 (#203) * Bump revision to 02 (#209) * Bump version 4.11.2 (#217) * Bump version 4.11.2 * Bump version 4.11.2 * chore(bump): 4.11.2 rev 01 (#219) * chore(bump): 4.11.2 rev 02 (#221) --------- Co-authored-by: Antonio <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> * Repository bumper script development (#234) * add gitignore entry for repository bumper logs Prevents repository bumper log files from being tracked by Git. Improves repository cleanliness and avoids unnecessary clutter. * add repository version bumper script Introduces a shell script to automate version and stage updates across the repository. Includes argument parsing, input validation, version comparison, and file updates for consistent version management. * update manual build workflow version reference Adds a function to update the default version in the manual build workflow file. Logs changes and handles cases where the workflow file is missing. Enhances version consistency across repository workflows. * add stage extraction from VERSION.json Enhances pre-update checks by extracting the 'stage' field from VERSION.json using sed. Validates the extracted value and handles errors, ensuring robustness against missing or null fields. * improve version file update logic Adds conditional checks to update version and stage fields only if changes are detected. Prevents unnecessary modifications and improves logging clarity. * extract revision from package.json in repository bumper Adds logic to retrieve the current revision from package.json using sed. Logs errors if the revision is missing, null, or improperly formatted, and terminates the script to ensure data integrity. * improve version and revision update logic in package.json Adds conditional checks to update version and revision only when changes are needed. Introduces a flag to track modifications and logs success messages only when updates occur. Enhances code reliability and reduces redundant operations. * add conditional check when updating default reference Prevents redundant updates by adding a check to ensure the current version differs from the target version before making changes. Improves script reliability and avoids unnecessary operations. * add README for versioning tools Introduces a README file documenting the usage, functionality, and affected files of the `repository_bumper.sh` script. Provides examples, parameter details, and notes for users. Enhances clarity and usability of versioning tools. * Compatibility with opensearch 2.19.2.0 (#241) * Bump version to 4.14.0 (#258) * Adds automated repository version bumping workflow (#277) * Adds automated repository version bumping workflow * Simplifies workflow by removing tag option and adding push trigger * Removes push trigger from repository bumper workflow * Simplifies repository bumper workflow configuration * Fix repository bumper workflow environment secret (#298) * fix: fixed env secret Signed-off-by: Raul Del Pozo Moreno <[email protected]> * chore: abstracted version Signed-off-by: Raul Del Pozo Moreno <[email protected]> --------- Signed-off-by: Raul Del Pozo Moreno <[email protected]> * Restrict GitHub actions permissions (#299) * Restrict ALL action permissions in the package build workflows * Add content read permission * fix: added admin privilege to PR merge (#310) Signed-off-by: Raul Del Pozo Moreno <[email protected]> * Fix pr permission write (#312) * Fix test * Fix test --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Signed-off-by: Raul Del Pozo Moreno <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> Co-authored-by: Raul Del Pozo Moreno <[email protected]> * feat(session-cookie): Change set default session and cookie TTL to 15 minutes (900000 ms) (#321) If no opensearch_security config for session ttl and cookie ttl, it will use the 15-minute default value Signed-off-by: gonzaarancibia <[email protected]> --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Signed-off-by: Raul Del Pozo Moreno <[email protected]> Signed-off-by: gonzaarancibia <[email protected]> Co-authored-by: Ian Yenien Serrano <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> Co-authored-by: Raul Del Pozo Moreno <[email protected]> Co-authored-by: Gonzalo Arancibia <[email protected]> * Adds version-specific dashboard build workflows (main) (#365) * Adds version-specific dashboard build workflows * Updates workflow defaults and names * Adds compatibility request issue template --------- Signed-off-by: Ian Yenien Serrano <[email protected]> Signed-off-by: Álex Ruiz <[email protected]> Signed-off-by: Nicolas Agustin Guevara Pihen <[email protected]> Signed-off-by: Raul Del Pozo Moreno <[email protected]> Signed-off-by: gonzaarancibia <[email protected]> Co-authored-by: Álex Ruiz <[email protected]> Co-authored-by: Federico Rodriguez <[email protected]> Co-authored-by: Nicolas Agustin Guevara Pihen <[email protected]> Co-authored-by: Antonio <[email protected]> Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Co-authored-by: Stephen Crawford <[email protected]> Co-authored-by: Sicheng Song <[email protected]> Co-authored-by: Guido Modarelli <[email protected]> Co-authored-by: Tostti <[email protected]> Co-authored-by: JuanGarriuz <[email protected]> Co-authored-by: Raul Del Pozo Moreno <[email protected]> Co-authored-by: Gonzalo Arancibia <[email protected]>
1 parent b1797c7 commit 2699600

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1879
-148
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Compatibility request
3+
about: Suggest supporting a new platform version OpenSearch
4+
title: 'Compatibility with OpenSearch (version)'
5+
labels: request/operational, level/task, type/maintenance
6+
assignees: ''
7+
---
8+
9+
## Description
10+
11+
We need to ensure the UI compatibility with the next version of OpenSearch vX.X.
12+
This update is still being discussed, but we need to be aware of potential issues.
13+
14+
For that, we need to:
15+
16+
- [ ] Review opensearch and opensearch-dashboard latest stable changelog.
17+
- [ ] Identify improvements and potential impact on the UI.
18+
- [ ] Create new tracking and development branches.
19+
- [ ] Develop a testing environment to verify our components would work under this new build.
20+
21+
## Issues
22+
23+
- _List here the detected issues_

.github/actions/run-cypress-tests/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717
default: ''
1818

1919
runs:
20-
using: "composite"
20+
using: 'composite'
2121
steps:
2222
- name: Set env
2323
run: |
@@ -34,20 +34,20 @@ runs:
3434
plugin-name: ${{ env.PLUGIN_NAME }}
3535
plugin-version: ${{ env.PLUGIN_VERSION }}
3636
download-location: ${{ env.PLUGIN_NAME }}
37-
37+
3838
- name: Run Opensearch with A Single Plugin
3939
uses: derek-ho/start-opensearch@v6
4040
with:
4141
opensearch-version: ${{ env.OPENSEARCH_VERSION }}
42-
plugins: "file:$(pwd)/opensearch-security.zip"
42+
plugins: 'file:$(pwd)/opensearch-security.zip'
4343
security-enabled: true
4444
admin-password: ${{ env.OPENSEARCH_INITIAL_ADMIN_PASSWORD }}
4545
security_config_file: ${{ inputs.security_config_file }}
4646
jdk-version: 21
4747

4848
# OSD bootstrap
4949
- name: Run Dashboard with Security Dashboards Plugin
50-
uses: derek-ho/setup-opensearch-dashboards@v1
50+
uses: derek-ho/setup-opensearch-dashboards@v3
5151
with:
5252
plugin_name: security-dashboards-plugin
5353
opensearch_dashboards_yml: ${{ inputs.dashboards_config_file }}
@@ -81,7 +81,7 @@ runs:
8181
shell: bash
8282

8383
# Check if OSD is ready with a max timeout of 600 seconds
84-
- name : Check If OpenSearch Dashboards Is Ready
84+
- name: Check If OpenSearch Dashboards Is Ready
8585
if: ${{ runner.os == 'Linux' }}
8686
run: |
8787
cd ./OpenSearch-Dashboards
@@ -100,11 +100,11 @@ runs:
100100
shell: bash
101101

102102
- name: Run Cypress Tests with retry
103-
uses: Wandalen/wretry.action@v3.3.0
103+
uses: Wandalen/wretry.action@v3
104104
with:
105105
attempt_limit: 5
106106
attempt_delay: 2000
107107
command: |
108108
cd ./OpenSearch-Dashboards/plugins/security-dashboards-plugin
109109
yarn add cypress --save-dev
110-
eval ${{ inputs.yarn_command }}
110+
eval ${{ inputs.yarn_command }}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# 📝 Based on: `4_builderprecompiled_base-dev-environment.yml`
2+
#
3+
# 📦 Manual Build Workflow for Wazuh Security Dashboard Plugin
4+
#
5+
# ⚡ Overview:
6+
# This workflow builds and tests production-ready packages for Wazuh Security Dashboard Plugin,
7+
# either manually or triggered by other workflows.
8+
#
9+
# 🚀 Key Features:
10+
# - 🖇️ Manual or Automated Builds: Supports manual execution or invocation from other workflows,
11+
# specifying any valid code reference (branch, tag, or commit SHA).
12+
# - 🏗️ Production-Ready Package Generation: Builds a production-ready package from the provided code reference.
13+
# - 🌐 Reusable Build Environment: Reuses a preconfigured build environment, ensuring consistency and easier maintenance.
14+
#
15+
16+
name: (4.x) Build app package (on demand)
17+
on:
18+
workflow_call:
19+
inputs:
20+
reference:
21+
required: true
22+
type: string
23+
description: Source code reference (branch, tag or commit SHA)
24+
default: 4.14.0
25+
workflow_dispatch:
26+
inputs:
27+
reference:
28+
required: true
29+
type: string
30+
default: 4.14.0
31+
description: Source code reference (branch, tag or commit SHA)
32+
33+
jobs:
34+
# Build an app package from the given source code reference.
35+
build:
36+
name: Build app package
37+
uses: ./.github/workflows/4_builderprecompiled_base-dev-environment.yml
38+
permissions:
39+
pull-requests: write
40+
with:
41+
reference: ${{ inputs.reference }}
42+
command: 'yarn build'
43+
artifact_name: 'wazuh-security-dashboards-plugin'
44+
artifact_path: './wazuh-security-plugin/build'
45+
secrets: inherit
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
# 📚 Base Workflow - Environment Setup and Command Execution
2+
#
3+
# ⚡ Overview:
4+
# This workflow serves as a reusable base for other workflows, providing a
5+
# standardized environment to execute custom commands (e.g., `yarn build`, `yarn test`)
6+
# on source code fetched from a specified Git reference.
7+
#
8+
# 🚀 Key Features:
9+
# - 💻 Docker-Based Environment Setup: Prepares a Docker environment with OpenSearch Dashboards or Kibana.
10+
# - ⚙️ Custom Command Execution: Runs any specified command on the downloaded source code.
11+
# - 📦 Artifact and Coverage Upload: Uploads build artifacts and test coverage results to GitHub when configured.
12+
#
13+
# 🔗 Designed for: Easy integration and reuse by other workflows.
14+
15+
name: (4.x) Base workflow - Environment
16+
17+
on:
18+
workflow_call:
19+
inputs:
20+
reference:
21+
required: true
22+
type: string
23+
default: 4.14.0
24+
description: Source code reference (branch, tag or commit SHA).
25+
command:
26+
required: true
27+
type: string
28+
default: 'yarn build'
29+
description: Command to run in the environment
30+
docker_run_extra_args:
31+
type: string
32+
default: ''
33+
description: Additional paramaters for the docker run command.
34+
required: false
35+
artifact_name:
36+
type: string
37+
default: ''
38+
description: Artifact name (will be automatically suffixed with .zip)
39+
required: false
40+
artifact_path:
41+
type: string
42+
default: ''
43+
description: Folder to include in the archive.
44+
required: false
45+
notify_jest_coverage_summary:
46+
type: boolean
47+
default: false
48+
required: false
49+
50+
jobs:
51+
# Deploy the plugin in a development environment and run a command
52+
# using a pre-built Docker image, hosted in Quay.io.
53+
deploy_and_run_command:
54+
permissions:
55+
pull-requests: write
56+
name: Deploy and run command
57+
runs-on: ubuntu-24.04
58+
steps:
59+
- name: Step 01 - Download the plugin's source code
60+
uses: actions/checkout@v4
61+
with:
62+
repository: wazuh/wazuh-security-dashboards-plugin
63+
ref: ${{ inputs.reference }}
64+
path: wazuh-security-plugin
65+
66+
# Fix source code ownership so the internal user of the Docker
67+
# container is also owner.
68+
- name: Step 02 - Change code ownership
69+
run: sudo chown 1000:1000 -R wazuh-security-plugin;
70+
71+
- name: Step 03 - Set up the environment and run the command
72+
run: |
73+
# Read the platform version from the package.json file
74+
echo "Reading the platform version from the package.json...";
75+
platform_version=$(jq -r '.opensearchDashboards.version | select(. != null)' wazuh-security-plugin/package.json);
76+
echo "Plugin platform version: $platform_version";
77+
78+
# Get Wazuh version and concatenate with platform version
79+
wazuh_version=$(jq -r '.wazuh.version' wazuh-security-plugin/package.json);
80+
echo "Wazuh version: $wazuh_version";
81+
82+
# Concatenate versions in format: <Opensearch version>-<Wazuh version>
83+
combined_version="${platform_version}-${wazuh_version}";
84+
echo "Combined platform version: $combined_version";
85+
86+
# Up the environment and run the command
87+
docker run -t --rm \
88+
-e OPENSEARCH_DASHBOARDS_VERSION=${combined_version} \
89+
-v `pwd`/wazuh-security-plugin:/home/node/kbn/plugins/wazuh-security-plugin \
90+
${{ inputs.docker_run_extra_args }} \
91+
quay.io/wazuh/osd-dev:${combined_version} \
92+
bash -c '
93+
yarn config set registry https://registry.yarnpkg.com;
94+
cd /home/node/kbn/plugins/wazuh-security-plugin && yarn && ${{ inputs.command }};
95+
'
96+
- name: Get the plugin version and format reference name
97+
run: |
98+
echo "githubReference=$(echo ${{ inputs.reference }} | sed 's/\//-/g')" >> $GITHUB_ENV
99+
echo "version=$(jq -r '.wazuh.version' $(pwd)/wazuh-security-plugin/package.json)" >> $GITHUB_ENV
100+
echo "revision=$(jq -r '.wazuh.revision' $(pwd)/wazuh-security-plugin/package.json)" >> $GITHUB_ENV
101+
102+
- name: Step 04 - Upload artifact to GitHub
103+
if: ${{ inputs.artifact_name && inputs.artifact_path }}
104+
uses: actions/upload-artifact@v4
105+
with:
106+
name: ${{ inputs.artifact_name }}_${{ env.version }}-${{ env.revision }}_${{ env.githubReference }}.zip
107+
path: ${{ inputs.artifact_path }}
108+
overwrite: true
109+
110+
- name: Step 05 - Upload coverage results to GitHub
111+
if: ${{ inputs.notify_jest_coverage_summary && github.event_name == 'pull_request' }}
112+
uses: AthleticNet/[email protected]
113+
with:
114+
token: ${{ secrets.GITHUB_TOKEN }}
115+
path: ./wazuh-security-plugin/target/test-coverage/coverage-summary.json
116+
title: 'Code coverage (Jest)'
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
name: Repository bumper
2+
run-name: Bump ${{ github.ref_name }} (${{ inputs.id }})
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: 'Target version (e.g. 1.2.3)'
9+
default: ''
10+
required: false
11+
type: string
12+
stage:
13+
description: 'Version stage (e.g. alpha0)'
14+
default: ''
15+
required: false
16+
type: string
17+
issue-link:
18+
description: 'Issue link in format https://github.com/wazuh/<REPO>/issues/<ISSUE-NUMBER>'
19+
required: true
20+
type: string
21+
id:
22+
description: 'Optional identifier for the run'
23+
required: false
24+
type: string
25+
26+
jobs:
27+
bump:
28+
name: Repository bumper
29+
runs-on: ubuntu-22.04
30+
permissions:
31+
contents: write
32+
pull-requests: write
33+
34+
env:
35+
CI_COMMIT_AUTHOR: wazuhci
36+
CI_COMMIT_EMAIL: [email protected]
37+
CI_GPG_PRIVATE_KEY: ${{ secrets.CI_WAZUHCI_GPG_PRIVATE }}
38+
GH_TOKEN: ${{ secrets.CI_WAZUHCI_BUMPER_TOKEN }}
39+
BUMP_SCRIPT_PATH: tools/repository_bumper.sh
40+
BUMP_LOG_PATH: tools/
41+
42+
steps:
43+
- name: Dump event payload
44+
run: |
45+
cat $GITHUB_EVENT_PATH | jq '.inputs'
46+
47+
- name: Set up GPG key
48+
id: signing_setup
49+
run: |
50+
echo "${{ env.CI_GPG_PRIVATE_KEY }}" | gpg --batch --import
51+
KEY_ID=$(gpg --list-secret-keys --with-colons | awk -F: '/^sec/ {print $5; exit}')
52+
echo "gpg_key_id=$KEY_ID" >> $GITHUB_OUTPUT
53+
54+
- name: Set up git
55+
run: |
56+
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
57+
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
58+
git config --global commit.gpgsign true
59+
git config --global user.signingkey "${{ steps.signing_setup.outputs.gpg_key_id }}"
60+
echo "use-agent" >> ~/.gnupg/gpg.conf
61+
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
62+
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
63+
echo RELOADAGENT | gpg-connect-agent
64+
export DEBIAN_FRONTEND=noninteractive
65+
export GPG_TTY=$(tty)
66+
67+
- name: Checkout repository
68+
uses: actions/checkout@v4
69+
with:
70+
# Using workflow-specific GITHUB_TOKEN because currently CI_WAZUHCI_BUMPER_TOKEN
71+
# doesn't have all the necessary permissions
72+
token: ${{ env.GH_TOKEN }}
73+
74+
- name: Determine branch name
75+
id: vars
76+
env:
77+
VERSION: ${{ inputs.version }}
78+
STAGE: ${{ inputs.stage }}
79+
run: |
80+
script_params=""
81+
version=${{ env.VERSION }}
82+
stage=${{ env.STAGE }}
83+
84+
# Both version and stage provided
85+
if [[ -n "$version" && -n "$stage" ]]; then
86+
script_params="--version ${version} --stage ${stage}"
87+
elif [[ -z "$version" && -n "$stage" ]]; then
88+
script_params="--stage ${stage}"
89+
fi
90+
91+
issue_number=$(echo "${{ inputs.issue-link }}" | awk -F'/' '{print $NF}')
92+
BRANCH_NAME="enhancement/wqa${issue_number}-bump-${{ github.ref_name }}"
93+
echo "branch_name=$BRANCH_NAME" >> $GITHUB_OUTPUT
94+
echo "script_params=${script_params}" >> $GITHUB_OUTPUT
95+
96+
- name: Create and switch to bump branch
97+
run: |
98+
git checkout -b ${{ steps.vars.outputs.branch_name }}
99+
100+
- name: Make version bump changes
101+
run: |
102+
echo "Running bump script"
103+
bash ${{ env.BUMP_SCRIPT_PATH }} ${{ steps.vars.outputs.script_params }}
104+
105+
- name: Commit and push changes
106+
run: |
107+
git add .
108+
git commit -m "feat: bump ${{ github.ref_name }}"
109+
git push origin ${{ steps.vars.outputs.branch_name }}
110+
111+
- name: Create pull request
112+
id: create_pr
113+
run: |
114+
gh auth setup-git
115+
PR_URL=$(gh pr create \
116+
--title "Bump ${{ github.ref_name }} branch" \
117+
--body "Issue: ${{ inputs.issue-link }}" \
118+
--base ${{ github.ref_name }} \
119+
--head ${{ steps.vars.outputs.branch_name }})
120+
121+
echo "Pull request created: ${PR_URL}"
122+
echo "pull_request_url=${PR_URL}" >> $GITHUB_OUTPUT
123+
124+
- name: Merge pull request
125+
run: |
126+
# Any checks for the PR are bypassed since the branch is expected to be functional (i.e. the bump process does not introduce any bugs)
127+
gh pr merge "${{ steps.create_pr.outputs.pull_request_url }}" --merge --admin
128+
129+
- name: Show logs
130+
run: |
131+
echo "Bump complete."
132+
echo "Branch: ${{ steps.vars.outputs.branch_name }}"
133+
echo "PR: ${{ steps.create_pr.outputs.pull_request_url }}"
134+
echo "Bumper scripts logs:"
135+
cat ${BUMP_LOG_PATH}/repository_bumper*log

0 commit comments

Comments
 (0)