Skip to content

Commit 03a3e05

Browse files
committed
Merge branch '4.3-7.10-RC2' of https://github.com/wazuh/wazuh-kibana-app into 4.3-7.16
2 parents ab055fc + 8ccc2c4 commit 03a3e05

File tree

152 files changed

+798
-489
lines changed

Some content is hidden

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

152 files changed

+798
-489
lines changed

CHANGELOG.md

+13-8
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ All notable changes to the Wazuh app project will be documented in this file.
5050
- Added columns selector in agents table [#3691](https://github.com/wazuh/wazuh-kibana-app/pull/3691)
5151
- Added a new workflow for create wazuh packages [#3742](https://github.com/wazuh/wazuh-kibana-app/pull/3742)
5252
- Run `template` and `fields` checks in the health check depends on the app configuration [#3783](https://github.com/wazuh/wazuh-kibana-app/pull/3783)
53+
- Added a toast message when there is an error creating a new group [#3804](https://github.com/wazuh/wazuh-kibana-app/pull/3804)
5354

5455
### Changed
5556

@@ -59,14 +60,16 @@ All notable changes to the Wazuh app project will be documented in this file.
5960
- Moved the filterManager subscription to the hook useFilterManager [#3517](https://github.com/wazuh/wazuh-kibana-app/pull/3517)
6061
- Change filter from is to is one of in custom searchbar [#3529](https://github.com/wazuh/wazuh-kibana-app/pull/3529)
6162
- Refactored as module tabs and buttons are rendered [#3494](https://github.com/wazuh/wazuh-kibana-app/pull/3494)
62-
- Updated depracated and new references authd [#3663](https://github.com/wazuh/wazuh-kibana-app/pull/3663)
63+
- Updated the deprecated and added new references authd [#3663](https://github.com/wazuh/wazuh-kibana-app/pull/3663) [#3806](https://github.com/wazuh/wazuh-kibana-app/pull/3806)
6364
- Added time subscription to Discover component [#3549](https://github.com/wazuh/wazuh-kibana-app/pull/3549)
6465
- Refactored as module tabs and buttons are rendered [#3494](https://github.com/wazuh/wazuh-kibana-app/pull/3494)
6566
- Testing logs using the Ruletest Test don't display the rule information if not matching a rule. [#3446](https://github.com/wazuh/wazuh-kibana-app/pull/3446)
6667
- Changed format permissions in FIM inventory [#3649](https://github.com/wazuh/wazuh-kibana-app/pull/3649)
6768
- Changed of request for one that does not return data that is not necessary to optimize times. [#3686](https://github.com/wazuh/wazuh-kibana-app/pull/3686) [#3728](https://github.com/wazuh/wazuh-kibana-app/pull/3728)
69+
- Rebranding. Replaced the brand logos, set module icons with brand colors [#3788](https://github.com/wazuh/wazuh-kibana-app/pull/3788)
6870
- Changed user for sample data management [#3795](https://github.com/wazuh/wazuh-kibana-app/pull/3795)
6971
- Changed agent install codeblock copy button and powershell terminal warning [#3792](https://github.com/wazuh/wazuh-kibana-app/pull/3792)
72+
- Refactored as the plugin platform name and references is managed [#3811](https://github.com/wazuh/wazuh-kibana-app/pull/3811)
7073

7174
### Fixed
7275

@@ -114,19 +117,22 @@ All notable changes to the Wazuh app project will be documented in this file.
114117
- Fixed `Maximum call stack size exceeded` error exporting key-value pairs of a CDB List [#3738](https://github.com/wazuh/wazuh-kibana-app/pull/3738)
115118
- Fixed regex lookahead and lookbehind for safari [#3741](https://github.com/wazuh/wazuh-kibana-app/pull/3741)
116119
- Fixed Vulnerabilities Inventory flyout details filters [#3744](https://github.com/wazuh/wazuh-kibana-app/pull/3744)
120+
- Removed api selector toggle from settings menu since it performed no useful function [#3604](https://github.com/wazuh/wazuh-kibana-app/pull/3604)
121+
- Fixed the requests get [#3661](https://github.com/wazuh/wazuh-kibana-app/pull/3661)
122+
- Fixed Dashboard PDF report error when switching pinned agent state [#3748](https://github.com/wazuh/wazuh-kibana-app/pull/3748)
123+
- Fixed the rendering of the command to deploy new Windows agent not working in some Kibana versions [#3753](https://github.com/wazuh/wazuh-kibana-app/pull/3753)
124+
- Fixed action buttons overlaying to the request text in Tools/API Console [#3772](https://github.com/wazuh/wazuh-kibana-app/pull/3772)
125+
- Fix `Rule ID` value in reporting tables related to top results [#3774](https://github.com/wazuh/wazuh-kibana-app/issues/3774)
126+
- Fixed github/office365 multi-select filters suggested values [#3787](https://github.com/wazuh/wazuh-kibana-app/pull/3787)
127+
- Fix updating the aggregation data of Panel section when changing the time filter [#3790](https://github.com/wazuh/wazuh-kibana-app/pull/3790)
128+
- Removed the button to remove an agent for a group in the agents' table when it is the default group [#3804](https://github.com/wazuh/wazuh-kibana-app/pull/3804)
117129
- Fixed add single agent to group [#3776](https://github.com/wazuh/wazuh-kibana-app/pull/3776)
118130
- Fix the implicit filters from the search bar can be removables [#3777](https://github.com/wazuh/wazuh-kibana-app/pull/3777)
119131
- Fixed Office365/Github module the side panel tab [#3778](https://github.com/wazuh/wazuh-kibana-app/pull/3778)
120132
- Fixed no wrap text in MITRE ATT&CK intelligence table [#3780](https://github.com/wazuh/wazuh-kibana-app/pull/3780)
121133
- Fixed visualization tooltip position [#3781](https://github.com/wazuh/wazuh-kibana-app/pull/3781)
122134
- Fixed github/office365 multi-select filters suggested values [#3787](https://github.com/wazuh/wazuh-kibana-app/pull/3787)
123135
- Fixed the styles on the evolution card [#3796](https://github.com/wazuh/wazuh-kibana-app/pull/3796)
124-
- Fixed Dashboard PDF report error when switching pinned agent state [#3748](https://github.com/wazuh/wazuh-kibana-app/pull/3748)
125-
- Fixed the rendering of the command to deploy new Windows agent not working in some Kibana versions [#3753](https://github.com/wazuh/wazuh-kibana-app/pull/3753)
126-
- Fixed action buttons overlaying to the request text in Tools/API Console [#3772](https://github.com/wazuh/wazuh-kibana-app/pull/3772)
127-
- Fix `Rule ID` value in reporting tables related to top results [#3774](https://github.com/wazuh/wazuh-kibana-app/issues/3774)
128-
- Fixed github/office365 multi-select filters suggested values [#3787](https://github.com/wazuh/wazuh-kibana-app/pull/3787)
129-
- Fix updating the aggregation data of Panel section when changing the time filter [#3790](https://github.com/wazuh/wazuh-kibana-app/pull/3790)
130136

131137
## Wazuh v4.2.5 - Kibana 7.10.2, 7.11.2, 7.12.1, 7.13.4, 7.14.2 - Revision 4206
132138

@@ -223,7 +229,6 @@ All notable changes to the Wazuh app project will be documented in this file.
223229
- Fixed Wazuh main menu and breadcrumb render issues [#3347](https://github.com/wazuh/wazuh-kibana-app/pull/3347)
224230
- Fixed generation of huge logs from backend errors [#3397](https://github.com/wazuh/wazuh-kibana-app/pull/3397)
225231
- Fixed vulnerabilities flyout not showing alerts if the vulnerability had a field missing [#3593](https://github.com/wazuh/wazuh-kibana-app/pull/3593)
226-
- Removed api selector toggle from settings menu since it performed no useful function [#3604](https://github.com/wazuh/wazuh-kibana-app/pull/3604)
227232

228233
## Wazuh v4.2.1 - Kibana 7.10.2 , 7.11.2 - Revision 4202
229234

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -56,31 +56,31 @@ This plugin for Kibana allows you to visualize and analyze Wazuh alerts stored i
5656

5757
**Modules overview**
5858

59-
![Overview](/public/assets/app.png)
59+
![Overview](screenshots/app.png)
6060

6161
**Security events**
6262

63-
![Overview](/public/assets/app2.png)
63+
![Overview](screenshots/app2.png)
6464

6565
**Integrity monitoring**
6666

67-
![Overview](/public/assets/app3.png)
67+
![Overview](screenshots/app3.png)
6868

6969
**Vulnerability detection**
7070

71-
![Overview](/public/assets/app4.png)
71+
![Overview](screenshots/app4.png)
7272

7373
**Regulatory compliance**
7474

75-
![Overview](/public/assets/app5.png)
75+
![Overview](screenshots/app5.png)
7676

7777
**Agents overview**
7878

79-
![Overview](/public/assets/app6.png)
79+
![Overview](screenshots/app6.png)
8080

8181
**Agent summary**
8282

83-
![Overview](/public/assets/app7.png)
83+
![Overview](screenshots/app7.png)
8484

8585
## Branches
8686

common/constants.ts

+34-13
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const WAZUH_STATISTICS_DEFAULT_CRON_FREQ = '0 */5 * * * *';
4646
// Job - Wazuh initialize
4747
export const WAZUH_INDEX = '.wazuh';
4848
export const WAZUH_VERSION_INDEX = '.wazuh-version';
49-
export const WAZUH_KIBANA_TEMPLATE_NAME = 'wazuh-kibana';
49+
export const WAZUH_PLUGIN_PLATFORM_TEMPLATE_NAME = 'wazuh-kibana';
5050

5151
// Permissions
5252
export const WAZUH_ROLE_ADMINISTRATOR_ID = 1;
@@ -223,10 +223,10 @@ export const WAZUH_DEFAULT_APP_CONFIG = {
223223
hideManagerAlerts: false,
224224
'logs.level': 'info',
225225
'enrollment.dns': '',
226-
'customization.logo.app':'logotype.svg',
227-
'customization.logo.sidebar':'icon_blue.png',
228-
'customization.logo.healthcheck':'icon_blue.svg',
229-
'customization.logo.reports':'logo.png'
226+
'customization.logo.app': '',
227+
'customization.logo.sidebar': '',
228+
'customization.logo.healthcheck':'',
229+
'customization.logo.reports': ''
230230
};
231231

232232
// Wazuh errors
@@ -318,21 +318,21 @@ export const HEALTH_CHECK = 'health-check';
318318
// Health check
319319
export const HEALTH_CHECK_REDIRECTION_TIME = 300; //ms
320320

321-
// Kibana settings
321+
// Plugin platform settings
322322
// Default timeFilter set by the app
323-
export const WAZUH_KIBANA_SETTING_TIME_FILTER = {
323+
export const WAZUH_PLUGIN_PLATFORM_SETTING_TIME_FILTER = {
324324
from: 'now-24h',
325325
to: 'now',
326326
};
327-
export const KIBANA_SETTING_NAME_TIME_FILTER = 'timepicker:timeDefaults';
327+
export const PLUGIN_PLATFORM_SETTING_NAME_TIME_FILTER = 'timepicker:timeDefaults';
328328

329329
// Default maxBuckets set by the app
330-
export const WAZUH_KIBANA_SETTING_MAX_BUCKETS = 200000;
331-
export const KIBANA_SETTING_NAME_MAX_BUCKETS = 'timelion:max_buckets';
330+
export const WAZUH_PLUGIN_PLATFORM_SETTING_MAX_BUCKETS = 200000;
331+
export const PLUGIN_PLATFORM_SETTING_NAME_MAX_BUCKETS = 'timelion:max_buckets';
332332

333-
// Default metaFields Kibana setting set by the app
334-
export const WAZUH_KIBANA_SETTING_METAFIELDS = ['_source', '_index'];
335-
export const KIBANA_SETTING_NAME_METAFIELDS = 'metaFields';
333+
// Default metaFields set by the app
334+
export const WAZUH_PLUGIN_PLATFORM_SETTING_METAFIELDS = ['_source', '_index'];
335+
export const PLUGIN_PLATFORM_SETTING_NAME_METAFIELDS = 'metaFields';
336336

337337
// Logger
338338
export const UI_LOGGER_LEVELS = {
@@ -347,3 +347,24 @@ export const UI_TOAST_COLOR = {
347347
DANGER: 'danger',
348348
};
349349

350+
// Assets
351+
export const ASSETS_BASE_URL_PREFIX = '/plugins/wazuh/assets/';
352+
353+
// Reports
354+
export const REPORTS_LOGO_IMAGE_ASSETS_RELATIVE_PATH = 'images/logo_reports.png';
355+
export const REPORTS_PRIMARY_COLOR = '#256BD1';
356+
357+
// Plugin platform
358+
export const PLUGIN_PLATFORM_NAME = 'Kibana';
359+
export const PLUGIN_PLATFORM_BASE_INSTALLATION_PATH = '/usr/share/kibana/data/wazuh/';
360+
export const PLUGIN_PLATFORM_BASE_REDIRECTION_PATH = 'kibana';
361+
export const PLUGIN_PLATFORM_INSTALLATION_USER = 'kibana';
362+
export const PLUGIN_PLATFORM_INSTALLATION_USER_GROUP = 'kibana';
363+
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_UPGRADE_PLATFORM = 'https://documentation.wazuh.com/current/upgrade-guide/elasticsearch-kibana-filebeat/index.html#upgrade-elasticsearch-filebeat-kibana';
364+
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_TROUBLESHOOTING = 'https://documentation.wazuh.com/current/user-manual/kibana-app/troubleshooting.html';
365+
export const PLUGIN_PLATFORM_WAZUH_DOCUMENTATION_URL_APP_CONFIGURATION = 'https://documentation.wazuh.com/current/user-manual/kibana-app/reference/config-file.html';
366+
export const PLUGIN_PLATFORM_URL_GUIDE = 'https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html';
367+
export const PLUGIN_PLATFORM_URL_GUIDE_TITLE = 'Elastic guide';
368+
export const PLUGIN_PLATFORM_REQUEST_HEADERS = {
369+
'kbn-xsrf': 'kibana'
370+
};

common/plugin.ts

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { PLUGIN_PLATFORM_BASE_INSTALLATION_PATH } from "./constants";
2+
3+
/**
4+
*
5+
* @param path Path to file or directory
6+
* @returns Absolute path to the file or directory with the prefix path of app data path
7+
*/
8+
export const getPluginDataPath = (path: string = ''): string => `${PLUGIN_PLATFORM_BASE_INSTALLATION_PATH}${path}`;

common/semver.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Wazuh app - Utils related to Kibana and app versions
2+
* Wazuh app - Utils related to plugin platform and app versions
33
*
44
* Copyright (C) 2015-2021 Wazuh, Inc.
55
*
@@ -11,7 +11,12 @@
1111
* Find more information about this on the LICENSE file.
1212
*
1313
*/
14-
import { kibana as appPackageKibana } from '../package.json';
14+
import { pluginPlatform as appPackagePluginPlatform } from '../package.json';
1515
import semver from 'semver';
1616

17-
export const satisfyKibanaVersion = (requiredKibanaVersion: string) => semver.satisfies(appPackageKibana.version, requiredKibanaVersion);
17+
/**
18+
*
19+
* @param requiredPluginPlatformVersion semver condition that should fulfill the plugin platform version
20+
* @returns if validation is true or false
21+
*/
22+
export const satisfyPluginPlatformVersion = (requiredPluginPlatformVersion: string): boolean => semver.satisfies(appPackagePluginPlatform.version, requiredPluginPlatformVersion);

common/utils.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/**
2+
*
3+
* @param timeMs Time in milliseconds
4+
* @returns Promise
5+
*/
6+
export const delayAsPromise = (timeMs: number) => new Promise(resolve => setTimeout(resolve, timeMs));

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "4.3.0",
44
"revision": "4301-0",
55
"code": "4301-0",
6-
"kibana": {
7-
"version": "7.16.2"
6+
"pluginPlatform": {
7+
"version": "7.10.2"
88
},
99
"description": "Wazuh app",
1010
"keywords": [

public/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import './components';
2323
// angular-charts.js
2424
import 'angular-chart.js';
2525

26-
// Font Awesome, Kibana UI framework and others
26+
// Font Awesome, plugin platform framework and others
2727
import './utils/fontawesome/scss/font-awesome.scss';
2828

2929
// Dev tools
@@ -104,7 +104,7 @@ app.run(['$rootElement', function ($rootElement) {
104104
<react-component name="ToastNotificationsModal" props=""></react-component>
105105
</div>`);
106106

107-
// Add plugin help links as extension to Kibana help menu
107+
// Add plugin help links as extension to plugin platform help menu
108108
addHelpMenuToAppChrome();
109109

110110

public/assets/app.png

-159 KB
Binary file not shown.

public/assets/app2.png

-218 KB
Binary file not shown.

public/assets/app3.png

-168 KB
Binary file not shown.

public/assets/app4.png

-213 KB
Binary file not shown.

public/assets/app5.png

-169 KB
Binary file not shown.

public/assets/app6.png

-154 KB
Binary file not shown.

public/assets/app7.png

-154 KB
Binary file not shown.

public/assets/icon_blue.png

-2.3 KB
Binary file not shown.

public/assets/icon_blue.svg

-1
This file was deleted.

public/assets/icon_fail.svg

-33
This file was deleted.
File renamed without changes.

public/assets/images/logo_reports.png

3.12 KB
Loading
+17
Loading

0 commit comments

Comments
 (0)