Commit Graph

1688 Commits

Author SHA1 Message Date
JuanCarlos
17566e0b30 Fix ruleset open files 2019-10-09 16:23:50 +02:00
Adri Valle
2312ae40f4 Fix API call 2019-10-09 12:50:35 +02:00
Adri Valle
1a663b2ba4 Add arial-label 2019-10-09 12:50:25 +02:00
JuanCarlos
b557fa09d2
Prettier 2019-10-09 12:29:28 +02:00
Adri Valle
5f34eff198 Migrate API entries from .wazuh index to wazuh.yml (#1811)
* Removed "Pattern" and "First use" sections from Settings

* Simplified API entries table in Settings

* Started "API is down" guide

* Started "Add API" guide

* Loading new components for Settings

* Adapt Settings views for using new components

* Migrate hosts and remove .wazuh index

* Prevent duplicate hosts

* Improve regex

* Cleaning settings.js controller (in progress)

* Prevent try to add again if .wazuh was not deleted

* Add function to check if is busy

* Migrate the cluster_info and extensions to the wazuh-registry

* Replace wazuh-version by wazuh-registry

* Add endpoint to get the host from wazuh-hosts.yml

* Get the APIs from the wazuh-hosts.yml

* Updates the cluster info in the registry when checking connection

* Remove console.error

* Check api connection from wazuh-host data

* Try to connect to another API in case the default fails

* Adapt settings-wizard and api-count

* Adapt wazuh-api.js controller for using wazuh-hosts.yml

* Prevent undefined results

* Clean initialize

* Remove wazuh-api-elastic routes and controllers

* Remove addApiProps

* Change config.yml by wazuh.yml

* Replace config.yml in the kibana plugin helper

* Delete wazuh-api-elastic tests

* Check for orphan registry entries

* Check manager connection before setting as default

* Prevent error toaster when there is any api entry

* Prevent errors when any api is reachable

* Check for new apis and their connection

* Prevent error when update registry of undefined

* Prevent error when no cluster_info

* Remove console.log

* Change state by props

* Fix settings-wizard

* Fix when joinning hosts and registry

* Check for new API entries

* Close add api component

* Remove await

* Improve checks for new apis

* Test if API is down in wazuh-api

* Check down APIs

* Api is down component finish

* Transform hosts in the backend

* Fix key

* Adapt removeOrphanentries

* Adapt settings-wizard

* Improve api-is-down component

* Change  the way to display the helpers components

* Check APIs status when get them

* Remove console.log

* Check manager sets the status to the API entry

* Prevent create wazuh-registry.json without hosts

* FIx extensions

* Add panel

* Change style for wazuh hosts

* Show add api component from the table

* Refresh API entries

* Update wazuh-hosts

* Api is down table loading effect

* Show API is down when accessing to settings if any API is up

* Update cluster info in the settings wizard

* Change color

* Remove wazuh-hosts.yml

* Remove hosts from configuration

* Fix \n in the migration

* Fix api-count

* Fix typo

* Fix API wizard

* Fix example in getting started guide

* Fix typos

* Refresh hosts in api-is-down component

* Set default in props

* Fix API count

* Iterates the api entries to set one as default

* Fix component unmount

* Fix flick

* Fix when refresh and all entries and the yml is corrupt

* Improve handler error when getting error in the yml parser

* Adapt monitoring

* Allow unsigned certs

* Fix when there is not stored api - health check

* Fix when any api entry could be select

* Warning when set an API as default

* Send to settings when achieve connect with an API when trying set as default

* Try to set others API entries

* Preven duplicate hosts: in wazuh.yml

* Improve when stored api is not reachable handler

* Fix typo

* Added ID and the capability to search in the table

* Fix input style

* Fix typo

* Do pararell requests

* Fix when checking entry

* Add cheking spinner while checking api connection

* Spinner while checking in api-is-down component

* Use for instead of forEach

* Change spinner by message while refreshing entries

* Add a spinner by each entry while checking it

* Show the reason why wazuh is down

* Improve message from error 3099

* Add capability to copy to the clipboard the error
2019-10-09 12:13:14 +02:00
Jose Sanchez Robles
15a0ef4bb2 Add E2E tests to the enviroment (#1810)
* Add the test environment

* Add the first functional test

* Add two services to test the visualizations

* Add two tests for the alerts visualizations

* Refactoring and cleaning code

* Create two new services to test pie charts

* Create two tests for charts pie

* should top 5 agent chart pie values are correct
* should top 5 rule groups chart pie values are correct

* Add test and fix sort problem

* should alerts evolution - top 5 agents chart values are correct

* Add the missing ID property

* Fix problem with the sort function

* Add two classes to test visualization tables

* Add new test for alert summary table

`should alerts summary table values are correct`

* Refactoring duplicate code in `setTodayRange`

* Add 14 tests to cover query bar and filters

* should `alertStats` values ​​are correct when add the filter ` rule.level: 7`
* should `alert level evolution` chart values are correct when add the filter ` rule.level: 7`
* should `alert` chart values are correct when add the filter ` rule.level: 7`
* should `top 5 agent` chart pie values are correct when add the filter ` rule.level: 7`
* should `top 5 rule groups` chart pie values are correct when add the filter ` rule.level: 7`
* should `alerts evolution - top 5 agents` chart values are correct when add the filter ` rule.level: 7`
* should `alerts summary` table values are correct when add the filter ` rule.level: 7`
* should `alertStats` values ​​are correct when add to the query bar ` rule.level: 7`
* should `alert level evolution` chart values are correct when add to the query bar ` rule.level: 7`
* should `alert` chart values are correct when add to the query bar ` rule.level: 7`
* should `top 5 agent` chart pie values are correct when add to the query bar ` rule.level: 7`
* should `top 5 rule groups` chart pie values are correct when add to the query bar ` rule.level: 7`
* should `alerts evolution - top 5 agents` chart values are correct when add to the query bar ` rule.level: 7`
* should `alerts summary` table values are correct when add to the query bar ` rule.level: 7`

* Fix the problem with summary alerts test

* Fix expect problem with alert summary table

* Change the value of a param in visualization

The aggregation type of the visualization is `sum`

I change the value to `count`

* Add missing id properties to visualizations

* Create a new method to navigate to the FIM view

* Add a `beforeEach` method to remove duplicate code

* Add the tests for FIM Dashboard

* Add test for the filters and query bar in FIM

* Add documentation to the code

* Fix problem when comparing objects

* Set index pattern

* Fix the problem with the expected test result

* Removed discover from wz-menu
2019-10-09 10:19:34 +02:00
Jose Sanchez Robles
04b6265722 Extend RegisterAgent component (#1818)
* Get default API address and if is necessary the password

* Add missing `await`

* Change the properties of register-agent component

Set the background to transparent
Change the title: Add => Deploy

* Add register-agent component to add user to group

* Show button in general when no agents registered

* Show button in FIM when no agents registered

* Add the RegisterAgent component to overview

* Add the component `add new agents` to groups

* Remove duplicate componente addNewAgents from fim

* Remove `add new agents` component from group view
2019-10-09 10:16:29 +02:00
Adri Valle
de69af3b11
Check the admin mode (#1836) 2019-10-08 15:36:05 +02:00
Adri Valle
fc0e59e036 Fix tabs 2019-10-08 09:40:12 +02:00
Adri Valle
ea298e6c4a
Change toosl (#1828) 2019-10-01 12:01:24 +02:00
Adri Valle
170aeabee1
Upload files component (#1827)
* Component created

* Set limits

* Add limitation for extensions

* Change the list style

* Remove cross from file

* Change list color

* First component design and navigation improvement

* Adapt component

* Changed title based on tab

* Mock API call to get logtest result

* Right bar deprecated. New navigation and actions disposition

* Remove unused shortcuts files

* Redisign ruleset files management

* Remove unused file

* Set the property props

* Design changes in logtest component

* Rename cdblists by lists

* Clean files when closing the popover

* Rename cdblists by lists

* Adapt logtest for dark mode

* Read the files content

* Removed unused component

* Request changes

* Change Add files buttons position

* Logtest in Tools

* Add configuration validator

* Update Kibana version

* Change foreach by for

* Solves asynchronous problem

* Adapt ruleset handler

* Upload files

* Show what files were upload and hwat not

* Detail the error

* Expand fail list

* Add button to refresh lists

* Hide Logtest and Test config

* Update output of success/fail uploaded files

* Fix opened file on ruleset navigation

* Change the style of succes and errors messages

* Fix don't lose info
2019-10-01 11:09:35 +02:00
Adri Valle
478e27601c
Fix empty files (#1813)
* Fix when getting an empty file

* Prevent empty lines in cdb lists
2019-09-20 15:40:00 +02:00
JuanCarlos
2cbd63605d
Prettier 2019-09-17 09:13:09 +02:00
JuanCarlos
9a4c4e2ee7
Merge branch '3.11-7.3' of https://github.com/wazuh/wazuh-kibana-app into sorting-tables 2019-09-17 09:10:53 +02:00
JuanCarlos
82a256a9ea
Fix chips in rules and decoders 2019-09-12 11:45:02 +02:00
Adri Valle
ccf183ae69 Improve commands for register agents guide (#1762) 2019-09-03 12:11:46 +02:00
Jesús Ángel
084feedc3f Added missing copyright header 2019-09-03 10:12:02 +02:00
Jesús Ángel
988d5832bc Executed "yarn pretty" 2019-08-30 15:05:59 +02:00
Jesús Ángel
f44737946e Reset dead visualizations counter to 0 on switchSubTab 2019-08-30 14:32:27 +02:00
Jesús Ángel
1c77d390a6 Show '-' for empty metrics 2019-08-30 14:32:27 +02:00
Jesús Ángel
711ca7bbf8 Revert "Add the repositories to the register agent component"
This reverts commit f3f7cce9fc48429269a7892a29e4a8b7aad3d8ef.
2019-08-29 14:51:37 +02:00
Adri Valle
131908dc2c Add the repositories to the register agent component 2019-08-29 14:51:37 +02:00
JuanCarlos
ab6ec53f07 Fix tabs in groups management 2019-08-29 14:51:37 +02:00
Adri Valle
d46bc48857 Show info toaster when restarting 2019-08-29 14:51:37 +02:00
Jesús Ángel
160282c77f Moved "DynamicHeight" method to static methods 2019-08-29 14:51:11 +02:00
Adri Valle
9c2809cccc Class for the DynamicHeight 2019-08-29 14:51:11 +02:00
Adri Valle
121a7dc7c2 Added dynamic height to configuration sections 2019-08-29 14:51:11 +02:00
Jesús Ángel
b593a0e797 Set vis tab before doing any other thing 2019-08-29 14:35:26 +02:00
Jesús Ángel
25cdcccda0 Revert "Restrict controller loading"
This reverts commit 13dea09755.
2019-08-29 14:35:26 +02:00
Jesús Ángel
13dea09755 Restrict controller loading 2019-08-29 13:37:21 +02:00
Jesús Ángel
22df876fa9 Restore $rootScope.rendered value when tab changes 2019-08-29 12:58:58 +02:00
Jesús Ángel
c7e75dd22a Fix wrong filters history 2019-08-29 11:44:10 +02:00
Jesús Ángel
98bd246823 Removed redundant event broadcast (not needed) 2019-08-28 15:44:36 +02:00
Adri Valle
24339e5275 Fix bottom scroll bar with requirement cards 2019-08-28 11:24:28 +02:00
Jesús Ángel
2752993b0d
Merge branch '3.10-7.3' into fix-darkmode 2019-08-27 15:29:30 +02:00
JuanCarlos
b5c42befbc
Fix colors in multiple selector 2019-08-27 14:33:27 +02:00
Adri Valle
f925f0e91a Prettier 2019-08-27 13:02:11 +02:00
Adri Valle
d637ad6fec Hide unsupported tabs in windows agents 2019-08-27 13:01:40 +02:00
Adri Valle
efaba94428 Fix last keep alive date 2019-08-27 11:11:39 +02:00
Adri Valle
a3e511363c Fix agent extensions 2019-08-27 08:53:42 +02:00
Adri Valle
3e27c1b4dc Hide SCA in overview 2019-08-27 08:20:46 +02:00
Adri Valle
5d9f15ab7e Fix extensions component 2019-08-27 08:13:07 +02:00
Jesús Ángel
2784db6681 Fix defects reported by ESLint. Executed prettier. 2019-08-23 14:26:29 +02:00
Adri Valle
d6382c326f Cards slider in the regulatory compliance sections (#1708) 2019-08-22 13:05:55 +02:00
Juanka Rodríguez
4547d59836 Improve tabs bars with Tabs component (#1705) 2019-08-22 13:04:34 +02:00
Juanka Rodríguez
5b626030aa Keep menu directive always visible (#1696) 2019-08-20 11:05:42 +02:00
JuanCarlos
4077345a45 Fix lose of filters in FIM 2019-08-19 15:31:43 +02:00
JuanCarlos
20cb4c51fc Undo useless change 2019-08-19 10:24:34 +02:00
JuanCarlos
3a7645ad83 Fix HIPAA and NIST access cards in overviews 2019-08-19 10:24:34 +02:00
Jesús Ángel
7ab433bf75 Revert "Navbar hide flick (#1558)"
This reverts commit 84905b37f7.
2019-08-16 14:30:01 +02:00