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

The agents evolution graph shows information about unauthorized agents #2966

Closed
s-ocando opened this issue Feb 12, 2021 · 4 comments
Closed
Assignees
Labels
type/bug Bug issue

Comments

@s-ocando
Copy link
Contributor

s-ocando commented Feb 12, 2021

Wazuh Elastic Rev
4.1.0 7.10.0 4101-2

The agents evolution graph shows information about unauthorized agents. In this example, the user is authorized to read agent 001 but in the evolution graph is able to see information about two agents (one of which is not allowed to read).

Also in details "Most active agent" the name of an unauthorized agent is shown.

Evolution_graph_error

@sortiz1191
Copy link
Contributor

Added user with specific permissions for test this issue.

@sortiz1191
Copy link
Contributor

  • Adding filter key to query object
    "query": { 'bool':{ 'filter':[ {"match_phrase":{"cluster.name":"wazuh"}}, {"terms": { "agent.id": ["001"] } } ] } },
  • Check discoverPendingUpdates to change or replace the default object with filter key.
  • Testing with custom filter: Not results found

imagen.png

@frankeros frankeros removed this from the Sprint 125 - WUI milestone Mar 8, 2021
@sortiz1191
Copy link
Contributor

  • Added agents to filter object to show only allowed agents by the user
  • Get filter object for agents-preview is always empty. Adding filters to this chart doesn't show anything.
  • Error adding filters on console: server log [19:28:42.486] [error][data][elasticsearch] [version_conflict_engine_exception]: [search-telemetry:search-telemetry]: version conflict, required seqNo [2510], primary term [8]. current document has seqNo [2511] and primary term [8]

@sortiz1191
Copy link
Contributor

  • Added call to get allowed users function after the login.
  • Save allowed agents into redux
  • Load agents allowed using redux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Bug issue
Projects
None yet
Development

No branches or pull requests

3 participants