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

Alerts table and events with allowed agents only #3120

Conversation

CPAlejandro
Copy link
Contributor

@CPAlejandro CPAlejandro commented Apr 6, 2021

Hello guys, in this PR we resolve that both Security Alerts, Security Events Stats and the Events table filter by the users of which we have permissions, to show only these and not all.

In order to test it, you will have to:
-Create an OpenDistro user, with all_access permissions
-Go to Wazuh, create a Policy, where you give reading permissions for some agents, not all.
-Create a Role, associating that newly created Policy
-Create a RoleMapping associating said Role with the previously created agent.
Once this is done you will only have to access Security Alerts and Events to see the changes

Checks

With the next user's cases:

  • User can see all agents
  • User with a restricted set of agents
  • User can't see any agent

Sections:

  • Module > Dashboard without custom added filters
  • Module > Dashboard with custom added filters
  • Module > Events without custom added filters
  • Module > Events with custom added filters
  • Module Mitre > Framework without custom added filters
  • Module Mitre > Framework with custom added filters
  • Module (each of Regulatory Compliance) > Controls without custom added filters
  • Module (each of Regulatory Compliance) > Controls with custom added filters
  • Agents evolution visualization on Agents section
  • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters
  • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters
  • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports.
  • When the user has all agents should not display any of these filters

Closes #3094 , #3096, #3124

@CPAlejandro CPAlejandro self-assigned this Apr 6, 2021
Comment on lines 17 to 20
if(!agentsIds)
return ;
//check for empty agents array
if(agentsIds.length == 0){return }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could simplify the empty return with 2 conditions using the || operator:

if(!agentsIds || agentsIds.length === 0){ return };

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've already changed it, thanks for the tip!

