Skip to content

Commit

Permalink
Merge branch '4.7.0' into merge-4.6.0-into-4.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Tostti authored Oct 24, 2023
2 parents 7385d04 + cbec6aa commit f79b198
Show file tree
Hide file tree
Showing 166 changed files with 17,343 additions and 5,199 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,34 @@

All notable changes to the Wazuh app project will be documented in this file.

## Wazuh v4.7.0 - OpenSearch Dashboards 2.8.0 - Revision 01

### Added

- Support for Wazuh 4.7.0
- Added `status detail` column in the agents table. [#5680](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5680)
- Added agent register wizard handle properly special characters in password [5738](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5738)

### Changed

- Changed Network ports table columns for Linux agents. [#5636](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5636)
- Updated development dependencies (`@typescript-eslint/eslint-plugin, @typescript-eslint/parser, eslint, swagger-client`)[#5748](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5748)
- Changed timelion type displays in the management > statistics section to line type displays. [5707](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5707)

### Fixed

- Fixed problem with new or missing columns in agent table. [#5591](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5591)
- Fixed the color of the agent name in the groups section in dark mode. [#5676](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5676) [#6018](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6018)
- Fixed the propagation event so that the flyout data, in the decoders, does not change when the button is pressed. [#5597](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5597)
- Fixed the tooltips of the tables in the security section, and unnecessary requests are removed. [#5631](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5631)

### Removed

- Removed views in JSON and XML formats from management settings. [#5747](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5747)

## Wazuh v4.6.0 - OpenSearch Dashboards 2.8.0 - Revision 03


### Added

- Added rel="noopener noreferrer" in documentation links. [#5197](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5197) [#5274](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5274) [#5298](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5298) [#5409](https://github.com/wazuh/wazuh-dashboard-plugins/pull/5409)
Expand Down
3 changes: 2 additions & 1 deletion docker/imposter/agents/agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"debian"
],
"lastKeepAlive": "2022-09-12T08:48:40Z",
"version": "Wazuh v4.3.7"
"version": "Wazuh v4.3.7",
"status_code": 0
}
],
"total_affected_items": 1,
Expand Down
3 changes: 2 additions & 1 deletion docker/imposter/agents/agent_active_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"test8"
],
"lastKeepAlive": "2022-09-12T08:48:40Z",
"version": "Wazuh v4.5.0"
"version": "Wazuh v4.5.0",
"status_code": 0
}
],
"total_affected_items": 1,
Expand Down
3 changes: 2 additions & 1 deletion docker/imposter/agents/agent_disconnected.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"ip": "111.111.1.111",
"mergedSum": "e669d89eba52f6897060fc65a45300ac",
"configSum": "97fccbb67e250b7c80aadc8d0dc59abe",
"group_config_status": "synced"
"group_config_status": "synced",
"status_code": 2
}
],
"total_affected_items": 1,
Expand Down
3 changes: 2 additions & 1 deletion docker/imposter/agents/agent_macos.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.5.0",
"group_config_status": "synced"
"group_config_status": "synced",
"status_code": 3
}
],
"total_affected_items": 1,
Expand Down
3 changes: 2 additions & 1 deletion docker/imposter/agents/agent_never_connected.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"node_name": "unknown",
"registerIP": "any",
"id": "004",
"ip": "any"
"ip": "any",
"status_code": 4
}
],
"total_affected_items": 1,
Expand Down
3 changes: 2 additions & 1 deletion docker/imposter/agents/agent_pending.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"status": "pending",
"mergedSum": "x",
"node_name": "master-node",
"manager": "wazuh_manager_filebeat_sources_cmake-v4.4.0-rc1-7.10.2"
"manager": "wazuh_manager_filebeat_sources_cmake-v4.4.0-rc1-7.10.2",
"status_code": 5
}
],
"total_affected_items": 1,
Expand Down
2 changes: 0 additions & 2 deletions docker/imposter/agents/agents.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
var agentId = context.request.queryParams.agents_list;

console.log(agentId);

switch (agentId) {
case undefined:
respond().withStatusCode(200).withFile('agents/agents.json');
Expand Down
30 changes: 20 additions & 10 deletions docker/imposter/agents/agents.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "synced"
"group_config_status": "synced",
"status_code": 0
},
{
"os": {
Expand Down Expand Up @@ -62,7 +63,8 @@
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "not synced"
"group_config_status": "not synced",
"status_code": 0
},
{
"os": {
Expand All @@ -87,8 +89,9 @@
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "synced"
"version": "Wazuh v4.5.0",
"group_config_status": "synced",
"status_code": 0
},
{
"os": {
Expand Down Expand Up @@ -117,7 +120,8 @@
"ip": "111.111.1.111",
"mergedSum": "e669d89eba52f6897060fc65a45300ac",
"configSum": "97fccbb67e250b7c80aadc8d0dc59abe",
"group_config_status": "not synced"
"group_config_status": "not synced",
"status_code": 1
},
{
"status": "never_connected",
Expand All @@ -127,7 +131,8 @@
"registerIP": "any",
"id": "004",
"ip": "any",
"group_config_status": "not synced"
"group_config_status": "not synced",
"status_code": 4
},
{
"os": {
Expand All @@ -151,7 +156,8 @@
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.5.0",
"group_config_status": "synced"
"group_config_status": "synced",
"status_code": 2
},
{
"os": {
Expand All @@ -161,6 +167,7 @@
"version": "18.04.6 LTS"
},
"group_config_status": "not synced",
"status_code": 0,
"ip": "172.19.0.27",
"status": "pending",
"name": "Pending agent",
Expand All @@ -181,7 +188,8 @@
"registerIP": "any",
"id": "007",
"ip": "any",
"group_config_status": "not synced"
"group_config_status": "not synced",
"status_code": 5
},
{
"status": "never_connected",
Expand All @@ -191,7 +199,8 @@
"registerIP": "any",
"id": "008",
"ip": "any",
"group_config_status": "not synced"
"group_config_status": "not synced",
"status_code": 1
},
{
"status": "never_connected",
Expand All @@ -201,7 +210,8 @@
"registerIP": "any",
"id": "009",
"ip": "any",
"group_config_status": "not synced"
"group_config_status": "not synced",
"status_code": 2
},
{
"os": {
Expand Down
2 changes: 1 addition & 1 deletion docker/imposter/api-info/api_info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"data": {
"title": "Wazuh API REST",
"api_version": "4.6.0",
"api_version": "4.7.0",
"revision": 1,
"license_name": "GPL 2.0",
"license_url": "https://github.com/wazuh/wazuh/blob/4.5/LICENSE",
Expand Down
12 changes: 4 additions & 8 deletions docker/imposter/cluster/component_configuration.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
var path = context.request.path;
var pathArray = path.split('/')
pathArray.splice(0, 4)
var pathFile = 'cluster/configuration/' + pathArray.join('_') + '.json'
var pathArray = path.split('/');
pathArray.splice(0, 4);
var pathFile = 'cluster/configuration/' + pathArray.join('_') + '.json';

console.log(pathFile)

respond()
.withStatusCode(200)
.withFile(pathFile)
respond().withStatusCode(200).withFile(pathFile);
6 changes: 5 additions & 1 deletion docker/imposter/initial_data.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"attempt": 0,
"callRestart": false
"callRestart": false,
"deleteUser": false,
"deleteRole": false,
"deletePolicies": false,
"deleteRolesMapping": false
}
2 changes: 0 additions & 2 deletions docker/imposter/sca/policy-checks.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
var status =
context.request.queryParams.status || context.request.queryParams.result;

console.log(status);

switch (status) {
case 'failed':
respond().withStatusCode(200).withFile('sca/policy_checks_failed.json');
Expand Down
28 changes: 28 additions & 0 deletions docker/imposter/security/policies/delete-policies.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var id = context.request.queryParams.policy_ids;
var storeWazuh = stores.open('storeWazuh');

storeWazuh.save('deletePolicies', true);

var data = {
data: {
affected_items: [
{
id: id,
name: 'TestWazuhPolicy',
policy: {
actions: ['security:delete'],
resources: ['user:id:*'],
effect: 'deny',
},
roles: [],
},
],
total_affected_items: 1,
total_failed_items: 0,
failed_items: [],
},
message: 'All specified policies were deleted',
error: 0,
};

respond().withStatusCode(200).withData(JSON.stringify(data));
Loading

0 comments on commit f79b198

Please sign in to comment.