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

Fixed tooltip in security #5631

Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ All notable changes to the Wazuh app project will be documented in this file.

- Support for Wazuh 4.7.0

### Fixed

- Fixed the tooltips of the tables in the security section, and unnecessary requests are removed. [#5631](https://github.com/wazuh/wazuh-kibana-app/pull/5631)

## Wazuh v4.6.0 - OpenSearch Dashboards 2.6.0 - Revision 01

### Added
Expand Down
6 changes: 5 additions & 1 deletion docker/imposter/initial_data.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"attempt": 0,
"callRestart": false
"callRestart": false,
"deleteUser": false,
"deleteRole": false,
"deletePolicies": false,
"deleteRolesMapping": false
}
28 changes: 28 additions & 0 deletions docker/imposter/security/policies/delete-policies.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var id = context.request.queryParams.policy_ids;
var storeWazuh = stores.open('storeWazuh');

storeWazuh.save('deletePolicies', true);

var data = {
data: {
affected_items: [
{
id: id,
name: 'TestWazuhPolicy',
policy: {
actions: ['security:delete'],
resources: ['user:id:*'],
effect: 'deny',
},
roles: [],
},
],
total_affected_items: 1,
total_failed_items: 0,
failed_items: [],
},
message: 'All specified policies were deleted',
error: 0,
};

respond().withStatusCode(200).withData(JSON.stringify(data));
Loading