Comment on lines 39 to 49
export async function getAuthorizedAgents() {
const agentsList: IApiResponse<{id: string}> = await WzRequest.apiReq('GET', `/agents`, {})
.catch(error => {
getToasts().addError(error, {title: `Error getting user authorized agents`} as ErrorToastOptions);
return Promise.reject();
});

const allowedAgents = agentsList ? agentsList.data.data.affected_items.map((agent) => agent.id) : []

return allowedAgents;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why mix async/await with .catch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I have changed .catch to a try catch statement. Thanks for reporting it!



export async function getAuthorizedAgents() {
const agentsList: IApiResponse<{id: string}> = await WzRequest.apiReq('GET', `/agents`, {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could need a loop to get all the authorized agents. The current endpoint has a limit of agents returned (500). This should be reviewed.


/**
* Updates allowedAgents in the appState store
* @param GET_ALLOWED_AGENTS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name of the @param doesn't match with the declaration of the function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting it, it has been patched

Comment on lines 189 to 194
export const updateAllowedAgents = data => {
return {
type: 'GET_ALLOWED_AGENTS',
allowedAgents: data
};
};
Copy link
Member

@Desvelao Desvelao Apr 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could replace the data param for allowedAgent and get a more simplified funcion like this:

export const updateAllowedAgents = allowedAgents => {
  return {
    type: 'GET_ALLOWED_AGENTS',
    allowedAgents
  };
};

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the tip, it has been changed

)
const [query] = useQuery();
const filterManager = useFilterManager();
const copyOfFilterManager = filterManager
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say the copyOfFilterManager variable is not using. You could remove this statement.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you have all the reason, it was not being used. It has already been removed. Thanks!

CHANGELOG.md Outdated
Comment on lines 26 to 27
### Known Issues
- The Security Alerts table in Security Events shows alerts for all agents even when the user doesn't have permission to see all agents.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could not make sense right now, after add in other sections the filters for the authorized agents.

CHANGELOG.md Outdated
- Improve toast message when selecting a default API [#3049](https://github.com/wazuh/wazuh-kibana-app/pull/3049)
- Fix rule filter is no applied when you click on a rule id in other module.[#3057](https://github.com/wazuh/wazuh-kibana-app/pull/3057)
- Fixed bug changing master node configuration [#3062](https://github.com/wazuh/wazuh-kibana-app/pull/3062)
- Improved validation and prevention for caching bundles in client side [#3063](https://github.com/wazuh/wazuh-kibana-app/pull/3063)
- Fix wrong variable declaration for macOS agents [#3066](https://github.com/wazuh/wazuh-kibana-app/pull/3066)
- Fix some errors in Events table, action buttons style and urls disappeared [#3086](https://github.com/wazuh/wazuh-kibana-app/pull/3086)
- Rollback of invalid rule configuration file [#3084](https://github.com/wazuh/wazuh-kibana-app/pull/3084)
- Filter only authorized agents in Agents stats and Visualizations [#3088](https://github.com/wazuh/wazuh-kibana-app/pull/3088)
Copy link
Member

@Desvelao Desvelao Apr 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is for 4.2.0-4201 not 4.1.3-4104. It should be updated.

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kibana discover needs to check the agent filter valid format before adding it to the filter manager. If the state is not ready then undefined is added as a filter

public/kibana-integrations/kibana-discover.js Show resolved Hide resolved
@frankeros
Copy link
Contributor

Fixed repeated reports and separated them in reports from normal filters.

image

image

@CPAlejandro CPAlejandro linked an issue Apr 8, 2021 that may be closed by this pull request
@sortiz1191 sortiz1191 self-requested a review April 8, 2021 11:15
Copy link
Contributor

@sortiz1191 sortiz1191 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is working for me! Good Job!

@frankeros frankeros changed the title Feature/3094and3096 alerts table and events with allowed agents only Alerts table and events with allowed agents only Apr 8, 2021
if (agentReadPolicies) {
const allIds = agentReadPolicies['agent:id:*'] == 'allow';
const allGroups = agentReadPolicies['agent:group:*'] == 'allow';
const denyAgents = Object.keys(agentReadPolicies).filter(k => !k.includes('*') && agentReadPolicies[k] == 'deny').length;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you could use .some instead of .filter. You don't need the array filtered.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, great catch tks

@Desvelao
Copy link
Member

Desvelao commented Apr 9, 2021

Test

  • User can see all agents

    • Module > Dashboard without custom added filters
    • Module > Dashboard with custom added filters
    • Module > Events without custom added filters
    • Module > Events with custom added filters
    • Module Mitre > Framework without custom added filters
    • Module Mitre > Framework with custom added filters
    • Module (each of Regulatory Compliance) > Controls without custom added filters
    • Module (each of Regulatory Compliance) > Controls with custom added filters
    • Agents evolution visualization on Agents section
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters
    • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports. ❓ Fails. No filters added about allowed agents in the report
    • When the user has all agents should not display any of these filters
  • User with a restricted set of agents

    • Module > Dashboard without custom added filters
    • Module > Dashboard with custom added filters
    • Module > Events without custom added filters
    • Module > Events with custom added filters
    • Module Mitre > Framework without custom added filters
    • Module Mitre > Framework with custom added filters
    • Module (each of Regulatory Compliance) > Controls without custom added filters
    • Module (each of Regulatory Compliance) > Controls with custom added filters
    • Agents evolution visualization on Agents section
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters
    • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports.
  • User can't see any agent

    • Module > Dashboard without custom added filters
    • Module > Dashboard with custom added filters
    • Module > Events without custom added filters
    • Module > Events with custom added filters
    • Module Mitre > Framework without custom added filters
    • Module Mitre > Framework with custom added filters
    • Module (each of Regulatory Compliance) > Controls without custom added filters
    • Module (each of Regulatory Compliance) > Controls with custom added filters
    • Agents evolution visualization on Agents section. The section are not avaliable.
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters. It doesn't appear the table.
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters. It doesn't appear the table.
    • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports. It can't generate reports due to no alerts info.

@pablomarga
Copy link
Contributor

Test

  • User can see all agents

    • Module > Dashboard without custom added filters
    • Module > Dashboard with custom added filters
    • Module > Events without custom added filters
    • Module > Events with custom added filters
    • Module Mitre > Framework without custom added filters
    • Module Mitre > Framework with custom added filters
    • Module (each of Regulatory Compliance) > Controls without custom added filters
    • Module (each of Regulatory Compliance) > Controls with custom added filters
    • Agents evolution visualization on Agents section
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters
    • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports. . There weren't filters added about allowed agents in the report
    • When the user has all agents should not display any of these filters
  • User with a restricted set of agents

    • Module > Dashboard without custom added filters
    • Module > Dashboard with custom added filters
    • Module > Events without custom added filters
    • Module > Events with custom added filters
    • Module Mitre > Framework without custom added filters
    • Module Mitre > Framework with custom added filters
    • Module (each of Regulatory Compliance) > Controls without custom added filters
    • Module (each of Regulatory Compliance) > Controls with custom added filters
    • Agents evolution visualization on Agents section
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters
    • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports.
  • User can't see any agent

    • Module > Dashboard without custom added filters
    • Module > Dashboard with custom added filters
    • Module > Events without custom added filters
    • Module > Events with custom added filters
    • Module Mitre > Framework without custom added filters
    • Module Mitre > Framework with custom added filters
    • Module (each of Regulatory Compliance) > Controls without custom added filters
    • Module (each of Regulatory Compliance) > Controls with custom added filters
    • Agents evolution visualization on Agents section. The section are not avaliable.
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM without custom added filters. It doesn't appear the table.
    • Flyouts on Module Mitre, each of Regulatory compliance, FIM with custom added filters. It doesn't appear the table.
    • Authorized agents shouldn't be displayed with the explicit filters but at the end of the reports. It can't generate reports due to no alerts info.

@frankeros frankeros merged commit 0370de9 into 4.2-7.10 Apr 9, 2021
@frankeros frankeros deleted the feature/3094and3096-Alerts-table-and-Events-with-allowed-agents-only branch April 9, 2021 15:28
jctello pushed a commit that referenced this pull request Oct 16, 2022
AlexRuiz7 added a commit that referenced this pull request Nov 18, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
AlexRuiz7 pushed a commit that referenced this pull request Nov 18, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 8e1db47)
AlexRuiz7 pushed a commit that referenced this pull request Nov 18, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 8e1db47)
AlexRuiz7 pushed a commit that referenced this pull request Nov 18, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 8e1db47)
AlexRuiz7 pushed a commit that referenced this pull request Nov 21, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 8e1db47)
AlexRuiz7 added a commit that referenced this pull request Nov 21, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
AlexRuiz7 added a commit that referenced this pull request Nov 21, 2022
* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
AlexRuiz7 added a commit that referenced this pull request Nov 21, 2022
* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
github-actions bot pushed a commit that referenced this pull request Nov 21, 2022
* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)
AlexRuiz7 added a commit that referenced this pull request Nov 21, 2022
* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)
AlexRuiz7 added a commit that referenced this pull request Nov 21, 2022
Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
AlexRuiz7 added a commit that referenced this pull request Nov 21, 2022
Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)
Machi3mfl pushed a commit that referenced this pull request Mar 10, 2023
Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)
AlexRuiz7 added a commit that referenced this pull request Apr 17, 2023
* Fixed catch error throw string instead error

* Added ErrorFactory with tests

* Implemented ErrorFactory on generic-request and tests

* Fixed tests

* Refactored errorfactory for create differents error types

* Added prevent create new error when it is

* Added error factory in wz-request

* Added error factory in wz-api-check

* Added error factory in saved-objects and tests

* Changed wz-api-check for typescript file

* Refactoring error factory

* Fixed  generic-request test

* Added Settings Controller tests for onInit event

* Edited ErrorFactory createError

* Added check api service tests

* Moved error factory files

* Added error-handler with new implementation

* Fixed types and unit tests

* Skiped some unit tests

* Skiped react services unit tests

* Added unit test to return error in error handler

* Added new errors  classes relantionship

* Resolved conflict

* Reordered folder structure

* Added error factory unit test for every error classes

* Added error handler unit tests

* Fixed and skipped some errors

* Updated hook and hoc unit tests

* Restoring services state

* Added README

* Fixed unit tests

* Fixed check api service

* Unit tests check api service

* Added unit tests for errorHandler HOC and updated README

* Updated handle error return error instance and unit tests

* Added logOptions in error classes, types and unit tests

* Fixed unit test useErrorHandler hook

* Added WazuhError abstract class

* Added error handler decorator v1

* Fixed generic request unit tests

* Fixed saved objects unit tests

* Fixed wz api check unit tests

* Removed wz request unit test

* Changed log error options

* Cleaned decorator

* Fixed decorator unit tests

* Cleaned code decorator unit tests

* Modified error handler hook and fixed unit tests

* Added README content index

* Fixed content links

* Updated README

* Updated README with more error management details

* Checking signed commit

* Checking which unit test throw error

* Fixed unit tests for Hook and Decorator

* Added error types treatment in README

* Updated README

* Renamed elastic to indexer

* Added error display with custom title and message

* Added title and message customization for every error

* Added error prompt in error handler HOC

* Modified callback call in error handler hook

* Added new error categorization method with unit tests

* Adde docs folder and examples with unit tests

* Updated docs README

* Updated root README

* Solved unit tests

* Added error handler uses cases examples docs

* Updated README error treatment by types

* Updated Readme

* Added title to log native javascript errors

* Modified console log error message structure

* [Backport 4.5-2.3-wzd] Fix Changelog for WzD (#4893)

Fix Changelog for WzD (#4890)

(cherry picked from commit 8391897)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Init changelog 4.5.0

* Bump to 4.5.0

* Bump development Docker environments to 4.5.0 (#4896)

* Fix references to Elasticsearch in plugin for Wazuh stack (#4894)

* fix references to elasticsearch in plugin for wazuh stack

* CHANGELOG

* cleaning code

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* [Backport 4.5] Typo correction (#4688)  (#4913)

Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)

* [Backport 4.5] Fix IPV6 visualizations (#4920)

Fix IPV6 visualizations (#4909)

* create compression function

* Implement IPv6 compressor

* Fix visualization in agent view

* Create unit tests for ipv6-services

* Update changelog

* Add data type verification

* Migrate to ts

* Migrate to ts

* Update to match the styleguide

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit a83bc15)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] 4711 error not caught and wrong error message in pci module  (#4922)

merge

* Fix display of remote protocols when there are more than one (#4917) (#4941)

* Modify render function to separate arrays

* Update changelog

(cherry picked from commit 5dba6f4)

* [Backport 4.5] Add endpoint response (#4995)

Add endpoint response (#4934)

(cherry picked from commit be03e6a)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] Fix changelog (#5106)

Fix changelog (#4936)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit ecf8784)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump v4.4.0-2.4.1-rc1

* Create codeql.yml (#4987)

* Create codeql.yml

Test CodeQL

* Fix codeql workflow branches selector

Suggested codeql branches were incorrectly set unquoted when the doc states they should be quoted

* Create SECURITY.md

* Update codeql.yml

Update target branches as the workflow was not running as expected.

* Update codeql.yml

Remove CodeQL analysis results from pull requests (which are public)

* Create dependabot.yml

Create dependabot configuration, indicating the package manager manually for each branch.

* Update codeql.yml

Add a schedule and new branches to the codeql analysis job

* Enable npm scan instead of yarn scan

Use package.json instead of yarn as there are no yarn.lock in this repository yet.

* Update dependabot.yml

* Update dependabot.yml

Use quotation in branches with numeric shape, so it is recognized as a string, instead of a number. Added quotes in all target-branch instances to avoid doubt when editing.

* Update codeql.yml

- Add matrix strategy to run the workflow on the desired branches.
- Remove `on :push` trigger.

* Update codeql.yml

Add manual trigger

* Update codeql.yml

* Fix tests

* Fix imposter's response

* Add ignore and restrict fields (#5203)

* Add ignore and restrict fields

* change labels

* add changelog

* Remove the last dot

* Change RexExp (#5201)

* change RexExp

* add changelog

* Add `rel="noopener noreferrer"` in documentation links (#5197)

* add rel="noopener noreferrer"

* add changelog

* edit changelog

---------

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>

* Add development Docker image for OpenSearch 2.6.0

Simplifies the images reciving the version to build as parameter

* [Backport 4.5] Remove trailing `-` character for OS value in the list of agents (#5266)

Remove trailing `-` character for OS value in the list of agents (#4828)

* Remove - character when version is empty

* Simplify field default value

* Add changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

* Change group default value to -

* Conflit resolution

---------

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 6a50c9b)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump angular-material from 1.1.18 to 1.2.5 (#5147)

Bumps [angular-material](https://github.com/angular/material) from 1.1.18 to 1.2.5.
- [Release notes](https://github.com/angular/material/releases)
- [Changelog](https://github.com/angular/material/blob/master/CHANGELOG.md)
- [Commits](angular/material@v1.1.18...v1.2.5)

---
updated-dependencies:
- dependency-name: angular-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jwt-decode from 2.2.0 to 3.1.2 (#5148)

Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 2.2.0 to 3.1.2.
- [Release notes](https://github.com/auth0/jwt-decode/releases)
- [Changelog](https://github.com/auth0/jwt-decode/blob/master/CHANGELOG.md)
- [Commits](auth0/jwt-decode@v2.2.0...v3.1.2)

---
updated-dependencies:
- dependency-name: jwt-decode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump markdown-it-link-attributes from 3.0.0 to 4.0.1 (#5149)

Bumps [markdown-it-link-attributes](https://github.com/crookedneighbor/markdown-it-link-attributes) from 3.0.0 to 4.0.1.
- [Release notes](https://github.com/crookedneighbor/markdown-it-link-attributes/releases)
- [Changelog](https://github.com/crookedneighbor/markdown-it-link-attributes/blob/main/CHANGELOG.md)
- [Commits](crookedneighbor/markdown-it-link-attributes@v3.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: markdown-it-link-attributes
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tslint from 5.20.1 to 6.1.3 (#5248)

Bumps [tslint](https://github.com/palantir/tslint) from 5.20.1 to 6.1.3.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.20.1...6.1.3)

---
updated-dependencies:
- dependency-name: tslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump winston from 3.5.1 to 3.8.2 (#5249)

Bumps [winston](https://github.com/winstonjs/winston) from 3.5.1 to 3.8.2.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.5.1...v3.8.2)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 0.21.4 to 1.3.4 (#5230)

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v1.3.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-import-resolver-typescript from 2.7.1 to 3.5.3 (#5250)

Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 2.7.1 to 3.5.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](import-js/eslint-import-resolver-typescript@v2.7.1...v3.5.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump install from 0.10.4 to 0.13.0 (#5251)

Bumps [install](https://github.com/benjamn/install) from 0.10.4 to 0.13.0.
- [Release notes](https://github.com/benjamn/install/releases)
- [Commits](benjamn/install@v0.10.4...v0.13.0)

---
updated-dependencies:
- dependency-name: install
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump needle from 2.9.1 to 3.2.0 (#5253)

Bumps [needle](https://github.com/tomas/needle) from 2.9.1 to 3.2.0.
- [Release notes](https://github.com/tomas/needle/releases)
- [Commits](https://github.com/tomas/needle/commits/v3.2.0)

---
updated-dependencies:
- dependency-name: needle
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump angular-animate from 1.7.8 to 1.8.3 (#5257)

Bumps [angular-animate](https://github.com/angular/angular.js) from 1.7.8 to 1.8.3.
- [Release notes](https://github.com/angular/angular.js/releases)
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](angular/angular.js@v1.7.8...v1.8.3)

---
updated-dependencies:
- dependency-name: angular-animate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript-eslint-parser from 18.0.0 to 22.0.0 (#5255)

Bumps [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser) from 18.0.0 to 22.0.0.
- [Release notes](https://github.com/eslint/typescript-eslint-parser/releases)
- [Changelog](https://github.com/eslint/typescript-eslint-parser/blob/master/CHANGELOG.md)
- [Commits](eslint/typescript-eslint-parser@v18.0.0...v22.0.0)

---
updated-dependencies:
- dependency-name: typescript-eslint-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-plugin-filenames-simple from 0.7.0 to 0.8.0 (#5256)

Bumps [eslint-plugin-filenames-simple](https://github.com/epaew/eslint-plugin-filenames-simple) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/epaew/eslint-plugin-filenames-simple/releases)
- [Changelog](https://github.com/epaew/eslint-plugin-filenames-simple/blob/master/CHANGELOG.md)
- [Commits](epaew/eslint-plugin-filenames-simple@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-filenames-simple
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump js2xmlparser from 3.0.0 to 5.0.0 (#5252)

Bumps [js2xmlparser](https://github.com/michaelkourlas/node-js2xmlparser) from 3.0.0 to 5.0.0.
- [Release notes](https://github.com/michaelkourlas/node-js2xmlparser/releases)
- [Changelog](https://github.com/michaelkourlas/node-js2xmlparser/blob/master/CHANGES.md)
- [Commits](michaelkourlas/node-js2xmlparser@v3.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: js2xmlparser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix jest config

Map axios module

* Bump platform version to 2.6.0

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5217)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Revert "[Backport 4.5] Fix cannot read null properties bug in settings section" (#5275)

Revert "[Backport 4.5] Fix cannot read null properties bug in settings section (#5217)"

This reverts commit 2548fe3.

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5276)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Add noopener noreferrer to externals links (#5274)

* Add noopener noreferrer to externals links

* Fix test

* Add target=_blank and rel=noopener noreferrer

* add changelog

* Fixed catch error throw string instead error

* Added error factory in saved-objects and tests

* Restoring services state

* Resolved conflict in check api service

* Updated CHANGELOG

* Fixed throw error when saved object index pattern not exists

* Fix TypeError in FIM Inventory using new error handler (#5364)

* Resolved requested changes

* Updated CHANGELOG

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>
Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Co-authored-by: Gabriel Díaz <gdiaz@qswarm.com>
Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
github-actions bot pushed a commit that referenced this pull request Apr 17, 2023
* Fixed catch error throw string instead error

* Added ErrorFactory with tests

* Implemented ErrorFactory on generic-request and tests

* Fixed tests

* Refactored errorfactory for create differents error types

* Added prevent create new error when it is

* Added error factory in wz-request

* Added error factory in wz-api-check

* Added error factory in saved-objects and tests

* Changed wz-api-check for typescript file

* Refactoring error factory

* Fixed  generic-request test

* Added Settings Controller tests for onInit event

* Edited ErrorFactory createError

* Added check api service tests

* Moved error factory files

* Added error-handler with new implementation

* Fixed types and unit tests

* Skiped some unit tests

* Skiped react services unit tests

* Added unit test to return error in error handler

* Added new errors  classes relantionship

* Resolved conflict

* Reordered folder structure

* Added error factory unit test for every error classes

* Added error handler unit tests

* Fixed and skipped some errors

* Updated hook and hoc unit tests

* Restoring services state

* Added README

* Fixed unit tests

* Fixed check api service

* Unit tests check api service

* Added unit tests for errorHandler HOC and updated README

* Updated handle error return error instance and unit tests

* Added logOptions in error classes, types and unit tests

* Fixed unit test useErrorHandler hook

* Added WazuhError abstract class

* Added error handler decorator v1

* Fixed generic request unit tests

* Fixed saved objects unit tests

* Fixed wz api check unit tests

* Removed wz request unit test

* Changed log error options

* Cleaned decorator

* Fixed decorator unit tests

* Cleaned code decorator unit tests

* Modified error handler hook and fixed unit tests

* Added README content index

* Fixed content links

* Updated README

* Updated README with more error management details

* Checking signed commit

* Checking which unit test throw error

* Fixed unit tests for Hook and Decorator

* Added error types treatment in README

* Updated README

* Renamed elastic to indexer

* Added error display with custom title and message

* Added title and message customization for every error

* Added error prompt in error handler HOC

* Modified callback call in error handler hook

* Added new error categorization method with unit tests

* Adde docs folder and examples with unit tests

* Updated docs README

* Updated root README

* Solved unit tests

* Added error handler uses cases examples docs

* Updated README error treatment by types

* Updated Readme

* Added title to log native javascript errors

* Modified console log error message structure

* [Backport 4.5-2.3-wzd] Fix Changelog for WzD (#4893)

Fix Changelog for WzD (#4890)

(cherry picked from commit 8391897)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Init changelog 4.5.0

* Bump to 4.5.0

* Bump development Docker environments to 4.5.0 (#4896)

* Fix references to Elasticsearch in plugin for Wazuh stack (#4894)

* fix references to elasticsearch in plugin for wazuh stack

* CHANGELOG

* cleaning code

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* [Backport 4.5] Typo correction (#4688)  (#4913)

Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)

* [Backport 4.5] Fix IPV6 visualizations (#4920)

Fix IPV6 visualizations (#4909)

* create compression function

* Implement IPv6 compressor

* Fix visualization in agent view

* Create unit tests for ipv6-services

* Update changelog

* Add data type verification

* Migrate to ts

* Migrate to ts

* Update to match the styleguide

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit a83bc15)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] 4711 error not caught and wrong error message in pci module  (#4922)

merge

* Fix display of remote protocols when there are more than one (#4917) (#4941)

* Modify render function to separate arrays

* Update changelog

(cherry picked from commit 5dba6f4)

* [Backport 4.5] Add endpoint response (#4995)

Add endpoint response (#4934)

(cherry picked from commit be03e6a)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] Fix changelog (#5106)

Fix changelog (#4936)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit ecf8784)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump v4.4.0-2.4.1-rc1

* Create codeql.yml (#4987)

* Create codeql.yml

Test CodeQL

* Fix codeql workflow branches selector

Suggested codeql branches were incorrectly set unquoted when the doc states they should be quoted

* Create SECURITY.md

* Update codeql.yml

Update target branches as the workflow was not running as expected.

* Update codeql.yml

Remove CodeQL analysis results from pull requests (which are public)

* Create dependabot.yml

Create dependabot configuration, indicating the package manager manually for each branch.

* Update codeql.yml

Add a schedule and new branches to the codeql analysis job

* Enable npm scan instead of yarn scan

Use package.json instead of yarn as there are no yarn.lock in this repository yet.

* Update dependabot.yml

* Update dependabot.yml

Use quotation in branches with numeric shape, so it is recognized as a string, instead of a number. Added quotes in all target-branch instances to avoid doubt when editing.

* Update codeql.yml

- Add matrix strategy to run the workflow on the desired branches.
- Remove `on :push` trigger.

* Update codeql.yml

Add manual trigger

* Update codeql.yml

* Fix tests

* Fix imposter's response

* Add ignore and restrict fields (#5203)

* Add ignore and restrict fields

* change labels

* add changelog

* Remove the last dot

* Change RexExp (#5201)

* change RexExp

* add changelog

* Add `rel="noopener noreferrer"` in documentation links (#5197)

* add rel="noopener noreferrer"

* add changelog

* edit changelog

---------

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>

* Add development Docker image for OpenSearch 2.6.0

Simplifies the images reciving the version to build as parameter

* [Backport 4.5] Remove trailing `-` character for OS value in the list of agents (#5266)

Remove trailing `-` character for OS value in the list of agents (#4828)

* Remove - character when version is empty

* Simplify field default value

* Add changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

* Change group default value to -

* Conflit resolution

---------

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 6a50c9b)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump angular-material from 1.1.18 to 1.2.5 (#5147)

Bumps [angular-material](https://github.com/angular/material) from 1.1.18 to 1.2.5.
- [Release notes](https://github.com/angular/material/releases)
- [Changelog](https://github.com/angular/material/blob/master/CHANGELOG.md)
- [Commits](angular/material@v1.1.18...v1.2.5)

---
updated-dependencies:
- dependency-name: angular-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jwt-decode from 2.2.0 to 3.1.2 (#5148)

Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 2.2.0 to 3.1.2.
- [Release notes](https://github.com/auth0/jwt-decode/releases)
- [Changelog](https://github.com/auth0/jwt-decode/blob/master/CHANGELOG.md)
- [Commits](auth0/jwt-decode@v2.2.0...v3.1.2)

---
updated-dependencies:
- dependency-name: jwt-decode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump markdown-it-link-attributes from 3.0.0 to 4.0.1 (#5149)

Bumps [markdown-it-link-attributes](https://github.com/crookedneighbor/markdown-it-link-attributes) from 3.0.0 to 4.0.1.
- [Release notes](https://github.com/crookedneighbor/markdown-it-link-attributes/releases)
- [Changelog](https://github.com/crookedneighbor/markdown-it-link-attributes/blob/main/CHANGELOG.md)
- [Commits](crookedneighbor/markdown-it-link-attributes@v3.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: markdown-it-link-attributes
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tslint from 5.20.1 to 6.1.3 (#5248)

Bumps [tslint](https://github.com/palantir/tslint) from 5.20.1 to 6.1.3.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.20.1...6.1.3)

---
updated-dependencies:
- dependency-name: tslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump winston from 3.5.1 to 3.8.2 (#5249)

Bumps [winston](https://github.com/winstonjs/winston) from 3.5.1 to 3.8.2.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.5.1...v3.8.2)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 0.21.4 to 1.3.4 (#5230)

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v1.3.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-import-resolver-typescript from 2.7.1 to 3.5.3 (#5250)

Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 2.7.1 to 3.5.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](import-js/eslint-import-resolver-typescript@v2.7.1...v3.5.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump install from 0.10.4 to 0.13.0 (#5251)

Bumps [install](https://github.com/benjamn/install) from 0.10.4 to 0.13.0.
- [Release notes](https://github.com/benjamn/install/releases)
- [Commits](benjamn/install@v0.10.4...v0.13.0)

---
updated-dependencies:
- dependency-name: install
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump needle from 2.9.1 to 3.2.0 (#5253)

Bumps [needle](https://github.com/tomas/needle) from 2.9.1 to 3.2.0.
- [Release notes](https://github.com/tomas/needle/releases)
- [Commits](https://github.com/tomas/needle/commits/v3.2.0)

---
updated-dependencies:
- dependency-name: needle
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump angular-animate from 1.7.8 to 1.8.3 (#5257)

Bumps [angular-animate](https://github.com/angular/angular.js) from 1.7.8 to 1.8.3.
- [Release notes](https://github.com/angular/angular.js/releases)
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](angular/angular.js@v1.7.8...v1.8.3)

---
updated-dependencies:
- dependency-name: angular-animate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript-eslint-parser from 18.0.0 to 22.0.0 (#5255)

Bumps [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser) from 18.0.0 to 22.0.0.
- [Release notes](https://github.com/eslint/typescript-eslint-parser/releases)
- [Changelog](https://github.com/eslint/typescript-eslint-parser/blob/master/CHANGELOG.md)
- [Commits](eslint/typescript-eslint-parser@v18.0.0...v22.0.0)

---
updated-dependencies:
- dependency-name: typescript-eslint-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-plugin-filenames-simple from 0.7.0 to 0.8.0 (#5256)

Bumps [eslint-plugin-filenames-simple](https://github.com/epaew/eslint-plugin-filenames-simple) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/epaew/eslint-plugin-filenames-simple/releases)
- [Changelog](https://github.com/epaew/eslint-plugin-filenames-simple/blob/master/CHANGELOG.md)
- [Commits](epaew/eslint-plugin-filenames-simple@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-filenames-simple
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump js2xmlparser from 3.0.0 to 5.0.0 (#5252)

Bumps [js2xmlparser](https://github.com/michaelkourlas/node-js2xmlparser) from 3.0.0 to 5.0.0.
- [Release notes](https://github.com/michaelkourlas/node-js2xmlparser/releases)
- [Changelog](https://github.com/michaelkourlas/node-js2xmlparser/blob/master/CHANGES.md)
- [Commits](michaelkourlas/node-js2xmlparser@v3.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: js2xmlparser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix jest config

Map axios module

* Bump platform version to 2.6.0

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5217)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Revert "[Backport 4.5] Fix cannot read null properties bug in settings section" (#5275)

Revert "[Backport 4.5] Fix cannot read null properties bug in settings section (#5217)"

This reverts commit 2548fe3.

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5276)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Add noopener noreferrer to externals links (#5274)

* Add noopener noreferrer to externals links

* Fix test

* Add target=_blank and rel=noopener noreferrer

* add changelog

* Fixed catch error throw string instead error

* Added error factory in saved-objects and tests

* Restoring services state

* Resolved conflict in check api service

* Updated CHANGELOG

* Fixed throw error when saved object index pattern not exists

* Fix TypeError in FIM Inventory using new error handler (#5364)

* Resolved requested changes

* Updated CHANGELOG

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>
Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Co-authored-by: Gabriel Díaz <gdiaz@qswarm.com>
Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
(cherry picked from commit 16b55a1)
github-actions bot pushed a commit that referenced this pull request Apr 17, 2023
* Fixed catch error throw string instead error

* Added ErrorFactory with tests

* Implemented ErrorFactory on generic-request and tests

* Fixed tests

* Refactored errorfactory for create differents error types

* Added prevent create new error when it is

* Added error factory in wz-request

* Added error factory in wz-api-check

* Added error factory in saved-objects and tests

* Changed wz-api-check for typescript file

* Refactoring error factory

* Fixed  generic-request test

* Added Settings Controller tests for onInit event

* Edited ErrorFactory createError

* Added check api service tests

* Moved error factory files

* Added error-handler with new implementation

* Fixed types and unit tests

* Skiped some unit tests

* Skiped react services unit tests

* Added unit test to return error in error handler

* Added new errors  classes relantionship

* Resolved conflict

* Reordered folder structure

* Added error factory unit test for every error classes

* Added error handler unit tests

* Fixed and skipped some errors

* Updated hook and hoc unit tests

* Restoring services state

* Added README

* Fixed unit tests

* Fixed check api service

* Unit tests check api service

* Added unit tests for errorHandler HOC and updated README

* Updated handle error return error instance and unit tests

* Added logOptions in error classes, types and unit tests

* Fixed unit test useErrorHandler hook

* Added WazuhError abstract class

* Added error handler decorator v1

* Fixed generic request unit tests

* Fixed saved objects unit tests

* Fixed wz api check unit tests

* Removed wz request unit test

* Changed log error options

* Cleaned decorator

* Fixed decorator unit tests

* Cleaned code decorator unit tests

* Modified error handler hook and fixed unit tests

* Added README content index

* Fixed content links

* Updated README

* Updated README with more error management details

* Checking signed commit

* Checking which unit test throw error

* Fixed unit tests for Hook and Decorator

* Added error types treatment in README

* Updated README

* Renamed elastic to indexer

* Added error display with custom title and message

* Added title and message customization for every error

* Added error prompt in error handler HOC

* Modified callback call in error handler hook

* Added new error categorization method with unit tests

* Adde docs folder and examples with unit tests

* Updated docs README

* Updated root README

* Solved unit tests

* Added error handler uses cases examples docs

* Updated README error treatment by types

* Updated Readme

* Added title to log native javascript errors

* Modified console log error message structure

* [Backport 4.5-2.3-wzd] Fix Changelog for WzD (#4893)

Fix Changelog for WzD (#4890)

(cherry picked from commit 8391897)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Init changelog 4.5.0

* Bump to 4.5.0

* Bump development Docker environments to 4.5.0 (#4896)

* Fix references to Elasticsearch in plugin for Wazuh stack (#4894)

* fix references to elasticsearch in plugin for wazuh stack

* CHANGELOG

* cleaning code

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* [Backport 4.5] Typo correction (#4688)  (#4913)

Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)

* [Backport 4.5] Fix IPV6 visualizations (#4920)

Fix IPV6 visualizations (#4909)

* create compression function

* Implement IPv6 compressor

* Fix visualization in agent view

* Create unit tests for ipv6-services

* Update changelog

* Add data type verification

* Migrate to ts

* Migrate to ts

* Update to match the styleguide

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit a83bc15)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] 4711 error not caught and wrong error message in pci module  (#4922)

merge

* Fix display of remote protocols when there are more than one (#4917) (#4941)

* Modify render function to separate arrays

* Update changelog

(cherry picked from commit 5dba6f4)

* [Backport 4.5] Add endpoint response (#4995)

Add endpoint response (#4934)

(cherry picked from commit be03e6a)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] Fix changelog (#5106)

Fix changelog (#4936)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit ecf8784)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump v4.4.0-2.4.1-rc1

* Create codeql.yml (#4987)

* Create codeql.yml

Test CodeQL

* Fix codeql workflow branches selector

Suggested codeql branches were incorrectly set unquoted when the doc states they should be quoted

* Create SECURITY.md

* Update codeql.yml

Update target branches as the workflow was not running as expected.

* Update codeql.yml

Remove CodeQL analysis results from pull requests (which are public)

* Create dependabot.yml

Create dependabot configuration, indicating the package manager manually for each branch.

* Update codeql.yml

Add a schedule and new branches to the codeql analysis job

* Enable npm scan instead of yarn scan

Use package.json instead of yarn as there are no yarn.lock in this repository yet.

* Update dependabot.yml

* Update dependabot.yml

Use quotation in branches with numeric shape, so it is recognized as a string, instead of a number. Added quotes in all target-branch instances to avoid doubt when editing.

* Update codeql.yml

- Add matrix strategy to run the workflow on the desired branches.
- Remove `on :push` trigger.

* Update codeql.yml

Add manual trigger

* Update codeql.yml

* Fix tests

* Fix imposter's response

* Add ignore and restrict fields (#5203)

* Add ignore and restrict fields

* change labels

* add changelog

* Remove the last dot

* Change RexExp (#5201)

* change RexExp

* add changelog

* Add `rel="noopener noreferrer"` in documentation links (#5197)

* add rel="noopener noreferrer"

* add changelog

* edit changelog

---------

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>

* Add development Docker image for OpenSearch 2.6.0

Simplifies the images reciving the version to build as parameter

* [Backport 4.5] Remove trailing `-` character for OS value in the list of agents (#5266)

Remove trailing `-` character for OS value in the list of agents (#4828)

* Remove - character when version is empty

* Simplify field default value

* Add changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

* Change group default value to -

* Conflit resolution

---------

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 6a50c9b)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump angular-material from 1.1.18 to 1.2.5 (#5147)

Bumps [angular-material](https://github.com/angular/material) from 1.1.18 to 1.2.5.
- [Release notes](https://github.com/angular/material/releases)
- [Changelog](https://github.com/angular/material/blob/master/CHANGELOG.md)
- [Commits](angular/material@v1.1.18...v1.2.5)

---
updated-dependencies:
- dependency-name: angular-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jwt-decode from 2.2.0 to 3.1.2 (#5148)

Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 2.2.0 to 3.1.2.
- [Release notes](https://github.com/auth0/jwt-decode/releases)
- [Changelog](https://github.com/auth0/jwt-decode/blob/master/CHANGELOG.md)
- [Commits](auth0/jwt-decode@v2.2.0...v3.1.2)

---
updated-dependencies:
- dependency-name: jwt-decode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump markdown-it-link-attributes from 3.0.0 to 4.0.1 (#5149)

Bumps [markdown-it-link-attributes](https://github.com/crookedneighbor/markdown-it-link-attributes) from 3.0.0 to 4.0.1.
- [Release notes](https://github.com/crookedneighbor/markdown-it-link-attributes/releases)
- [Changelog](https://github.com/crookedneighbor/markdown-it-link-attributes/blob/main/CHANGELOG.md)
- [Commits](crookedneighbor/markdown-it-link-attributes@v3.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: markdown-it-link-attributes
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tslint from 5.20.1 to 6.1.3 (#5248)

Bumps [tslint](https://github.com/palantir/tslint) from 5.20.1 to 6.1.3.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.20.1...6.1.3)

---
updated-dependencies:
- dependency-name: tslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump winston from 3.5.1 to 3.8.2 (#5249)

Bumps [winston](https://github.com/winstonjs/winston) from 3.5.1 to 3.8.2.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.5.1...v3.8.2)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 0.21.4 to 1.3.4 (#5230)

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v1.3.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-import-resolver-typescript from 2.7.1 to 3.5.3 (#5250)

Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 2.7.1 to 3.5.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](import-js/eslint-import-resolver-typescript@v2.7.1...v3.5.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump install from 0.10.4 to 0.13.0 (#5251)

Bumps [install](https://github.com/benjamn/install) from 0.10.4 to 0.13.0.
- [Release notes](https://github.com/benjamn/install/releases)
- [Commits](benjamn/install@v0.10.4...v0.13.0)

---
updated-dependencies:
- dependency-name: install
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump needle from 2.9.1 to 3.2.0 (#5253)

Bumps [needle](https://github.com/tomas/needle) from 2.9.1 to 3.2.0.
- [Release notes](https://github.com/tomas/needle/releases)
- [Commits](https://github.com/tomas/needle/commits/v3.2.0)

---
updated-dependencies:
- dependency-name: needle
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump angular-animate from 1.7.8 to 1.8.3 (#5257)

Bumps [angular-animate](https://github.com/angular/angular.js) from 1.7.8 to 1.8.3.
- [Release notes](https://github.com/angular/angular.js/releases)
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](angular/angular.js@v1.7.8...v1.8.3)

---
updated-dependencies:
- dependency-name: angular-animate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript-eslint-parser from 18.0.0 to 22.0.0 (#5255)

Bumps [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser) from 18.0.0 to 22.0.0.
- [Release notes](https://github.com/eslint/typescript-eslint-parser/releases)
- [Changelog](https://github.com/eslint/typescript-eslint-parser/blob/master/CHANGELOG.md)
- [Commits](eslint/typescript-eslint-parser@v18.0.0...v22.0.0)

---
updated-dependencies:
- dependency-name: typescript-eslint-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-plugin-filenames-simple from 0.7.0 to 0.8.0 (#5256)

Bumps [eslint-plugin-filenames-simple](https://github.com/epaew/eslint-plugin-filenames-simple) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/epaew/eslint-plugin-filenames-simple/releases)
- [Changelog](https://github.com/epaew/eslint-plugin-filenames-simple/blob/master/CHANGELOG.md)
- [Commits](epaew/eslint-plugin-filenames-simple@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-filenames-simple
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump js2xmlparser from 3.0.0 to 5.0.0 (#5252)

Bumps [js2xmlparser](https://github.com/michaelkourlas/node-js2xmlparser) from 3.0.0 to 5.0.0.
- [Release notes](https://github.com/michaelkourlas/node-js2xmlparser/releases)
- [Changelog](https://github.com/michaelkourlas/node-js2xmlparser/blob/master/CHANGES.md)
- [Commits](michaelkourlas/node-js2xmlparser@v3.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: js2xmlparser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix jest config

Map axios module

* Bump platform version to 2.6.0

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5217)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Revert "[Backport 4.5] Fix cannot read null properties bug in settings section" (#5275)

Revert "[Backport 4.5] Fix cannot read null properties bug in settings section (#5217)"

This reverts commit 2548fe3.

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5276)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Add noopener noreferrer to externals links (#5274)

* Add noopener noreferrer to externals links

* Fix test

* Add target=_blank and rel=noopener noreferrer

* add changelog

* Fixed catch error throw string instead error

* Added error factory in saved-objects and tests

* Restoring services state

* Resolved conflict in check api service

* Updated CHANGELOG

* Fixed throw error when saved object index pattern not exists

* Fix TypeError in FIM Inventory using new error handler (#5364)

* Resolved requested changes

* Updated CHANGELOG

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>
Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Co-authored-by: Gabriel Díaz <gdiaz@qswarm.com>
Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
(cherry picked from commit 16b55a1)
asteriscos pushed a commit that referenced this pull request Apr 19, 2023
…5381)

Added new global error treatment (client-side) (#4163)

* Fixed catch error throw string instead error

* Added ErrorFactory with tests

* Implemented ErrorFactory on generic-request and tests

* Fixed tests

* Refactored errorfactory for create differents error types

* Added prevent create new error when it is

* Added error factory in wz-request

* Added error factory in wz-api-check

* Added error factory in saved-objects and tests

* Changed wz-api-check for typescript file

* Refactoring error factory

* Fixed  generic-request test

* Added Settings Controller tests for onInit event

* Edited ErrorFactory createError

* Added check api service tests

* Moved error factory files

* Added error-handler with new implementation

* Fixed types and unit tests

* Skiped some unit tests

* Skiped react services unit tests

* Added unit test to return error in error handler

* Added new errors  classes relantionship

* Resolved conflict

* Reordered folder structure

* Added error factory unit test for every error classes

* Added error handler unit tests

* Fixed and skipped some errors

* Updated hook and hoc unit tests

* Restoring services state

* Added README

* Fixed unit tests

* Fixed check api service

* Unit tests check api service

* Added unit tests for errorHandler HOC and updated README

* Updated handle error return error instance and unit tests

* Added logOptions in error classes, types and unit tests

* Fixed unit test useErrorHandler hook

* Added WazuhError abstract class

* Added error handler decorator v1

* Fixed generic request unit tests

* Fixed saved objects unit tests

* Fixed wz api check unit tests

* Removed wz request unit test

* Changed log error options

* Cleaned decorator

* Fixed decorator unit tests

* Cleaned code decorator unit tests

* Modified error handler hook and fixed unit tests

* Added README content index

* Fixed content links

* Updated README

* Updated README with more error management details

* Checking signed commit

* Checking which unit test throw error

* Fixed unit tests for Hook and Decorator

* Added error types treatment in README

* Updated README

* Renamed elastic to indexer

* Added error display with custom title and message

* Added title and message customization for every error

* Added error prompt in error handler HOC

* Modified callback call in error handler hook

* Added new error categorization method with unit tests

* Adde docs folder and examples with unit tests

* Updated docs README

* Updated root README

* Solved unit tests

* Added error handler uses cases examples docs

* Updated README error treatment by types

* Updated Readme

* Added title to log native javascript errors

* Modified console log error message structure

* [Backport 4.5-2.3-wzd] Fix Changelog for WzD (#4893)

Fix Changelog for WzD (#4890)

(cherry picked from commit 8391897)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Init changelog 4.5.0

* Bump to 4.5.0

* Bump development Docker environments to 4.5.0 (#4896)

* Fix references to Elasticsearch in plugin for Wazuh stack (#4894)

* fix references to elasticsearch in plugin for wazuh stack

* CHANGELOG

* cleaning code

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* [Backport 4.5] Typo correction (#4688)  (#4913)

Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)

* [Backport 4.5] Fix IPV6 visualizations (#4920)

Fix IPV6 visualizations (#4909)

* create compression function

* Implement IPv6 compressor

* Fix visualization in agent view

* Create unit tests for ipv6-services

* Update changelog

* Add data type verification

* Migrate to ts

* Migrate to ts

* Update to match the styleguide

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit a83bc15)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] 4711 error not caught and wrong error message in pci module  (#4922)

merge

* Fix display of remote protocols when there are more than one (#4917) (#4941)

* Modify render function to separate arrays

* Update changelog

(cherry picked from commit 5dba6f4)

* [Backport 4.5] Add endpoint response (#4995)

Add endpoint response (#4934)

(cherry picked from commit be03e6a)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] Fix changelog (#5106)

Fix changelog (#4936)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit ecf8784)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump v4.4.0-2.4.1-rc1

* Create codeql.yml (#4987)

* Create codeql.yml

Test CodeQL

* Fix codeql workflow branches selector

Suggested codeql branches were incorrectly set unquoted when the doc states they should be quoted

* Create SECURITY.md

* Update codeql.yml

Update target branches as the workflow was not running as expected.

* Update codeql.yml

Remove CodeQL analysis results from pull requests (which are public)

* Create dependabot.yml

Create dependabot configuration, indicating the package manager manually for each branch.

* Update codeql.yml

Add a schedule and new branches to the codeql analysis job

* Enable npm scan instead of yarn scan

Use package.json instead of yarn as there are no yarn.lock in this repository yet.

* Update dependabot.yml

* Update dependabot.yml

Use quotation in branches with numeric shape, so it is recognized as a string, instead of a number. Added quotes in all target-branch instances to avoid doubt when editing.

* Update codeql.yml

- Add matrix strategy to run the workflow on the desired branches.
- Remove `on :push` trigger.

* Update codeql.yml

Add manual trigger

* Update codeql.yml

* Fix tests

* Fix imposter's response

* Add ignore and restrict fields (#5203)

* Add ignore and restrict fields

* change labels

* add changelog

* Remove the last dot

* Change RexExp (#5201)

* change RexExp

* add changelog

* Add `rel="noopener noreferrer"` in documentation links (#5197)

* add rel="noopener noreferrer"

* add changelog

* edit changelog

---------

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>

* Add development Docker image for OpenSearch 2.6.0

Simplifies the images reciving the version to build as parameter

* [Backport 4.5] Remove trailing `-` character for OS value in the list of agents (#5266)

Remove trailing `-` character for OS value in the list of agents (#4828)

* Remove - character when version is empty

* Simplify field default value

* Add changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

* Change group default value to -

* Conflit resolution

---------

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 6a50c9b)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump angular-material from 1.1.18 to 1.2.5 (#5147)

Bumps [angular-material](https://github.com/angular/material) from 1.1.18 to 1.2.5.
- [Release notes](https://github.com/angular/material/releases)
- [Changelog](https://github.com/angular/material/blob/master/CHANGELOG.md)
- [Commits](angular/material@v1.1.18...v1.2.5)

---
updated-dependencies:
- dependency-name: angular-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jwt-decode from 2.2.0 to 3.1.2 (#5148)

Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 2.2.0 to 3.1.2.
- [Release notes](https://github.com/auth0/jwt-decode/releases)
- [Changelog](https://github.com/auth0/jwt-decode/blob/master/CHANGELOG.md)
- [Commits](auth0/jwt-decode@v2.2.0...v3.1.2)

---
updated-dependencies:
- dependency-name: jwt-decode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump markdown-it-link-attributes from 3.0.0 to 4.0.1 (#5149)

Bumps [markdown-it-link-attributes](https://github.com/crookedneighbor/markdown-it-link-attributes) from 3.0.0 to 4.0.1.
- [Release notes](https://github.com/crookedneighbor/markdown-it-link-attributes/releases)
- [Changelog](https://github.com/crookedneighbor/markdown-it-link-attributes/blob/main/CHANGELOG.md)
- [Commits](crookedneighbor/markdown-it-link-attributes@v3.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: markdown-it-link-attributes
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tslint from 5.20.1 to 6.1.3 (#5248)

Bumps [tslint](https://github.com/palantir/tslint) from 5.20.1 to 6.1.3.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.20.1...6.1.3)

---
updated-dependencies:
- dependency-name: tslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump winston from 3.5.1 to 3.8.2 (#5249)

Bumps [winston](https://github.com/winstonjs/winston) from 3.5.1 to 3.8.2.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.5.1...v3.8.2)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 0.21.4 to 1.3.4 (#5230)

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v1.3.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-import-resolver-typescript from 2.7.1 to 3.5.3 (#5250)

Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 2.7.1 to 3.5.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](import-js/eslint-import-resolver-typescript@v2.7.1...v3.5.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump install from 0.10.4 to 0.13.0 (#5251)

Bumps [install](https://github.com/benjamn/install) from 0.10.4 to 0.13.0.
- [Release notes](https://github.com/benjamn/install/releases)
- [Commits](benjamn/install@v0.10.4...v0.13.0)

---
updated-dependencies:
- dependency-name: install
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump needle from 2.9.1 to 3.2.0 (#5253)

Bumps [needle](https://github.com/tomas/needle) from 2.9.1 to 3.2.0.
- [Release notes](https://github.com/tomas/needle/releases)
- [Commits](https://github.com/tomas/needle/commits/v3.2.0)

---
updated-dependencies:
- dependency-name: needle
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump angular-animate from 1.7.8 to 1.8.3 (#5257)

Bumps [angular-animate](https://github.com/angular/angular.js) from 1.7.8 to 1.8.3.
- [Release notes](https://github.com/angular/angular.js/releases)
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](angular/angular.js@v1.7.8...v1.8.3)

---
updated-dependencies:
- dependency-name: angular-animate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript-eslint-parser from 18.0.0 to 22.0.0 (#5255)

Bumps [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser) from 18.0.0 to 22.0.0.
- [Release notes](https://github.com/eslint/typescript-eslint-parser/releases)
- [Changelog](https://github.com/eslint/typescript-eslint-parser/blob/master/CHANGELOG.md)
- [Commits](eslint/typescript-eslint-parser@v18.0.0...v22.0.0)

---
updated-dependencies:
- dependency-name: typescript-eslint-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-plugin-filenames-simple from 0.7.0 to 0.8.0 (#5256)

Bumps [eslint-plugin-filenames-simple](https://github.com/epaew/eslint-plugin-filenames-simple) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/epaew/eslint-plugin-filenames-simple/releases)
- [Changelog](https://github.com/epaew/eslint-plugin-filenames-simple/blob/master/CHANGELOG.md)
- [Commits](epaew/eslint-plugin-filenames-simple@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-filenames-simple
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump js2xmlparser from 3.0.0 to 5.0.0 (#5252)

Bumps [js2xmlparser](https://github.com/michaelkourlas/node-js2xmlparser) from 3.0.0 to 5.0.0.
- [Release notes](https://github.com/michaelkourlas/node-js2xmlparser/releases)
- [Changelog](https://github.com/michaelkourlas/node-js2xmlparser/blob/master/CHANGES.md)
- [Commits](michaelkourlas/node-js2xmlparser@v3.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: js2xmlparser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix jest config

Map axios module

* Bump platform version to 2.6.0

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5217)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Revert "[Backport 4.5] Fix cannot read null properties bug in settings section" (#5275)

Revert "[Backport 4.5] Fix cannot read null properties bug in settings section (#5217)"

This reverts commit 2548fe3.

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5276)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Add noopener noreferrer to externals links (#5274)

* Add noopener noreferrer to externals links

* Fix test

* Add target=_blank and rel=noopener noreferrer

* add changelog

* Fixed catch error throw string instead error

* Added error factory in saved-objects and tests

* Restoring services state

* Resolved conflict in check api service

* Updated CHANGELOG

* Fixed throw error when saved object index pattern not exists

* Fix TypeError in FIM Inventory using new error handler (#5364)

* Resolved requested changes

* Updated CHANGELOG

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>
Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Co-authored-by: Gabriel Díaz <gdiaz@qswarm.com>
Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
(cherry picked from commit 16b55a1)

Co-authored-by: Maximiliano Ibarra <6089438+Machi3mfl@users.noreply.github.com>
asteriscos pushed a commit that referenced this pull request Apr 19, 2023
…5382)

Added new global error treatment (client-side) (#4163)

* Fixed catch error throw string instead error

* Added ErrorFactory with tests

* Implemented ErrorFactory on generic-request and tests

* Fixed tests

* Refactored errorfactory for create differents error types

* Added prevent create new error when it is

* Added error factory in wz-request

* Added error factory in wz-api-check

* Added error factory in saved-objects and tests

* Changed wz-api-check for typescript file

* Refactoring error factory

* Fixed  generic-request test

* Added Settings Controller tests for onInit event

* Edited ErrorFactory createError

* Added check api service tests

* Moved error factory files

* Added error-handler with new implementation

* Fixed types and unit tests

* Skiped some unit tests

* Skiped react services unit tests

* Added unit test to return error in error handler

* Added new errors  classes relantionship

* Resolved conflict

* Reordered folder structure

* Added error factory unit test for every error classes

* Added error handler unit tests

* Fixed and skipped some errors

* Updated hook and hoc unit tests

* Restoring services state

* Added README

* Fixed unit tests

* Fixed check api service

* Unit tests check api service

* Added unit tests for errorHandler HOC and updated README

* Updated handle error return error instance and unit tests

* Added logOptions in error classes, types and unit tests

* Fixed unit test useErrorHandler hook

* Added WazuhError abstract class

* Added error handler decorator v1

* Fixed generic request unit tests

* Fixed saved objects unit tests

* Fixed wz api check unit tests

* Removed wz request unit test

* Changed log error options

* Cleaned decorator

* Fixed decorator unit tests

* Cleaned code decorator unit tests

* Modified error handler hook and fixed unit tests

* Added README content index

* Fixed content links

* Updated README

* Updated README with more error management details

* Checking signed commit

* Checking which unit test throw error

* Fixed unit tests for Hook and Decorator

* Added error types treatment in README

* Updated README

* Renamed elastic to indexer

* Added error display with custom title and message

* Added title and message customization for every error

* Added error prompt in error handler HOC

* Modified callback call in error handler hook

* Added new error categorization method with unit tests

* Adde docs folder and examples with unit tests

* Updated docs README

* Updated root README

* Solved unit tests

* Added error handler uses cases examples docs

* Updated README error treatment by types

* Updated Readme

* Added title to log native javascript errors

* Modified console log error message structure

* [Backport 4.5-2.3-wzd] Fix Changelog for WzD (#4893)

Fix Changelog for WzD (#4890)

(cherry picked from commit 8391897)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Init changelog 4.5.0

* Bump to 4.5.0

* Bump development Docker environments to 4.5.0 (#4896)

* Fix references to Elasticsearch in plugin for Wazuh stack (#4894)

* fix references to elasticsearch in plugin for wazuh stack

* CHANGELOG

* cleaning code

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* [Backport 4.5] Typo correction (#4688)  (#4913)

Typo correction (#4688) (#4911)

* Typo correction (#4688)

* Fix adn typo in module description

* Fix arequest typo in comment

* Fix avaliable typo in error message

* Fix badgets typo in comment

* fix de/the typo in comment

* Fix dependentes typo in comment

* Fix missing apostrophe in UI warning message

* Fix Iventory typo in module description

* Fix onwner typo in filter bar descriptions of the FIM inventory

* Fix "othe" typo in module description

* Remove word apparently added by mistake in PR #3120

* Fix "resouces" typo in module description

* Fix "resutls" typo in module description

* Fix "retuns" typo in comment code

* Added missing "y" to "successfull" message when removing policy

* Fix "sugguestions" typo in comment

* Removed extra t in "VirustTotal" on the sample data screen

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>

* Update Changelog

* fix(tests): update snapshots

Co-authored-by: Juan Carlos Tello <juancarlos.tello@wazuh.com>
Co-authored-by: Antonio David Gutiérrez <antonio.gutierrez@wazuh.com>
(cherry picked from commit 4ca3aea)

* [Backport 4.5] Fix IPV6 visualizations (#4920)

Fix IPV6 visualizations (#4909)

* create compression function

* Implement IPv6 compressor

* Fix visualization in agent view

* Create unit tests for ipv6-services

* Update changelog

* Add data type verification

* Migrate to ts

* Migrate to ts

* Update to match the styleguide

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit a83bc15)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] 4711 error not caught and wrong error message in pci module  (#4922)

merge

* Fix display of remote protocols when there are more than one (#4917) (#4941)

* Modify render function to separate arrays

* Update changelog

(cherry picked from commit 5dba6f4)

* [Backport 4.5] Add endpoint response (#4995)

Add endpoint response (#4934)

(cherry picked from commit be03e6a)

Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>

* [Backport 4.5] Fix changelog (#5106)

Fix changelog (#4936)

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit ecf8784)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump v4.4.0-2.4.1-rc1

* Create codeql.yml (#4987)

* Create codeql.yml

Test CodeQL

* Fix codeql workflow branches selector

Suggested codeql branches were incorrectly set unquoted when the doc states they should be quoted

* Create SECURITY.md

* Update codeql.yml

Update target branches as the workflow was not running as expected.

* Update codeql.yml

Remove CodeQL analysis results from pull requests (which are public)

* Create dependabot.yml

Create dependabot configuration, indicating the package manager manually for each branch.

* Update codeql.yml

Add a schedule and new branches to the codeql analysis job

* Enable npm scan instead of yarn scan

Use package.json instead of yarn as there are no yarn.lock in this repository yet.

* Update dependabot.yml

* Update dependabot.yml

Use quotation in branches with numeric shape, so it is recognized as a string, instead of a number. Added quotes in all target-branch instances to avoid doubt when editing.

* Update codeql.yml

- Add matrix strategy to run the workflow on the desired branches.
- Remove `on :push` trigger.

* Update codeql.yml

Add manual trigger

* Update codeql.yml

* Fix tests

* Fix imposter's response

* Add ignore and restrict fields (#5203)

* Add ignore and restrict fields

* change labels

* add changelog

* Remove the last dot

* Change RexExp (#5201)

* change RexExp

* add changelog

* Add `rel="noopener noreferrer"` in documentation links (#5197)

* add rel="noopener noreferrer"

* add changelog

* edit changelog

---------

Co-authored-by: Álex Ruiz <alejandro.ruiz.becerra@wazuh.com>

* Add development Docker image for OpenSearch 2.6.0

Simplifies the images reciving the version to build as parameter

* [Backport 4.5] Remove trailing `-` character for OS value in the list of agents (#5266)

Remove trailing `-` character for OS value in the list of agents (#4828)

* Remove - character when version is empty

* Simplify field default value

* Add changelog

* Update CHANGELOG.md

* Update CHANGELOG.md

* Change group default value to -

* Conflit resolution

---------

Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
(cherry picked from commit 6a50c9b)

Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>

* Bump angular-material from 1.1.18 to 1.2.5 (#5147)

Bumps [angular-material](https://github.com/angular/material) from 1.1.18 to 1.2.5.
- [Release notes](https://github.com/angular/material/releases)
- [Changelog](https://github.com/angular/material/blob/master/CHANGELOG.md)
- [Commits](angular/material@v1.1.18...v1.2.5)

---
updated-dependencies:
- dependency-name: angular-material
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump jwt-decode from 2.2.0 to 3.1.2 (#5148)

Bumps [jwt-decode](https://github.com/auth0/jwt-decode) from 2.2.0 to 3.1.2.
- [Release notes](https://github.com/auth0/jwt-decode/releases)
- [Changelog](https://github.com/auth0/jwt-decode/blob/master/CHANGELOG.md)
- [Commits](auth0/jwt-decode@v2.2.0...v3.1.2)

---
updated-dependencies:
- dependency-name: jwt-decode
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump markdown-it-link-attributes from 3.0.0 to 4.0.1 (#5149)

Bumps [markdown-it-link-attributes](https://github.com/crookedneighbor/markdown-it-link-attributes) from 3.0.0 to 4.0.1.
- [Release notes](https://github.com/crookedneighbor/markdown-it-link-attributes/releases)
- [Changelog](https://github.com/crookedneighbor/markdown-it-link-attributes/blob/main/CHANGELOG.md)
- [Commits](crookedneighbor/markdown-it-link-attributes@v3.0.0...v4.0.1)

---
updated-dependencies:
- dependency-name: markdown-it-link-attributes
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump tslint from 5.20.1 to 6.1.3 (#5248)

Bumps [tslint](https://github.com/palantir/tslint) from 5.20.1 to 6.1.3.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.20.1...6.1.3)

---
updated-dependencies:
- dependency-name: tslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump winston from 3.5.1 to 3.8.2 (#5249)

Bumps [winston](https://github.com/winstonjs/winston) from 3.5.1 to 3.8.2.
- [Release notes](https://github.com/winstonjs/winston/releases)
- [Changelog](https://github.com/winstonjs/winston/blob/master/CHANGELOG.md)
- [Commits](winstonjs/winston@v3.5.1...v3.8.2)

---
updated-dependencies:
- dependency-name: winston
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump axios from 0.21.4 to 1.3.4 (#5230)

Bumps [axios](https://github.com/axios/axios) from 0.21.4 to 1.3.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v0.21.4...v1.3.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-import-resolver-typescript from 2.7.1 to 3.5.3 (#5250)

Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 2.7.1 to 3.5.3.
- [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases)
- [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md)
- [Commits](import-js/eslint-import-resolver-typescript@v2.7.1...v3.5.3)

---
updated-dependencies:
- dependency-name: eslint-import-resolver-typescript
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump install from 0.10.4 to 0.13.0 (#5251)

Bumps [install](https://github.com/benjamn/install) from 0.10.4 to 0.13.0.
- [Release notes](https://github.com/benjamn/install/releases)
- [Commits](benjamn/install@v0.10.4...v0.13.0)

---
updated-dependencies:
- dependency-name: install
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump needle from 2.9.1 to 3.2.0 (#5253)

Bumps [needle](https://github.com/tomas/needle) from 2.9.1 to 3.2.0.
- [Release notes](https://github.com/tomas/needle/releases)
- [Commits](https://github.com/tomas/needle/commits/v3.2.0)

---
updated-dependencies:
- dependency-name: needle
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump angular-animate from 1.7.8 to 1.8.3 (#5257)

Bumps [angular-animate](https://github.com/angular/angular.js) from 1.7.8 to 1.8.3.
- [Release notes](https://github.com/angular/angular.js/releases)
- [Changelog](https://github.com/angular/angular.js/blob/master/CHANGELOG.md)
- [Commits](angular/angular.js@v1.7.8...v1.8.3)

---
updated-dependencies:
- dependency-name: angular-animate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump typescript-eslint-parser from 18.0.0 to 22.0.0 (#5255)

Bumps [typescript-eslint-parser](https://github.com/eslint/typescript-eslint-parser) from 18.0.0 to 22.0.0.
- [Release notes](https://github.com/eslint/typescript-eslint-parser/releases)
- [Changelog](https://github.com/eslint/typescript-eslint-parser/blob/master/CHANGELOG.md)
- [Commits](eslint/typescript-eslint-parser@v18.0.0...v22.0.0)

---
updated-dependencies:
- dependency-name: typescript-eslint-parser
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump eslint-plugin-filenames-simple from 0.7.0 to 0.8.0 (#5256)

Bumps [eslint-plugin-filenames-simple](https://github.com/epaew/eslint-plugin-filenames-simple) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/epaew/eslint-plugin-filenames-simple/releases)
- [Changelog](https://github.com/epaew/eslint-plugin-filenames-simple/blob/master/CHANGELOG.md)
- [Commits](epaew/eslint-plugin-filenames-simple@v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-filenames-simple
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump js2xmlparser from 3.0.0 to 5.0.0 (#5252)

Bumps [js2xmlparser](https://github.com/michaelkourlas/node-js2xmlparser) from 3.0.0 to 5.0.0.
- [Release notes](https://github.com/michaelkourlas/node-js2xmlparser/releases)
- [Changelog](https://github.com/michaelkourlas/node-js2xmlparser/blob/master/CHANGES.md)
- [Commits](michaelkourlas/node-js2xmlparser@v3.0.0...v5.0.0)

---
updated-dependencies:
- dependency-name: js2xmlparser
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix jest config

Map axios module

* Bump platform version to 2.6.0

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5217)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Revert "[Backport 4.5] Fix cannot read null properties bug in settings section" (#5275)

Revert "[Backport 4.5] Fix cannot read null properties bug in settings section (#5217)"

This reverts commit 2548fe3.

* [Backport 4.5] Fix cannot read null properties bug in settings section (#5276)

Fix cannot read null properties bug in settings section (#5135)

* fixed bug cannot read null properties in settings section

* changelog

(cherry picked from commit 4c113f7)

Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>

* Add noopener noreferrer to externals links (#5274)

* Add noopener noreferrer to externals links

* Fix test

* Add target=_blank and rel=noopener noreferrer

* add changelog

* Fixed catch error throw string instead error

* Added error factory in saved-objects and tests

* Restoring services state

* Resolved conflict in check api service

* Updated CHANGELOG

* Fixed throw error when saved object index pattern not exists

* Fix TypeError in FIM Inventory using new error handler (#5364)

* Resolved requested changes

* Updated CHANGELOG

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com>
Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com>
Co-authored-by: Nico Guevara <42900763+Tostti@users.noreply.github.com>
Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Co-authored-by: Gabriel Díaz <gdiaz@qswarm.com>
Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Antonio <34042064+Desvelao@users.noreply.github.com>
(cherry picked from commit 16b55a1)

Co-authored-by: Maximiliano Ibarra <6089438+Machi3mfl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Enhancement issue
Projects
None yet
6 participants