-
Notifications
You must be signed in to change notification settings - Fork 186
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 Elastic 8 #4567
Comments
Elastic 8.0Breaking changes
Deprecations
|
Elastic 8.1Breaking changesDeprecations
Development environments8.1.0 versionI saw that from 8.1.0 the kibana_legacy folder is removed so 8.0.0 and 8.0.1 would not have that problem but if they have another one that I was investigating today but still can not solve. 8.1.3 versionIn 8.1.3 the application runs but does not show the Wazuh plugin |
Elastic 8.2Breaking changes
Development environmentsIn 8.2.3 the application runs but does not show the Wazuh plugin |
Elastic 8.3Breaking changes
Deprecations
Development environmentsIn 8.3.3 the application runs but does not show the Wazuh plugin |
Elastic 8.4Breaking changes
Deprecations
Development environmentsIn 8.4.2 the application runs but does not show the Wazuh plugin In version 8.4.2 of elastic we identified the reasons why the Wazuh plugin is not showing, one of them was because of the
Resolved conflicts with the |
Testing to run Wazuh in Kibana 8.4.3. Change the imports from @kbn/i18n/react to @kbn/i18n-react in the files:
Problems found with the To solve this problem, the plugin has been copied in Kibana integrations folder and the paths where it was being used have been modified. At this point Kibana is up but the Wazuh app is not visible and there are no errors in the Kibana logs. As far as I can see, in Kibana documentation, it is said that you have to migrate from kibana_legacy to kibanaPlatform. This migration, from what they say, is not an easy task, they provide some steps to follow, but the actual amount of changes depends on each application. This would translate in having another branch in the repository to be compatible with 8.x versions, from what I understand, which would mean another branch to maintain. |
UpdateI was researching and I got the mentioned problems.
I could solve some of these problems:
After these fixes, the plugin doesn't throw errors when transpiling the code. But, it doesn't work. In my first view, there are other required changes:
Unfortunately, these errors are the first ones, and we can't see any more errors until we solve them. We have to solve each error until we don't get any errors. After solving these problems, we have to test the UI and each functionality (monitoring, statistics, etc...) I attach a patch that contains some fixes and workarounds to go over more errors as the first contact: |
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
What is the current (as well as any future plans) status of Wazuh Kibana plugin compatibility with OpenSearch Dashboards (Kibana fork; ex OpenDistro)? |
@carpetmaker Wazuh Dashboard is based on OpenSearch Dashboards and already includes a compatible plugin. 4.3.x versions are based in OpenSearch 1.2.0. We do not plan to provide a standalone plugin for OpenSearch Dashboards, as we already provide a built-in plugin for Wazuh Dashboard. Btw, OpenDistro (and later on OpenSearch) was forked from Elastic 7.10.2 |
We are going to work using as base the last current version of Kibana: We will create a development branch where we will implement the solutions to the compatibility problems. Development branch: https://github.com/wazuh/wazuh-kibana-app/tree/4.4-8.5-dev Tasks
Compatibility issues❗ The following table lists the problems found during the entire compatibility testing process. As some of the problems are resolved, more may appear when testing some features not accessible until a previous problem has been fixed. This means the current list doesn't show all the compatibility problems.
|
Get the platform index nameThe platform configuration I was reviewing the related issues and PRs:
And I found a way to get this index. This can be obtained from the |
Applications cannot be registered after "setup"The plugin setup should be synchronous. In the plugin for previous Kibana versions, before the plugin registration, we do a request to get the customized logos and register the plugin with the customized logos, it avoids the logos change on the UI. I added a commit to register the plugin using the default images, and after, when the plugin is mounted on the UI, could change the logos causing a blink. Tasks
|
|
|
|
|
FieldIcon, FieldButton components are missingThese components were imported from the In Kibana 8.5.0, they are not available there: https://github.com/elastic/kibana/blob/v8.5.0/src/plugins/kibana_react/public/index.ts. It seems they were moved to |
The table row of results in the Events tabs is not renderedIf found a problem with the creation of the angular directive: DiggingI was researching and this could be related to the CSP (Content Security Policy) of the page. This is set to disallow the eval of JavaScript code. Comparison in: The difference that causes the problem in Kibana 8.5.0 is that it doesn't have the The error is coming from the More information about the CSP (Content security policy): https://developer.mozilla.org/es/docs/Web/HTTP/CSP Update 2022/12/02 The I reviewed the configuration of my Kibana in development mode, but it doesn't set it. So I was researching and I found the csp.disableUnsafeEval: false With this patch, I got in Kibana development mode, that the rows of the table in the Events tabs are rendered (with some problems that require to be researched): But, this is a possible problem that could get the users if they set the setting in the csp.disableUnsafeEval: true |
Elastic has releases v8.5.2, v8.5.3 and a v8.7.0 is on the way. |
Compatibility current statusThere are 2 big things that need much effort:
❗ It is important to know that after solving the mentioned problems, others could appear when exploring other sections or features of the Wazuh plugin. Unfortunately, some of the unsolved problems block us to check other plugin functionalities, for this reason, we need to resolve them before proceeding. |
Hi @Desvelao We have faced the same issue, but we're on elastic
We did a quick tweak to let the plugin work in Kibana Unfortunately we receive a
I reckon this is because the Kibana plugin expects Wazuh I would appreciate if Wazuh could provide guidance how to install with the current versions of the ELK stack or provide explicit guidance that the endeavor is not going to work. From the top post it seems elastic Maybe you have a guide somewhere that includes a compatible wazuh server with a kibana plugin compiled against ELK 8.5.x? |
Hi @florian-besser, What branch did you use to build the package? The method to authenticate in Wazuh API 4.4.0 will be unified to Comparison: This pull request (#4103) changed the authentication for plugin compatibles with Wazuh API 4.4.0. These changes are included in the development branch related to this issue. You should know that there is no plugin compatible with Kibana 8.x In this issue, we tried previous versions of the Wazuh plugin in Kibana 8.x. We detected some compatibility problems that need fixes so we were working in a development branch |
I used After trying to build wazuh Not my first choice as we're now using a bit too much in terms of resources - but hey, I got something running. So maybe if someone else sees this thread: Stick to what works (and specifically what is documented to work!) or then be ready to start developing / contributing. |
Thank you for troubleshooting, it has been beneficial. I would like to mention that even after building the plugin from the source you provided, it is still encountering the same issue with version Kibana 8.4.2. |
Hi @sqrtZeroKnowledge , Initially, I was working on fixing the compatibility problems with Kibana 8.4.2. I created a patch with some fixes, but there are more problems. Then, we moved to fix the compatibility problems with Kibana 8.5.0, but the issue was stopped and it is currently on hold. This means there are unsolved problems and we didn't test the plugin functionality. We didn't try to build the plugin from the development branch we were working on, so it could have some problems we didn't identify. What problem are you referring to? |
Thanks for your well detailed explanation, The plug-in well installed for me but its not showing in the route uri of kibana /app/wazuh. |
If you don't see the Wazuh plugin in the side menu of Kibana, this could mean there is a problem when trying to register the plugin. The Kibana logs could display any related information about that. If the plugin appears in the side menu and when you access it, the page is blank, then this could mean there is some problem when mounting the application in the DOM. Unfortunately, the current work done only fixes some problems (patch and development branch). If you need a stable plugin, then use an officially released plugin. |
Closing because we're going to use an integration. This will improve user experience for elastic users, adopting new elastic features quickly. Related issue: |
Description
We need to ensure the UI compatibility with the next version of Elastic 8.
This update is still being discussed, but we need to be aware of potential issues.
For that, we need to:
For each of the following versions:
We'll focus in testing the latest patch version of each minor, these in bold. We'll skip the remaining versions.
Issues
Documentation
The text was updated successfully, but these errors were encountered: