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

[Backport 4.6.0-7.10] Add specific RBAC permissions to Security section #5618

Merged
merged 1 commit into from
Jul 5, 2023

Conversation

Desvelao
Copy link
Member

Backport 252822a from #5551

* feat(rbac): add specific RBAC permissions to actions and views

- Add specific RBAC permissions to actions and views
- Remove unused code

* changelog: add pull request entry

* feat(imposter): add mocked API request to imposter

* fix: change title of Security>Roles mapping

* feat: rename files related to API mocked request and add response for GET /security/rules

* fix: fix layout of edit security role flyout

* fix: add missing security permission when the new user is assigned some roles

* Add security actions response

* Add PLUGIN_SECURITY_POLICIES_DENY_UPDATE_POLICY

* fix: permissions when creating or editing a security Role mapping

* fix: remove unused code

* fix: use constant instead of hardcoded values for the WUI security rules from API

* fix: use optional chaining operator

---------

Co-authored-by: yenienserrano <ian.serrano@wazuh.com>
(cherry picked from commit 252822a)
@Desvelao Desvelao requested a review from a team as a code owner June 28, 2023 09:46
@Desvelao Desvelao self-assigned this Jun 28, 2023
@github-actions
Copy link
Contributor

Code coverage (Jest) % values
Statements 9.55% ( 3520 / 36857 )
Branches 5.02% ( 1433 / 28573 )
Functions 8.23% ( 752 / 9134 )
Lines 9.63% ( 3400 / 35309 )

Copy link
Member

@yenienserrano yenienserrano left a comment

Choose a reason for hiding this comment

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

LGTM

image

@AlexRuiz7 AlexRuiz7 merged commit bcf4c3a into 4.6.0-7.10 Jul 5, 2023
@AlexRuiz7 AlexRuiz7 deleted the backport-5551-to-4.6.0-7.10 branch July 5, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot access to Users administration with other role than administrator
3 participants