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

Testing compatibility with Kibana 7.13.4 and 7.14.2 #3310

Closed
5 tasks done
frankeros opened this issue May 28, 2021 · 9 comments
Closed
5 tasks done

Testing compatibility with Kibana 7.13.4 and 7.14.2 #3310

frankeros opened this issue May 28, 2021 · 9 comments
Assignees

Comments

@frankeros
Copy link
Contributor

frankeros commented May 28, 2021

Wazuh Elastic
4.2.2 7.13.4/7.14.2

Description
Testing compatibility with Kibana 7.13.0

Test type:

  • Regression

Test with browsers:

  • Chrome
  • Firefox
  • Safari

Test with the theme:

  • Light
  • Dark

Checks:

  • General checks
  • X-Pack checks

Issues related:

@frankeros frankeros added the pending-PO Taks pending for PO validation and priorization label May 28, 2021
@MauGaP MauGaP changed the title Testing compatibility with Kibana 7.13.0 Testing compatibility with Kibana 7.13.4 and 7.14.2 Sep 22, 2021
@Machi3mfl
Copy link
Member

Kibana 7.13.4 and Wazuh Kibana 4.2.2 incompatibility.

  • Implemented xpack environment 4.2.2-rc1-7.13.4 in production mode
  • Implemented xpack environment 4.2.2-rc1-7.13.4 in development mode

Researching about compatibility problem (In progress)

Errors Screenshots in UI:

Screen Shot 2021-09-23 at 15 53 41

Screen Shot 2021-09-23 at 15 41 50

Debugging errors

Catching error in console
Screen Shot 2021-09-23 at 15 53 16

Error in chunk file
logInspectorRequest (https://localhost:5601/9007199254740991/bundles/plugin/wazuh/4.2.2-4203-1/wazuh.chunk.1.js:211117:118)
Screen Shot 2021-09-23 at 15 51 15

Error in kibana-discover > logInspectorRequest > getRequestInspectorStats
Screen Shot 2021-09-23 at 15 52 12

@matiasmoreno876
Copy link
Contributor

Kibana 7.14.2 and Wazuh Kibana 4.2.2 incompatibility.

  • Implemented xpack environment 4.2.2-rc1-7.14.2 in production mode
  • Implemented xpack environment 4.2.2-rc1-7.14.2 in development mode

Researching about compatibility problem (In progress)

When we enter the main screen of the health check, the app cannot advance even though the checks have been carried out correctly

Errors Screenshots in UI:

image

image

image

@Machi3mfl
Copy link
Member

Machi3mfl commented Sep 24, 2021

Changes Notes Kibana 7.11.2 to 7.13.4 - Resolving incompatibility

Error in kibana/src/plugins/data/common/search/search_source/inspect/inspector_stats.ts > getRequestInspectorStats

Screen Shot 2021-09-23 at 15 41 50

  • function getRequestInspectorStats is not public in new version. Not exported

Posible Solution: Copy the function and pasted in wazuh kibana-services.js

Before - After

Screen Shot 2021-09-24 at 13 12 05

Error in /kibana/src/plugins/data/common/search/search_source/search_source.ts

Screen Shot 2021-09-24 at 13 18 39

  • function $scope.searchSource.getSearchRequestBody() changed to sync (before async)

Posible Solution: remove .then in kibana-discover.js

Before - After

Screen Shot 2021-09-24 at 13 11 09

@matiasmoreno876
Copy link
Contributor

Wazuh 4.2.2 status update and Kibana 7.14.2 in development mode

Currently the application runs in development mode with the changes made as detailed by @Machi3mfl above.

screenshot

image

image

image

But when we want to generate a package to test in production environments, we get the following error:

image

image

@CPAlejandro
Copy link
Contributor

CPAlejandro commented Sep 27, 2021

Bugs and issues found in 7.13.4

  • When we switch the size of the windows in Agent pannel, this error appear:
    image (21)

  • In the Wazuh Menu same Pannels like Management or Setting appear in a different form
    image (22)

Current feedback:
I have tested all tests that don't involve the Events part that are being fixed in this PR for Chrome in Kibana 7.13.4

@CPAlejandro
Copy link
Contributor

CPAlejandro commented Sep 28, 2021

We have found this error while we tried to build a package (with yarn build) of the app for Kibana 7.14.2:
image

We found a solution following these steps:

  • Modify the file: /src/plugins/discover/application/apps/main/components/layout/discover_layout.scss
  • Change @import 'src/core/public/mixins --> @import '../../../../../../../../core/public/mixins';

@matiasmoreno876
Copy link
Contributor

matiasmoreno876 commented Sep 29, 2021

Bugs and issues found in 7.14.2

Reporting
graphics are not displayed

Should work with no custom filters.

Should work with no custom filters

Using custom filters, the report must apply the custom filters.

Using custom filters, the report must apply the custom filters

Using custom filters and custom query, the report must apply the custom filters and the custom query.

Using custom filters and custom query, the report must apply the custom filters and the custom query

Using a custom query, the report must apply the custom query.

Using a custom query, the report must apply the custom query

Agents Preview
Interactive screen breaks

Changing OS should refresh the snippet in the interactive guide.

Changing OS should refresh the snippet in the interactive guide

@frankeros frankeros removed the pending-PO Taks pending for PO validation and priorization label Oct 4, 2021
@frankeros frankeros reopened this Oct 4, 2021
@Desvelao
Copy link
Member

Desvelao commented Oct 29, 2021

Manual testing 4.2.4-7.13.4 - No security - Google Chrome

I found the next problems:

UI

  • Menu

    • Section title color
      image
      image
  • Management directory

    • Missing panel titles
      image
      image
  • Modules/Security Configuration Assessment

    • Missing panel titles
      image
      image
  • Buttons

    • Health check. Refresh button has a border when it should not
      image
    • Modules//Events. Expand document has a border when it should not
      image

Behavior

  • Index patterns
    The index patterns added manually which match with indices name of Wazuh alerts are not displayed in the UI. The index pattern selector doesn't appear.

I was researching a little bit and I saw when the app gets all the index patterns to check if they are compatible with the Wazuh alert's requirements, the attribute fields is empty ([]) and it is required to do the checks. I am not sure if Kibana changed the response or as the index pattern fields are managed. We should research more about this. My environment had Kibana spaces and I am not sure if this could be related.

  • Editing the manager configuration or group's agent.conf'.
    Edit the file, save and click on the back button near to panel title and appears a prompt saying there are unsaved changes.

@CPAlejandro
Copy link
Contributor

CPAlejandro commented Oct 29, 2021

Manual testing 4.2.4-7.10.2 - X-Pack - Safari

Fixs or bugs found:

  • Management/Configuration and Group/Configuration section have the same issue, if you change one of these configuration, save it and then try to click to the return button, the prompt that remind you that the changes didn't been save appear.

  • In an agent section, in Inventory Data, this table could be better space distributed:
    image (4)

  • The index selector could be better shown to imply that what follows is the selector itself, since it can give the impression of being used for different thing
    image (5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants