Skip to content
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

Create agent management apps #517

Open
Tracked by #7287
asteriscos opened this issue Feb 6, 2025 · 3 comments · May be fixed by wazuh/wazuh-dashboard-plugins#7283
Open
Tracked by #7287

Create agent management apps #517

asteriscos opened this issue Feb 6, 2025 · 3 comments · May be fixed by wazuh/wazuh-dashboard-plugins#7283
Assignees
Labels
level/task Task issue type/enhancement New feature or request

Comments

@asteriscos
Copy link
Member

asteriscos commented Feb 6, 2025

Description

We need to create agent management apps for Wazuh 5.0.

Functional Requirements

  1. Users will be able to use built-in visualizations and queries related to Agent fleet data.
  2. Users must be able to access a deployment wizard for the agents.
  3. Users must be able to delete an agent.
  4. Users must be able to upgrade an agent.
  5. Users must be able to change the name of an agent.
  6. Users must be able to edit which groups an agent belongs to, including deletion.
  7. Users must be able to access information regarding commands for a specific agent.
  8. Users must be able to access information regarding data from a specific agent (agent view).
  9. Users must be able to export data to CSV format.
  10. Users must be able to visualize relevant global data from their fleet, including states, OS, architectures, etc.

Main navigation structure

  • Management
    • Agents
      • Summary
@yenienserrano
Copy link
Member

For the part of editing the groups of an agent in previous versions it is done by means of a selector where it shows all the possible groups to add them to the agent.

As we don't have an index pattern or endpoint currently to request this information I will leave an input so that they can be written but not selected.

Image

@yenienserrano
Copy link
Member

yenienserrano commented Feb 27, 2025

I had an error when rendering or adding a filter from the visualizations. When moving the code of the search bar that was using the dataSource I had to replace it, to replace this I used a state for the filters, when doing this it never went through the filterManager and therefore did not add some necessary fields to the filter (the type of filter) and this caused that they were rendered wrong and the visualizations did not add filters, because the visualizations add the filter to the global filterManager.

When noticing this I saw that before we were modifying the function that adds a filter to the filterManager for the same thing but from the dataSource so I decided to delete our modification since by default it has the same result and it fixes both problems (the rendering of the filters and to be able to add filters from the visualizations).

Image

@yenienserrano
Copy link
Member

The property useDefaultB is needed in true in the first search bar so that when the newHome is enabled, the search bar has the option to add filters, otherwise the button does not appear, the way I saw with the useDefaultB in false is adding a filter from a visualization and when you have 1 filter the button appears.

useDefaultBehaviors: false,

Image Image

useDefaultBehaviors: true,

Image Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue type/enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants