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

Add frontend serverSecurity service #7026

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Desvelao
Copy link
Member

Description

This pull request adds a serverSecurity client to the wazuh-core plugin and expose it to manage the security of the Wazuh server is a composition of old services:

  • WzUserPermissions
  • useUserPermissions
  • useUserPermissionsRequirements
  • withUserAuthorizationPrompt
  • withUserLogged
  • withUserPermissions
  • withUserPermissionsRequirements
  • WzButtonPermissions
  • WzElementPermissions

Issues Resolved

#6959

Test

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

- Create basic types
- Create CoreServerSecurity implementation
- Create runtime dependencies of serverSecurity
  - hooks
    - useServerUserLogged,
    - useServerUserPermissions,
    - useServerUserPermissionsRequirements,
    - useServerUserPermissionsIsAdminRequirements,
  - hocs
   - withServerUserAuthorizationPrompt,
   - withServerUserLogged,
  - ui
    - ServerButtonPermissions
    - ServerElementPermissions
- Export the serverSecurity service in the lifecycle methods of core
  plugin
@Desvelao Desvelao self-assigned this Sep 27, 2024
@Desvelao Desvelao linked an issue Sep 27, 2024 that may be closed by this pull request
6 tasks
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.

Extract common services from main plugin
1 participant