Skip to content

Commit

Permalink
Fix IPV6 visualizations (#5471)
Browse files Browse the repository at this point in the history
* add ipv6 service

* add test for service

* Fix issue in agents-table

* fix issue in agents-info

* fix groups agents issue

* Fix width in groups agents

* use mapResponseItem

* Add copy button to groups

* Add copy button to info

* fix for node list

* Optimize code

* Fix styles

* Edit changelog

* Edit changelog

* Add imposter changes to test ipv6

* Replace onMouseDown with onClick

* Move copy buttons to the left

* fix: removed compressipv6 property of TableWzAPI

* feat: add tableLayout property to some tables and remove IPv6 address compression

add tableLayout=auto property to some tables:
- Agents/{agent_id}/Inventory data
- Management/Cluster/Nodes
- Agents
- Management/Configuration/Client
- Management/Global configuration/Remote
remove IPv6 address compression

* remove: remove unused service to IPv6 compression

* revert: revert changes in TableWzAPI component

* add: add mocked responses to some syscollector endpoints

* remove: unwanted table columns properties

* changelog: add pull request entry

* Fix imposter

---------

Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: yenienserrano <ian.serrano@wazuh.com>
Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
(cherry picked from commit 1153509)
  • Loading branch information
Tostti authored and Desvelao committed Jun 14, 2023
1 parent 6267c16 commit 125ad31
Show file tree
Hide file tree
Showing 15 changed files with 1,147 additions and 601 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@

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

## Wazuh v4.4.5 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 00

### Fixed

- Fixed the rendering of tables that contains IPs and agent overview [#5471](https://github.com/wazuh/wazuh-kibana-app/pull/5471)

### Removed

- Removed the agent name in the agent info ribbon [#5497](https://github.com/wazuh/wazuh-kibana-app/pull/5497)

### Changed

- Changed windows agent service name in the deploy agent wizard [#5538](https://github.com/wazuh/wazuh-kibana-app/pull/5538)

## Wazuh v4.4.4 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 01

### Added
Expand Down
74 changes: 37 additions & 37 deletions docker/imposter/agents/agent.json
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
{
"data": {
"affected_items": [
{
"os": {
"arch": "x86_64",
"codename": "stretch",
"major": "9",
"name": "Debian GNU/Linux",
"platform": "debian",
"uname": "Linux |ip-10-0-1-106 |4.9.0-9-amd64 |#1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) |x86_64",
"version": "9"
},
"ip": "10.0.1.106",
"configSum": "6f4293818ef64291ca53727fb9ab8958",
"mergedSum": "7976a83d1aebcca09bc14459b5518ed5",
"id": "001",
"registerIP": "any",
"dateAdd": "2022-08-25T16:25:53Z",
"disconnection_time": "2022-08-25T16:36:35Z",
"name": "Debian",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"group": [
"default",
"debian"
],
"lastKeepAlive": "2022-09-12T08:48:40Z",
"version": "Wazuh v4.3.7"
}
"data": {
"affected_items": [
{
"os": {
"arch": "x86_64",
"codename": "stretch",
"major": "9",
"name": "Debian GNU/Linux",
"platform": "debian",
"uname": "Linux |ip-10-0-1-106 |4.9.0-9-amd64 |#1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) |x86_64",
"version": "9"
},
"ip": "FE80:0034:0223:A000:0002:B3FF:0000:8329",
"configSum": "6f4293818ef64291ca53727fb9ab8958",
"mergedSum": "7976a83d1aebcca09bc14459b5518ed5",
"id": "001",
"registerIP": "any",
"dateAdd": "2022-08-25T16:25:53Z",
"disconnection_time": "2022-08-25T16:36:35Z",
"name": "Debian",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"group": [
"default",
"debian"
],
"total_affected_items": 1,
"total_failed_items": 0,
"failed_items": []
},
"message": "All selected agents information was returned",
"error": 0
}
"lastKeepAlive": "2022-09-12T08:48:40Z",
"version": "Wazuh v4.3.7"
}
],
"total_affected_items": 1,
"total_failed_items": 0,
"failed_items": []
},
"message": "All selected agents information was returned",
"error": 0
}
229 changes: 118 additions & 111 deletions docker/imposter/agents/agents.json
Original file line number Diff line number Diff line change
@@ -1,114 +1,121 @@
{
"data": {
"affected_items": [
{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"group": [
"default",
"test",
"test2",
"test3",
"test4",
"test5",
"test6",
"test7",
"test8",
"test9",
"test10"
],
"ip": "127.0.0.1",
"id": "000",
"registerIP": "127.0.0.1",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "synced"
},{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"group": [
"default",
"test",
"test2",
"test3",
"test4",
"test5"
],
"ip": "127.0.0.1",
"id": "001",
"registerIP": "127.0.0.1",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "not synced"
},{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"group": ["default", "test", "test2"],
"ip": "127.0.0.1",
"id": "002",
"registerIP": "127.0.0.1",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "synced"
},{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"ip": "127.0.0.1",
"id": "003",
"registerIP": "127.0.0.1",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "not synced"
}
"data": {
"affected_items": [
{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"group": [
"default",
"test",
"test2",
"test3",
"test4",
"test5",
"test6",
"test7",
"test8",
"test9",
"test10"
],
"total_affected_items": 4,
"total_failed_items": 0,
"failed_items": []
},
"message": "All selected agents information was returned",
"error": 0
"ip": "FE80:0034:0223:A000:0002:B3FF:0000:8329",
"id": "000",
"registerIP": "FE80:0034:0223:A000:0002:B3FF:0000:8329",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "synced"
},
{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"group": [
"default",
"test",
"test2",
"test3",
"test4",
"test5"
],
"ip": "FE80:1234:2223:A000:2202:B3FF:FE1E:8329",
"id": "001",
"registerIP": "FE80:1234:2223:A000:2202:B3FF:FE1E:8329",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "not synced"
},
{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"group": [
"default",
"test",
"test2"
],
"ip": "127.0.0.1",
"id": "002",
"registerIP": "127.0.0.1",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "synced"
},
{
"os": {
"arch": "x86_64",
"major": "2",
"name": "Amazon Linux",
"platform": "amzn",
"uname": "Linux |wazuh-manager-master-0 |4.14.114-105.126.amzn2.x86_64 |#1 SMP Tue May 7 02:26:40 UTC 2019 |x86_64",
"version": "2"
},
"ip": "FE80:0034:0223:A000:0002:B3FF:0000:8329",
"id": "003",
"registerIP": "FE80:0034:0223:A000:0002:B3FF:0000:8329",
"dateAdd": "2022-08-25T16:17:46Z",
"name": "wazuh-manager-master-0",
"status": "active",
"manager": "wazuh-manager-master-0",
"node_name": "master",
"lastKeepAlive": "9999-12-31T23:59:59Z",
"version": "Wazuh v4.4.0",
"group_config_status": "not synced"
}
],
"total_affected_items": 4,
"total_failed_items": 0,
"failed_items": []
},
"message": "All selected agents information was returned",
"error": 0
}
Loading

0 comments on commit 125ad31

Please sign in to comment.