Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollback configuration store from saved object to configuration file (#…
…6573) * rollback(configuration-store): rollback the store system to configuration file - Rollback the store system to configuration file - Change WAZUH_CORE_CONFIGURATION_CACHE_SECONDS from 60 to 10 - Create logic to ensure the configuration file is created else create it with default configuration on start - Remove task to migrate the configuration file to saved object - Enhance the Configuration service to include references to categories and some utility functions - Remove plugin settings: - wazuh_core.instance - wazuh_core.encryption_key * remove(configuration): remove the migration task of configuration file to saved object * rollback(configuration): remove references to plugin settings defition * rollback(configuration): remove enhanceConfiguration from frontend side * fix(configuration): replace logger methods for noop * rollback(configuration): display the path to the configuration file on App Settings application - Display the real path of the configuration file instead of the fixed value on App Settings - Add configuration_file property to the response of GET /api/setup - Refactor the ConfigurationStore services - Minor enhancements typed code * remove: unused constant PLUGIN_PLATFORM_BASE_INSTALLATION_PATH * rollback(configuration): remove management of API connections on Server APIs - Remove buttons to edit and remove from the table - Change the form to add an API connection by information about editing the configuration file * rollback(configuration): remove management of API connection from the backend side - Remove API endpoints and related controllers - POST /hosts/apis/{id} - PUT /hosts/apis/{id} - DELETE /hosts/apis/{id} - Remove methods to manage the API connections in the ManageHosts service * fix: fix innaccesible view of Miscellaneous tab on App Settings * fix(configuration): fix error when editing some setting from the UI due to an error in the backend side - Renamed setting properties: - validate -> validateUIForm - validateBackend -> validate - Adapted the validation on the affected API endpoints - Removed transformation of changed values of useForm hook. This transformation is now done externally. * rollback(configuration): clear entry on configuration file * rollback(configuration): remove API endpoint POST /utils/configuration/import * feat(configuration): enhance validation of plugin settings * feat(configuration): enhance validation of enrollment.dns plugin setting - Enhance the validation of enrollment.dns setting - Replace the validation of the server address input on Deploy new agent guide by the validation of enrollment.dns plugin setting - Remove validateServerAddress method and related tests. Move tests to apply to SettingsValidator * clean: import of non-existent method * rollback(configuration): remove import configuration from file * fix(configuration): remove the visibility of default values of customization settings on App Settings - Create getSettingValueIfNotSet method for Configuration services to manage the customization settings - Adapt the getCustomizationSetting method of Configuration service to use getSettingValueIfNotSet - Change the parameters of getCustomizationSetting of Configuration service to support multiple settings - Adapt printer to the usage of getCustomizationSettings redefinition - Enhance code typings * fix(configuration): minimize the references to branding on the configuration file * rollback(administrator): consideration of administrator user - Rollback to the consideration of administrator user based on the administrator API connection role - Create logic to check this consideration to the DashboardSecurity services in frontend and backend side - Add getAccountFromJWTAPIDecodedToken method to frontend side - Adapt the WzAuthentication service to use the getAccountFromJWTAPIDecodedToken - Add a constant that defines the ID for the administrator role of the API connection - Remove previous consideration based on the access to the security REST API of the platform - Remove API endpoint `GET /utils/account` and getPluginScopedAccount controller - Remove fetch user account data from the frontend side - Remove fetchAccount method of DashboardSecurity service on the frontend side - Adapt routeDecoratorProtectedAdministrator route decorator - Enhance the message about the administrator missing requirements - Rename administrator_error_message to administrator_requirements related to the consideration of administrator user * changelog: adapt some entries related to rollback the configuartion store in the backend side * test: fix reporting tests * tests: fix of core plugin * rollback: remove encryption service * tests: fix tests * tests: remove references to deprecated validateBackend method of plugin settings * tests(configuration-store): add tests * remove: deprecated createLogFileIfNotExists method * fix: comment * fix(configuration-store): dirname of configuration file * rollback(configuration-store): rename logger of ConfigurationStore service * rollback(configuration): remove API endpoint POST /utils/configuration/clear - Remove API endpoint POST /utils/configuration/clear - Remove route controller * fix(configuration): fix error removing customization logos in a short period of time - Add plugin setting category: API_CONNECTION (related to hosts setting) - Replace the category of hosts plugin setting - Refactor the setting.store.file interface: - Remove configurable - Add configurableManaged and defaultBlock - Adapt the plugin settings defitions with these changes - Remove the configuration block related to the API connections from the ConfigurationStore service to the plugin setting definition through the defaultBlock - Enhance logging on ManageHosts * tests(configuration-store): adapt to latest changes
- Loading branch information