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

Merge 4.9.0 into master #6635

Merged
merged 42 commits into from
Apr 30, 2024
Merged

Merge 4.9.0 into master #6635

merged 42 commits into from
Apr 30, 2024

Conversation

asteriscos
Copy link
Member

Merge 4.9.0 into master

Caution

Merge PR strategy: Create a merge commit

JuanGarriuz and others added 30 commits April 2, 2024 15:11
* refine ui and remove wazuh prefix

* test fix

* test fixed

* Fixed a test bug

* Tests generalInfo and general-tab fixed

* Wazuh Dashboard prefix remove

* Test fixed

* Replace Wazuh in cache-api-user-has-run-as

* Fix unit test

* Change to lowercase "Server"

* Fix some wazuh prefix

* PluginAppName comment has fixed

* snaps and constants updated

* test updated

* test updated

* Wazuh not ready yet changed

* endpoints.json wazuh prefix remove

* Add commnents to generate-api-data

* Added changelog

* fix: replace some references to Wazuh

* feat: update API data

* fix: label of documenation links

* changelog: edit entry

---------

Co-authored-by: Federico Rodriguez <[email protected]>
Co-authored-by: Antonio David Gutiérrez <[email protected]>
* feat(logging): remove plugin logger from start tasks of main plugin

- Enhance the logging messages
- Minor enhancements

* feat(logging): minor fixes to logging messages in the main plugin

* feat(logging): remove custom logger from endpoints of main plugin

* fix(logging): remove parameter of addJobToQueue

* feat(core): replace the loggin service and move services to core plugin

- Replace the logging services
- Move services to core plugin
  - CacheAPIUserAllowRunAs
  - ManageHosts
  - ServerAPIClient (aka api-interceptor)
  - ServerAPIHostEntries (aka )
  - UpdateConfigurationFile
  - UpdateRegistry
- Adapt the usage of services in the main and check updates plugin from
  core plugin
- Remove plugin logger from main and core plugins
- Remove API endpoint
  - GET /utils/logs/ui
- Remove unused code
- Adapt the test suites

* feat(logging): removed constants related to log files path

* fix(dependency): removed winston dependency of plugins and update the yarn.lock files

* fix(logging): removed logs.level plugin setting

* fix(logging): fixed monitoring and statistics backend tasks

* fix(monitoring): manage API host entries

* feat(core): add description to core services classes

* feat(docs): add docs to core plugin

* feat(docs): add description to core services

* test: fix of check updates plugin

* test: fix of check updates plugin

* feat(logging): remove the App logs application

- Remove GET /utils/logs endpoint
  - Remove related tests
- Remove App logs application

* fix: typo in UpdateRegistry service

* feat: add InputFormPassword component

* feat: add Configuration and ConfigurationStore services for core plugin

- Create Configuration service
- Create ConfigurationStore (backend and frontend side)
- Register the plugin settings in the configuration services

* feat: adapt API endpoints related to configuration to use the Configuration service

- API endpoints:
  - GET /utils/configuration
  - PUT /utils/configuration
  - PUT /utils/configuration/files/{key}
  - DELETE /utils/configuration/files/{key}

* feat: adapt the monitoring task of main plugin to use the Configuration service

* fix: remove unwanted log

* feat: adapt API endpoints related to sample data to the configuration service

* feat: enhance plugin settings to define the mapping in the saved object

* remove: remove buildIndexSettings service

* feat(configuration): remove reference to configuration file in App Settings

* feat(uilib): create buttons that opens flyouts

* fix: plugin settings definition

* feat(configuration): manage API host entries from the Server APIs
application

- Create API endpoints to manage the API host entries
  - PUT /hosts/apis/{id}
  - DELETE /hosts/apis/{id}
- Replace the Add new button on Server APIs application. Now it opens a
  flyout with a form to add the new API host
- Add edit and delete buttons to the table in Server APIs application
- Remove the render of old AddAPI component through AngularJS
- Remove deprecated methods of AngularJS controller related to Server
  APIs application
- Extend the definition of routes of main plugin to accept and use the
  configuration to validate the related endpoints

* feat(configuration): minor fixes and rename field in the settings definition

- Rename the `persistence` field to `store` in the settings definition
  to define how to store in the backend side
- Add readme files related to Configuration and ConfigurationStore
  services
- Add test for Configuration service
- Minor fixes in the Configuration service
- Define new methods for the Configuration instance of the frontend for
  the core plugin

* feat(configuration): code format to categories

* feat(configuration): renamed persistence to store in the setting definition of main plugin

* feat(configuration): workaround for cron.statistics.interval validation funtions

* fix(configuration): remove validation of body to delete API host entry from configuration

* feat(configuration): refactor ManageHosts service

- Refactor ManageHosts service:
  - Integrate the services within the ManageHosts service:
    - CacheAPIUserAllowRunAs
    - ServerAPIHostEntries
  - Renamed:
    - `serverAPIHostEntries.getHostsEntries` to `.getEntries`
    - `.getHostById` to `.get`
  - Adapted the usage of previous separated services
- Replaced the logic in the `DELETE /hosts/apis/{id}` by the usage of
  ManageHosts.delete instead of using the Configuration service
- Adapted the export types in the setup and start plugin life cycle
  methods
- Removed ServerAPIHostEntries: the methods were moved to ManageHosts
  service

* feat(configuration): remove unused UpdateConfigurationFile service

* fix(configuration): remove API host entry from the Server APIs table

* feat(configuration): remove getConfiguration service

- Remove getConfiguration service from the core and main plugins
- Replace partially the usage of getConfiguration service by
  Configuration
  - Add configuration dependency to the ReportPrinter and adapt when
    getting the configuration
  - Replace the usage on GET /api/logos
  - Replace some usages on the monitoring and statistics jobs
- Enhance the backend Configuration service with a .getCustomizationSetting method (replace the logic of old getCustomizationSetting)
- Remove the getCustomizationSetting service

* feat(configuration): enhance .getEntries method of ManageHost service

- Enhance .getEntries method of ManageHost service
  - Adapt usage
- Enhance IConfiguration type

* feat(configuration): Close flyout of adding/editing API host entry when applying the configuration

- Close flyout of adding/editing API host entry when applying the
  configuration

* fix(configuration): enhance the WzButtonOpenFlyout and WzButtonPermissionsOpenFlyout buttons

* fix(configuration): remove some unused services related to settings

* fix(configuration): workaround-to-be-adapted to display the Server API tables despite the current API is down

* fix(configuration): adapt the App Settings applications to the new Configuration service

* fix(configuration): add support to the useForm for arrayOf field type

* test: fix tests of check-updates plugin

* test(configuration): fix some tests

* feat(configuration): remove usage of getConfiguration deprecated service

* feat(configuration): remove deprecated services

- Remove deprecated services:
  - getCategorySettingByTitle
  - getSettingDefaultValue
  - getSettingsDefault
  - getSettingsByCategories
  - getSettingsDefaultList
  - groupSettingsByCategory
  - getPluginSettingDescription
  - services related to the creation of the initial file configuration

* feat(configuration): enhance Configuration.get method cloning the value to return

* remove(configuration): commented validations

* remove(configuration): category settings defition in the main plugin

* fix(configuration): enhance configuration store

- Enhance ConfigurationStore services (frontend and backend side)
- Some replacements of the usage of configuration service

* fix(test): fix tests related to configuration

* fix(test): fix some tests

* test: enhance tests

* feat(configuration): remove reference to wazuh.yml file path

* feat(configuration): add Encryptation backend service

- Add Encryptation backend service
  - Create tests
  - Add new `wazuh_core.encryptation.password` plugin config to be used
    by this service
  - Create instance of this within the ConfigurationStore of the backend
    side
- Enhance the docs

* feat(security): add new DashboardSecurity service to frontend

- Add new DashboardSecurity service to frontend
  - Moved the logic of checkCurrentSecurityPlatform service to a method
    of the new service. Adapt its usage.
  - Replace the logic in the Server API table to use the new service to
    manage the button permissions
  - Create instance in the core plugin and expose to rest of plugins
- Move routeDecoratorProtectedAdministratorRoleValidToken to a new routeDecoratorProtectedAdministrator
  route decorator to protect the routes related to manage the configuration.
   - Affected endpoints:
     - PUT /hosts/apis/{id}
     - DELETE /hosts/apis/{id}
     - PUT /utils/configuration
     - PUT /utils/configuration/files/{key}
     - DELETE /utils/configuration/files/{key}
   - Adapted related tests
