-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update imposter * Fix toltip in security * Remove requests when closing flyouts without changes * Update changelog * Update create-policy.tsx * Fix possible undefinded
- Loading branch information
1 parent
50ca309
commit c79d008
Showing
33 changed files
with
918 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
Oops, something went wrong.