-
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
Feat/5894 vulnerabilities dashboard create the dashboard tab using osd plugins #5966
Merged
Machi3mfl
merged 12 commits into
feat/5763-global-vulnerabilities-dashboard
from
feat/5894-vulnerabilities-dashboard-create-the-dashboard-tab-using-osd-plugins
Oct 25, 2023
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 tasks
* Add search bar hooks * Rename searchbar hook * Add unit test to use search bar configuration hook * Fix some unit test titles * Remove console.log * Solve requested changes * Fix request changes and hook filename
…rch bar by default (#5970) Remove agent id filter in searchbar
…dashboard and the searchbar are solved
…NERABILITIES_INDEX_PATTERN_ID constant
…894-vulnerabilities-dashboard-create-the-dashboard-tab-using-osd-plugins
|
3 tasks
Machi3mfl
approved these changes
Oct 25, 2023
…894-vulnerabilities-dashboard-create-the-dashboard-tab-using-osd-plugins
Machi3mfl
merged commit Oct 25, 2023
d78defc
into
feat/5763-global-vulnerabilities-dashboard
1 of 2 checks passed
Machi3mfl
deleted the
feat/5894-vulnerabilities-dashboard-create-the-dashboard-tab-using-osd-plugins
branch
October 25, 2023 14:14
asteriscos
pushed a commit
that referenced
this pull request
Nov 3, 2023
…5896) * Added plugins dependencies * Add new inventories tabs scaffolding * Refactor arquitecture * Add searchbar folder * Add useDashboardConfiguration hook for configuring vulnerability dashboards (#5947) * Add useDashboardConfiguration and unit test hook * Changed how the initial hook configuration is set * [Vulnerabilities dashboards] Add search bar services (#5960) * Add search bar hooks * Rename searchbar hook * Add unit test to use search bar configuration hook * Fix some unit test titles * Remove console.log * Solve requested changes * Fix request changes and hook filename * [Vulnerabilities dashboards] Fix wrong agent.id filters loaded in search bar by default (#5970) Remove agent id filter in searchbar * Change new vulnerabilities inventory table (#6047) * Add data grid hook * Add doc viewer component and hook * Add ui utils components * Add new vuls inventory component * Add vuls inventory in module rendering * Add full height container * Add inventory table columns * Remove columns fields filter by keyword type * Feat/5894 vulnerabilities dashboard create the dashboard tab using osd plugins (#5966) * Add useDashboardConfiguration and unit test hook * Changed how the initial hook configuration is set * Create dashboard using embedded visualizations by value. * [Vulnerabilities dashboards] Add search bar services (#5960) * Add search bar hooks * Rename searchbar hook * Add unit test to use search bar configuration hook * Fix some unit test titles * Remove console.log * Solve requested changes * Fix request changes and hook filename * [Vulnerabilities dashboards] Fix wrong agent.id filters loaded in search bar by default (#5970) Remove agent id filter in searchbar * Recommended filters are added and communication problems between the dashboard and the searchbar are solved * Update Vulnerability detector dashboard filters visualization and VULNERABILITIES_INDEX_PATTERN_ID constant * Change KPI dashboard and fix bad request * Separates filter panels from dashboard panels * Add Accumulation of the most detected vulnerabilities visualization and change --------- Co-authored-by: Maximiliano Ibarra <6089438+Machi3mfl@users.noreply.github.com> * Fix default filters on usesearchbar configuration * [Vulnerabilities dashboards] Fix vulnerability dashboard filters (#6065) Fix vulnerability dashboard filters * Remove date picker from searchbar on vuls inventory tab * Remove date picker from searchbar and open vs close visualization on vuls dashboard tab * Change Accumulation of the most detected vulnerabilities chart * Add data grid csv export * Add error management and export csv calls pagination * Remove unused hook * Update CHANGELOG * Fix CHANGELOG * Remove explore agent in header --------- Co-authored-by: Julio César Biset <43619595+jbiset@users.noreply.github.com> Co-authored-by: jbiset <julio.biset@wazuh.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Dashboard tab is created using OSD plugins. It uses embedded visualizations by value.
The vulnerabilities dashboard is made up of 3 internal dashboards because the filters need a wrapper for visual adjustments, while the KPIs (critical, high, medium and low severity alerts), the Open vs Close visualization and the rest of the visualizations have different configurations at the dashboard level.
Dependencies
Issues Resolved
Dashboard
tab using OSD plugins #5894Evidence
Light mode
Dark mode
Test
In order to test this dashboard, it is necessary to generate data from the new
wazuh-states-vulnerabilities
vulnerability index in the indexer.Generation of vulnerability index data
Having the environment up, use the random data generation script to generate the data as shown in the following image.NOTE: keep in mind that the indexer port (9200) has to be exposed in the container configuration.
Creation of the `wazuh-states-vulnerabilities` index
Go to Dashboards Managements and create the corresponding `wazuh-states-vulnerabilities` index as shown in the following images:NOTE: It is important to specify the Custom index pattern ID with
wazuh-states-vulnerabilities
so that a ramdom ID of the index is not automatically generated.Mapping the index fields
Go to Dev tools and insert the field mapping through a PUT, then do a GET of some field to test.At this point it is necessary to do a DELETE as shown in the image and repeat again only the data generation but with a greater number of data.
Finally it is necessary to refresh the index in Dashboard Management
Check List
yarn test:jest