- Enhance types of public in core plugin
- Add new method isAdministrator to the security factories in the
  backend side

* feat(configuration): error when updating partial configuration in App Settings

* git(configuration): rename Encryptation to Encryption service

- Rename Encryptation to Encryption service
- Moved the enhancement of Configuration service of the core plugin in
  the frontend side

* feat(encryption): moved the default value to constants

* todo: add todo

* docs(configuration): add a configuration readme file

- Create `user-manual` folder on `docs` of core plugin

* feat(configuratio): move the API is down view

- Move the API is down view
  - Remove render through AngularJS template
  - Remove properties defined in controller
  - Add a new callout to render in Server APIs
    - Include a button that opens a flyout with a basic troubleshooting

* fix(configuration): conditional view API is down callout

* feat(configuration): remove references to wazuh.yml

* feat(configuration): add a task to migrate the configuration file

- Add a task to migrate the configuration file
> After the migration, the configuration file is renamed to avoid the future updates

* feat(configuration): rename plugin settings properties

- Rename setting property: isConfigurableFromFile to isConfigurableFromSettings
- Remove setting property: isConfigurableFromUI
- Remove the settingss definition on the main plugin and some types.
  Adapt the usage of types from the core plugin.

* fix(configuration): fix password fields on editing API host entry

- Fix password fields on edition API host entry that
  displayed an error when this was not modified

* fix(configuration): fix error adding an API host entry

* fix(configuration): fix redefinition of styles related to EuiFormRow

* feat(configuration): reafactor the administrator user

- Create API endpoint: GET /utils/account/is-admin
- Refactor the DashboardSecurity method to get if the current user is
  an admin or not

* fix(configuration): fix default value of port setting of an API entry

* fix(configuration): fix response when the current user is not an administrator

* feat(configuration): add wazuh_core.security.administrator.roles plugin setting

- Add add wazuh_core.security.administrator.roles plugin setting to
  define the administrator users

* feat(configuration): fixed response of ConfigurationStore when updating settings on the server side

* todo(configuration): add todo

* feat(configuration): add CLI to udpate the configuration from file

* feat(configuration): replace the label of Add API host button

* feat(configuration): add endpoint to clear the configuration

- Add endpoint to clear the configuration:
  POST /utils/configuration/clear
- Clear the configuration in the migration or script to set the
  configuration

* feat(confgiuration): change API endpoint /utils/account/is-admin to /utils/account

* feat(configuration): refactor response of GET /utils/account API endpoint

- Rename properties of response of GET /utils/account
  - is_admin to administrator
  - message to administrator_message

* feat(configuration): add an option to clear the previous configuration

* feat(configuration): support for multiple instances of configuration

- Support for multiple instances of configuration that gives the ability
  to deploy multiple instances of Wazuh dashboard with independant
  configurations

* feat(configuration): apply the migration process if there is no saved
object stored

- Changes in the migrate configguration from file process:
  - Apply the migration process if there is no saved object stored yet.
  - Remove the renaming of file

* fix: remove the requirement of administrator user to remove reports in the Reports application

* feat(configuration): rename wazuh_core.configuration.instance to wazuh_core.instance

* remove: remove unused import

* feat(configuration): add user account data to Redux store

* feat(authorization): replace the authorization for the administrator actions

- Change in Redux:
  - Create userAccount property in the appStateReducers
  - Create action creator for the userAccount property
- Fetch the userAccount data when the application is initiated
- Remove previous management of administrator actions
  - Remove Redux action creator
  - Remove state property
  - Remove hooks
  - Remove HOCs
- Remove constants from main and core plugins:
  - WAZUH_ROLE_ADMINISTRATOR_ID
  - WAZUH_ROLE_ADMINISTRATOR_NAME
- Replace the optional requirement of API roles by plugin administrator in the
  WzButtonPermissions
- Replace the optional requirement of API roles by plugin administrator in the
  authorization HOCs
- Replace the protection of endpoints to use the plugin administrator instead
  of based in API roles:
  - POST /elastic/samplealerts/{category}
  - DELETE /elastic/samplealerts/{category}

* fix(configuration): replace the usage of deprecated getSettingDefaultValue

* fix: tests

* feat: rename platform setting from wazuh_core.configuration.encryption_password to wazuh_core.configuration.encryption_key

* fix: tests

* feat: rename script to setup the configuration

* feat(configuration): consider administrator used based on rest API access

- Replace the logic to consider the administrator user based on the rest
  API access
- Removed plugin setting: wazuh_core.security.administrator.roles
- Removed the required configuration of the DashboardSecurity service
  that is not necessary anymore

* feat(configuration): remove unused constant

* feat(configuration): fix clear

* feat(configuration): add cache to ConfigurationStore backend service

- Create CacheTTL class
- Add cache to ConfigurationStoreBackend

* fix(cache): wrong returned value

* fix(menu): minor bugs

- Fix infinte loop of requests when there are not configured API hosts entries
- Fix update of API hosts entries when changin the index pattern

* fix: fix update API host list when swithching the index pattern

* fix: apply buton was disabled when editing

* fix: adapt the configuration management to the stastistics job

* fix: sort the plugin setting categories by title

* fix: display callout related to API seems to be down

* fix: remove unused file

* fix: remove some unwanted comments

* fix: tests

* fix: resolve some todos

* changelog: add pull request entries

* fix: renamed some referecnts to API hosts by API connections

* fix: refactor update API host entry to use the ManageHosts instance instead

* fix: missing variable

* feat: move test of plugin setting input value validation to core plugin

* fix: replace refernces to API connections

* feat: add confirm modal to WzButtonPermissionsOpenFlyout and WzButtonOpenFlyout

* fix: variable name

* fix: move some AngularJS dependencies to the component in the ApiTable component

* fix: remove console log on setup-configuration script

* fix: execution of setup-script through the sh script

* fix: replace details button about the available updates

* feat(manage-hosts): enhance the management of API connections

- Create API endpoint to create API connections:
  - POST /hosts/apis/{id}
- Adapt the API request done by the form of API connection
- Adapt setup-configuration script to use the new API endpoint
- Add method to create API connection to the ManageHosts service

* feat: add platform server mock and wazuh-host test

* fix: enhance error messages in API endpoints related to API hosts management

* feat: enhance setup-configuration script

* fix: description of API endopoint controller

* fix: clear and reset method of Configuration service

* feat(configuration): replace the management of setup the plugins configuration

- Create new API endpoint to import a configuration file
  - POST /utils/configuration/import
- Create method to enhance the configuration of the backend side to
  manage the importation
- Remove duplicated code to check if updating some settings requires to
  do some actions to apply

* remove: remove unneeded script to setup the configuration

* fix(configuration): fix display warnings on settings that requires to run the health check

* feat(configuration): renamed the type of configuration saved objecto to wazuh-dashboard-plugins-config

* fix(configuration): tests

* remove(configuration): unused types and settings-validator service on main plugin

* fix: tests

* remove: remove unused API endpoint GET /api/timestamp

* remove: installationDate field of registry file

* remove: lastRestart field of registry file

* remove: unused method of UpdateRegistry service

* remove: name filed of registry file

* fix: add todo

* remove: remove API endpoint and usage of GET /hosts/remove-orphan-entries

* remove(registry): remove logic to create the registry file on start

* remove: remove API endpoint PUT /hosts/update-hostname/{id}

- Remove API endpoint (route and controller)
- Remove API request of frontend side

* feat(core): move the registry management to in memory cache in ManageHosts service

- Move the registry management to in memory cache managed by ManageHosts
  service.
  - Initialize the registry data on start
  - Update the registry on adding, editing or deleting an API host
- Remove the cacheAPIUserAllowRunAs of the ManageHosts service to use
  the registry data
  - Remove the cacheAPIUserAllowRunAs property of Manage hosts
- Move the logic to check if the run_as is enabled to the ManageHosts
  instead of cacheAPIUserAllowRunAs
- Remove the UpdateRegistry service
- Update the backend types of the core plugin

* changelog: add entry

* fix: move initiation of manageHost service

* fix(registry): enhance message about migrate configuration

* changelog: fix entry

* fix(reporting): tests

* remove: console.log

* fix: error deleting API connection

* fix(api-connections): error editing API connection entry when changing the id

* fix(api-connections): error Run as enabled in the API connections table

* changelog: add pull request entry

---------

Co-authored-by: Ian Yenien Serrano <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>
* Add setting and segregate columns

* Disable api table updater features

* Change wazuh-core constants

* Connect root updater component to redux configuration

* Make the current version column conditional

* Fix getApisAvailableUpdates bind

* Fix checkApi function bind
* feat(blank-screen): remove AngularJS controller of blank screen view

- Remove AngularJS controller of blank screen view
- Remove usage of controller in the html template
- Move logic to manage the error message to the BlankScreen component

* changelog: add pull request

* fix(blank-screen): replace redirection to Overview application instead

* feat(blank-screen): enhance button to go to Overview application

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* feat: remove dev tools and tools controllers

- Remove dev tools and tools controllers
- Replace the render using an AngularJS template by a ReactJS component
- Create ToolsRouter component to manage the routing of Dev Tools and
  Ruleset Test views
- Move logic and render of dev tools to a ReactJS component
- Remove unused definitions of controllers and variables in AngularJS

* fix: prettier

* changelog: add pull request entry

* changelog: move and edit entries

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* Added kpi

* Added changelog

* Updated snaps

* Updated snaps

* Test updated and critical level added

* Update tooltik and messages

* Change filter

* Fix discover plugin links and agents label links

* Update snapshot and changelog

* Fix unit test

* Fix PR suggestions

* Minor style fixes

* Update snapshot

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* Added useIndexPattern from AppState on discover component

* Added factory, handler and data source class with unit tests

* Improved data source management

* Added classes and components to select pattern

* Add select feature and unit tests

* Added unit tests

* Change wz-pattern-selector props, data source like dependency

* Update unit tests

* Fix data source selector import

* Update CHANGELOG

* Adapting types in factory, repository and data source

* Creating solution using data source in vulnerabilities

* Adding data source filter manager

* Applying data source filter manager in dashboard and inventory

* Created data source hook

* Using use data source hook on vuls inventory and dashboard tabs

* Applied use data source

* Applying in discover

* Update data source types to simplify

* Update data source selector component

* Update and clean types

* Fixed all vuls tabs with new typo

* Update data source with inner filter manager

* Implement in vulnerability detection tabs

* Fix unit tests

* Update use search bar hook props

* Apply hook on vuls tabs

* Applied use data source in tabs and added hide remove filter button in search bar

* Remove hide close filter button via js

* Add new controllerBy value to pinned agent

* Adapt use-search-bar to data source

* Fix unit tests

* Fix error on merge 4.9.0

* Add hide remove filter in search bar

* Remove unused code

* Solve requested changes

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* Create Published vulnerabilities severity visualization

* Adapt vulnerabilities injector script
…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
* Remove deprecates css clases and implement OUI styles

* Remove deprecated styles

* Implement euiThemeVars

* Add changelog
…6590)

* Create tabbed content component

* Replace flyout content with the new component

* Update changelog

* Rename file to meet the format specifications
* Increase WZD version to 2.13.0

* Update Node version
* Change getHistory for syncHistoryLocations

* Update changelog

* Add comment

---------

Co-authored-by: Federico Rodriguez <[email protected]>
… cluster module (#6561)

* Migrated Server Management Cluster to embeddables without cluster controller

* Fixed width of Cluster Configuration section

* Rendering conditions are adjusted and clean code

* Deleted controller and visualization monitoring files

* Integrated data-source implementation

* Fixed configuration_cards itemsList, the code is improved and unnecessary code is removed

* Added HOC withGuardAsync

* Changed the source of clusterEnabled information to that provided by the API

* Changed ClusterOverview component class to functional and fixed error on checkClusterIsEnabledAndRunning

* Added more dependencies in useEffect on Cluster Dashboard

* Added error handling to cluster-disabled component

* Fixed alert.timestamp field on SampleData
…#6542)

* Migrated visualizations to embeddables

* Changed searchbar and node selector

* Cleaned dashboard obsolete code

* Added selectedNodeFilter

* Integrated new data source on statistics

* Fixed statistics index without data.

* Added apiName filter

* Fixed nodeName filter when a node is selected in cluster mode

* Added No results message, fixed allow agents filters on request and cleaned obsolete code

* Changed condition of apiName filter, validation of statistics-data-source-repository and abstracted behavior between DashboardListenerEngineStatistics and DashboardAnalysisEngineStatistics

* Deleted unused  use-build-statistics-visualizations hook

* Fixed information message depending on active tab

* Added withUserAuthorizationPrompt to add protection with the user permissions check

* remove(statistics): unused message definitions

* Deleted unused index.ts file on cluster integration-files visualizations

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>
bump: bump revision to 01 for 4.7.4
* changelog: fix entries

* Change enrollment.dns changelog entry

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* remove click-action.js

* update changelog

* Update changelog

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* Create settings component

* Parcial refactor into react component

* Remove angularJS controller

* Remove unnecessary properties

* Add changelog

* fix: category parameter to preselect the app category settings on App Settings from Statistics

* Remove optional chaining operator

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>
* Handle log collector and integrity monitoring falsy values

* Add changelog

* Remove initial assignment

* Add not connected agent guard to configuration view
* Added tab

* Add journald tab

* Added changes to imposter

* journald values filters table

* Update changelog and redesign filters table

* Fixed styles

* Fixed hardcode bug

* Added filters groups

* Change to an accordion render

* Added helps-link

* Added changelog

* Fix changelog and message popover improve

* Update configuration-setting imports

* Fix macOS log title

* resolve comments

* Fixed info euitext render and header no render in journald tab

* Add verification to mac and journald agents and add condition to journald

---------

Co-authored-by: Federico Rodriguez <[email protected]>
bump: 4.7.4 revision 02
…#6525)

* Migrated visualizations, added loadings and messages

* Fixed warning for expected a single ReactElement

* Added new virustotal data source. Changed NoResults and LoadingSpinner to commons components

* Fixed Events tab

* Integrated pinned agent functionality based on data source

* Added timeRange to dashboard useEffect dependencies and changed the way to get pinned agent

* Deleted unused component

* Changed AlertsVirustotalDataSource import in modules-defaults

* Fixed error message

* DashboardByRenderer timeRange params replaced by searchBarProps deconstruction

* Added wz-discover hide-filter-control classes to hide the button that allows you to affect all the filters in the search bar

* Removed unnecessary virus total in Filters tab in common data to remove duplicate filters

* Removed unused getImplicitPinnedAgent in modules-helper

* Added dateRange param to fetchData in dashboard useEffect

* Improved AlertsVirustotalDataSource import in modules-defaults and deleted wz-discover on SearchBar wrapper
…dule (#6486)

* Migrated visualizations to embeddables

* Added withPinnedAgent HOC

* Added dashboard update mechanism depending on whether or not an agent has been pinned

* Pinned agent visualization definitions are migrated and aesthetic adjustments are made

* The interaction was added to the KPIs, the links to the lower table were added, as well as the change of columns when an agent is set

* Integrated new data source on Threat Hunting module

* DiscoverNoResults and LoadingSpinner components are replaced with common components

* Clean code and fixed dashboards conditions

* Improved condition for rendering the dashboard and SampleData message

* Removed unnecessary general/threat hunting in tabFilters in common data to remove duplicate filters

* Removed unused getImplicitPinnedAgent in modules-helper

* Added dateRange param to fetchData in dashboard useEffect, added wz-discover hide-filter-control classes to hide the button that allows you to affect all the filters in the search bar and use searchbarProps deconstruction

* Deleted unnecessary wz-discover class on SearchBar wrapper

* Changed Threat Hunting columns file name

* Deleted unused imports in modules-helper

---------

Co-authored-by: Ian Yenien Serrano <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>
* Moved mitre intelligence to a subfolder

* fix imports

* moved mitre framework

* fix framework imports

* Changed dashboard

* updated snapshots

* Fixed typo

* Added pinned agent mode

* Changed mitre dashboard

* Fix framework tab

* Add mitre data source

* Change framework tab class components to functional components

* Added date picker in search bar

* Add aggregattions to search

* Add columns definition in data grid

* Fix cluster disabled error on filter

* Add receive filter manager like prop

* Create generic components to reuse in discover

* Add mitre attack data source

* Create flyout discover

* Refactor mitre with data source

* Add default fetch filters

* Linter in wz-discover

* Create component to reuse in discover

* Add expanded techniques row inner component

* Apply initial fetch filters on flyout

* Linter on mitre module

* Fix cluster filter

* Fix UI styles

* Add redirect links and apply filters links

* Update CHANGELOG

* Remove unused code and imports

* Fix table headers and cell links

* Move mitre lib to react-services

* Fix files with prettier

* Signed commit

* [Remove discover] Implement embeddable dashboard on server management cluster module (#6561)

* Migrated Server Management Cluster to embeddables without cluster controller

* Fixed width of Cluster Configuration section

* Rendering conditions are adjusted and clean code

* Deleted controller and visualization monitoring files

* Integrated data-source implementation

* Fixed configuration_cards itemsList, the code is improved and unnecessary code is removed

* Added HOC withGuardAsync

* Changed the source of clusterEnabled information to that provided by the API

* Changed ClusterOverview component class to functional and fixed error on checkClusterIsEnabledAndRunning

* Added more dependencies in useEffect on Cluster Dashboard

* Added error handling to cluster-disabled component

* Fixed alert.timestamp field on SampleData

* Remove discover - Implement embeddable dashboard on statistics module (#6542)

* Migrated visualizations to embeddables

* Changed searchbar and node selector

* Cleaned dashboard obsolete code

* Added selectedNodeFilter

* Integrated new data source on statistics

* Fixed statistics index without data.

* Added apiName filter

* Fixed nodeName filter when a node is selected in cluster mode

* Added No results message, fixed allow agents filters on request and cleaned obsolete code

* Changed condition of apiName filter, validation of statistics-data-source-repository and abstracted behavior between DashboardListenerEngineStatistics and DashboardAnalysisEngineStatistics

* Deleted unused  use-build-statistics-visualizations hook

* Fixed information message depending on active tab

* Added withUserAuthorizationPrompt to add protection with the user permissions check

* remove(statistics): unused message definitions

* Deleted unused index.ts file on cluster integration-files visualizations

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>

* Fix changelog entries (#6612)

* changelog: fix entries

* Change enrollment.dns changelog entry

---------

Co-authored-by: Federico Rodriguez <[email protected]>

* Remove AngularJS component click-action.js (#6613)

* remove click-action.js

* update changelog

* Update changelog

---------

Co-authored-by: Federico Rodriguez <[email protected]>

* Refactor settings angularJS controller (#6580)

* Create settings component

* Parcial refactor into react component

* Remove angularJS controller

* Remove unnecessary properties

* Add changelog

* fix: category parameter to preselect the app category settings on App Settings from Statistics

* Remove optional chaining operator

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>

* Fix mitre columns error in techniques on hover

* Hide remove filters on search bar

* Use not global time filter and query in search bar

* Fix filters in visualizations

* Implement journald log collection feature (#6572)

* Added tab

* Add journald tab

* Added changes to imposter

* journald values filters table

* Update changelog and redesign filters table

* Fixed styles

* Fixed hardcode bug

* Added filters groups

* Change to an accordion render

* Added helps-link

* Added changelog

* Fix changelog and message popover improve

* Update configuration-setting imports

* Fix macOS log title

* resolve comments

* Fixed info euitext render and header no render in journald tab

* Add verification to mac and journald agents and add condition to journald

---------

Co-authored-by: Federico Rodriguez <[email protected]>

* Remove global filter manager from common-data

* Fix date range parser on requests

* Fix error when remove query saved

* Add timestamp formatted in events data grid

* [Remove discover] Implement embeddable dashboard on Virustotal module (#6525)

* Migrated visualizations, added loadings and messages

* Fixed warning for expected a single ReactElement

* Added new virustotal data source. Changed NoResults and LoadingSpinner to commons components

* Fixed Events tab

* Integrated pinned agent functionality based on data source

* Added timeRange to dashboard useEffect dependencies and changed the way to get pinned agent

* Deleted unused component

* Changed AlertsVirustotalDataSource import in modules-defaults

* Fixed error message

* DashboardByRenderer timeRange params replaced by searchBarProps deconstruction

* Added wz-discover hide-filter-control classes to hide the button that allows you to affect all the filters in the search bar

* Removed unnecessary virus total in Filters tab in common data to remove duplicate filters

* Removed unused getImplicitPinnedAgent in modules-helper

* Added dateRange param to fetchData in dashboard useEffect

* Improved AlertsVirustotalDataSource import in modules-defaults and deleted wz-discover on SearchBar wrapper

* [Remove discover] Implement embeddable dashboard on Threat Hunting module (#6486)

* Migrated visualizations to embeddables

* Added withPinnedAgent HOC

* Added dashboard update mechanism depending on whether or not an agent has been pinned

* Pinned agent visualization definitions are migrated and aesthetic adjustments are made

* The interaction was added to the KPIs, the links to the lower table were added, as well as the change of columns when an agent is set

* Integrated new data source on Threat Hunting module

* DiscoverNoResults and LoadingSpinner components are replaced with common components

* Clean code and fixed dashboards conditions

* Improved condition for rendering the dashboard and SampleData message

* Removed unnecessary general/threat hunting in tabFilters in common data to remove duplicate filters

* Removed unused getImplicitPinnedAgent in modules-helper

* Added dateRange param to fetchData in dashboard useEffect, added wz-discover hide-filter-control classes to hide the button that allows you to affect all the filters in the search bar and use searchbarProps deconstruction

* Deleted unnecessary wz-discover class on SearchBar wrapper

* Changed Threat Hunting columns file name

* Deleted unused imports in modules-helper

---------

Co-authored-by: Ian Yenien Serrano <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>

* Renamed virus total data source

* Change order fixed filters virus total

* Clean dashboard code

---------

Co-authored-by: Maximiliano <[email protected]>
Co-authored-by: Maximiliano Ibarra <[email protected]>
Co-authored-by: Julio César Biset <[email protected]>
Co-authored-by: Antonio David Gutiérrez <[email protected]>
Co-authored-by: Antonio <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>
Co-authored-by: Ian Yenien Serrano <[email protected]>
yenienserrano and others added 12 commits April 26, 2024 14:04
* Change FIM dashboard

* Update dashboard.tsx

* Removed unnecessary fim in tabFilters in common-data.js

* Conditional rendering sampledatawarining

* Conditional rendering sampledatawarning
* Migrated visualization to embeddables

* Remove old visualizations aws

* Remove overview-aws imports

* Add Date Picker

* Add aws agent dashboard

* Remove old aws agent dashboard

* revert

* Revert "Remove overview-aws imports"

This reverts commit fd0a62c.

* Revert "Remove old aws agent dashboard"

This reverts commit 357bae1.

* Remove prop unnecessary

* Change legend position

* Add loading spinner, no result, sample data warning

* feat(aws): use data source on Dashboard and Events tabs

* render of overview or agent dashboard

* Add unsubscribe use-data-source

* Fix DiscoverNoResults render with date change

* Change imports

* Update dashboard.tsx

* Removed unnecessary aws in tabFilters in common-data.js

* Conditional rendering sampledatawarning

* Conditional rendering sampledatawarning

* Update styles.scss
* feat: remove AngularJS controller of Management

- Remove AngularJS controller of Management
  - Remove deprecated listeners
  - Remove deprecated methods
  - Remove logtestProps from some components that were passed from the
    AngularJS controller
  - Move some methods to ReactJS
- Create router to manage the view to display
- Change button to render the Ruleset Test or Decoders Test to use a
  button that opens a flyout.
  - Remove the flyout components in the Logtest component

* changelog: add entry

* feat(logtest): remove showClose prop in favor to onFlyout

* remove(logtest): unused components

* feat: add comment

* fix(logtest): minor fixes

---------

Co-authored-by: Federico Rodriguez <[email protected]>
* Reduce overview welcome font size

* Add changelog
* Create AgentView component to replace controller

* Replace Kibana visualization

* Improve Events count evolution chart

* Fix Dashboard embeddable

* Fix url update when change tab

* Move file export-configuration

* Fix imports to move file export-configuration

* Delete agents angularjs controller

* Get agent on change tab

* Update CHANGELOG

* Remove unused VisFactoryHandler

* Improve code and remove unused code

---------

Co-authored-by: Federico Rodriguez <[email protected]>
Merge 4.7.4 into 4.8.0
Merge 4.8.0 into 4.9.0
@asteriscos asteriscos self-assigned this Apr 30, 2024
@asteriscos asteriscos mentioned this pull request Apr 30, 2024
6 tasks
Copy link
Member

@jbiset jbiset left a comment

Choose a reason for hiding this comment

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

LGTM!

@asteriscos asteriscos linked an issue Apr 30, 2024 that may be closed by this pull request
6 tasks
Copy link
Contributor

@lucianogorza lucianogorza left a comment

Choose a reason for hiding this comment

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

LGTM!

@asteriscos asteriscos merged commit bea7926 into master Apr 30, 2024
1 check passed
@asteriscos asteriscos deleted the merge-4.9.0-into-master branch April 30, 2024 18:42
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.

Post release tasks for 4.7.4
8 participants