Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with OpenSearch 2.6.0 #5263

Closed
6 tasks done
AlexRuiz7 opened this issue Mar 7, 2023 · 2 comments
Closed
6 tasks done

Compatibility with OpenSearch 2.6.0 #5263

AlexRuiz7 opened this issue Mar 7, 2023 · 2 comments
Assignees
Labels
compatibility Issues related to the App compatibility with the platforms

Comments

@AlexRuiz7
Copy link
Member

AlexRuiz7 commented Mar 7, 2023

Description

As Wazuh Dashboard is based on OpenSearch Dashboards, we need to ensure the UI compatibility with the next version of OpenSearch v2.6.0.

For that, we need to:

  • Review the release notes of OpenSearch and OpenSearch Dashboards for this version.
  • Identify improvements and potential impact on the UI.
  • Develop a testing environment to verify our components would work under this new build.
  • Test the latest Wazuh plugin in this new version.

Issues

@AlexRuiz7 AlexRuiz7 added the compatibility Issues related to the App compatibility with the platforms label Mar 7, 2023
@AlexRuiz7 AlexRuiz7 self-assigned this Mar 7, 2023
@AlexRuiz7
Copy link
Member Author

AlexRuiz7 commented Mar 7, 2023

Release notes and potential issues

2.5.0

Potential issues:

  • [Table Visualization] Refactor table visualization using React and DataGrid component

Should not impact any existing functionality, but worth taking it into account when testing.

  • [Table Visualization] Fix a problem with table visualizations that prevented URLs from being rendered correctly

URLs displayed in tables are now rendered correctly and not as strings. Some security concerns, read the pull request for more details.

Interesting issues:

  • [CVE-2022-25912] Bump simple-git from 3.4.0 to 3.15.0
  • [CVE-2022-35256] Bump node version from 14.20.0 to 14.20.1
  • [CVE-2022-46175] Bump json5 version from 1.0.1 and 2.2.1 to 1.0.2 and 2.2.3
  • [VisBuilder] Fix an issue that caused a crash when certain filters were added to a table visualization
  • [VisBuilder] Fix errors throws when pipeline aggregations, like cumulative sum, were used in VisBuilder
  • [VisBuilder] Create global data persistence for VisBuilder
  • [VisBuilder] Introduce Redux store persistence
  • [VisBuilder] Enable persistence for app filter and query without using state containers
  • Documentation

2.6.0

Potential issues:

  • None

Interesting issues:

  • [CVE-2022-37599] Bump loader-utils from 2.0.3 to 2.0.4
  • [CVE-2022-37603] Bump loader-utils from 2.0.3 to 2.0.4
  • [CVE-2022-25860] Bump simple-git from 3.15.1 to 3.16.0
  • [CVE-2022-25881] Resolve http-cache-semantics from 4.1.0 to 4.1.1
  • [Security] Bump hapi/statehood from 7.0.3 to 7.0.4
  • [CVE-2023-25166] Bump formula from 3.0.0 to 3.0.1
  • [CVE-2020-36632] Bump flat from 4.1.1 to 5.0.2
  • [CVE-2023-25653] Bump node-jose from 2.1.1 to 2.2.0
  • [CVE-2022-24999] Resolve qs from 6.5.3 to 6.11.0
  • [CVE-2022-25758] Bump node-sass from 6.0.1 to 7.0.3 and sass-loader from 10.2.1 to 10.4.1 to bump scss-tokenizer from 0.2.3 to 0.4.3
  • [CVE-2020-24025] Bump node-sass from 6.0.1 to 7.0.3
  • [Multiple DataSource] Add support for SigV4 authentication

@AlexRuiz7
Copy link
Member Author

AlexRuiz7 commented Mar 7, 2023

Development environment and testing

A development environment has been added in aff220a

The development version of Wazuh is installed correctly in development mode:
image

image

There is a visual problem in the Top 5 users table at FIM::Dashboard, as it overflows from the parent element. This happens in any resolution and browser.

image

No more problems have been found. All our unit tests pass.

Installing and testing in production

I've built a package of the plugin for OpenSearch Dashboards 2.6.0. It installs correctly, and everything seems to work as expected:

  • Wazuh app version and platform version
    image

  • Modules directory
    image

  • Security events (dashboard)
    image

  • Security events (events)
    image

  • Agents overview dashboard
    image

  • Agent's dashboard
    image


However, I found this error in the console when entering the app:
image

reportsDashboards.plugin.js:24 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'split')
    at _callee4$ (reportsDashboards.plugin.js:24:201073)
    at tryCatch (reportsDashboards.plugin.js:24:180012)
    at Generator.invoke [as _invoke] (reportsDashboards.plugin.js:24:183963)
    at Generator.next (reportsDashboards.plugin.js:24:181151)
    at asyncGeneratorStep (reportsDashboards.plugin.js:1:73707)
    at _next (reportsDashboards.plugin.js:1:74018)
    at reportsDashboards.plugin.js:1:74168
    at new Promise (<anonymous>)
    at reportsDashboards.plugin.js:1:73930
    at checkURLParams (reportsDashboards.plugin.js:24:202215)

We do not use this plugin and our reports work as expected, so we can omit this message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Issues related to the App compatibility with the platforms
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant