-
Notifications
You must be signed in to change notification settings - Fork 182
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
Create initialization plugin #7133
Comments
Current applicationThe current healthcheck is a centralized path of each application that checks and creates the minimal items to work: such as index patterns (alerts, monitoring, statistics), edits some settings, checks the connection with Wazuh API server and version compatibility. Some of these checks (index patterns and settings), create/edit items that depend on the selected tenant of the logged user. Some checks are done when changing the URL path and could cause a redirection to the healthcheck. The http client can capture errors related to Wazuh server API connection and redirect to the heatlhcheck too. Migration ideasLocalized checksRun the localized checks in the application, page, or tab level that allows to decouple the checks but could increase the time between navigation. Implementing a cache system for the checks could reduce the check frequency. Parallel processRun the checks in a parallel way. Display the status with bottom bar, notifications. Job in the backend side of Wazuh dashboardCreate items on the backend side when the Wazuh dashboard starts. New store system for saved objectsStore the saved objects (index patterns, settings, future dashboards) into a new store. This could allow the initialization of the items as a job in the backend side of the Wazuh dashboard, but creates a different way to manage similar items. To solve this problem, maybe we could customize the items that are returned when fetching items related to an specific tenant: tenant + Wazuh central items info. |
MeetingWe have decided to run a backend job to initialize the minimal items to work (TBD) when the Wazuh dashboard starts in the global tenant. The setup of other tenants could need some manual step. We should explore the possibility to setup the items depending on the tenant. This could allow to setup other tenants on demand. |
Initialization serviceI created a new service to manage the initiation tasks. This provides a mechanism to register tasks that will be run when the Migrate health check tasksThe checks done in the health check of the frontend side must be migrated to the backend side as initiation tasks:
Tasks tenant-dependantFor the tasks that manage data in the tenant, these will store data in the internal repository ( For other tenants: |
Checks
|
UpdateI am working into adding some API endpoints to retrieve data or run initialization task user-scoped that could replace the current health check done in the frontend side. |
Description
In Wazuh 4.x the health-check process is executed after each login to ensure the application has the necessary conditions to work properly. In Wazuh 5.0 we want to make this process transparent for the user and run initialization and status validation process in the backend. To achieve this we propose to create a specific plugin without user interface to run as a background task.
Objective
Tasks
The steps that have to be completed in order to close the issue.
The text was updated successfully, but these errors were encountered: