-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for updates when user logs in (#6001)
* Delete cron job * Delete settings managment * Remove 'Wazuh' word from UI * Remove unnecesary constants * Expose and consume security from Wazuh Core * Fix unit test types * Delete 'Wazuh' from title * Set sessionStorage with checkUpdates * Fix snapshot unit test * Improve default messages and colors in update status column * Move constant definition to inside the component
- Loading branch information
1 parent
9761b19
commit d0a9302
Showing
42 changed files
with
303 additions
and
533 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,10 @@ | ||
import path from 'path'; | ||
|
||
export const PLUGIN_ID = 'wazuhCheckUpdates'; | ||
export const PLUGIN_NAME = 'wazuh_check_updates'; | ||
|
||
export const SAVED_OBJECT_UPDATES = 'wazuh-check-updates-available-updates'; | ||
export const SAVED_OBJECT_SETTINGS = 'wazuh-check-updates-settings'; | ||
export const SAVED_OBJECT_USER_PREFERENCES = 'wazuh-check-updates-user-preferences'; | ||
|
||
export const DEFAULT_SCHEDULE = '0 0 * * *'; | ||
|
||
export enum routes { | ||
checkUpdates = '/api/wazuh-check-updates/updates', | ||
userPreferences = '/api/wazuh-check-updates/user-preferences/me', | ||
} | ||
|
||
// Security | ||
export const WAZUH_SECURITY_PLUGIN_OPENSEARCH_DASHBOARDS_SECURITY = | ||
'OpenSearch Dashboards Security'; | ||
|
||
// Default Elasticsearch user name context | ||
export const ELASTIC_NAME = 'elastic'; | ||
|
||
// Wazuh data path | ||
const WAZUH_DATA_PLUGIN_PLATFORM_BASE_PATH = 'data'; | ||
export const WAZUH_DATA_PLUGIN_PLATFORM_BASE_ABSOLUTE_PATH = path.join( | ||
__dirname, | ||
'../../../', | ||
WAZUH_DATA_PLUGIN_PLATFORM_BASE_PATH | ||
); | ||
export const WAZUH_DATA_ABSOLUTE_PATH = path.join( | ||
WAZUH_DATA_PLUGIN_PLATFORM_BASE_ABSOLUTE_PATH, | ||
'wazuh' | ||
); | ||
|
||
// Wazuh data path - config | ||
export const WAZUH_DATA_CONFIG_DIRECTORY_PATH = path.join(WAZUH_DATA_ABSOLUTE_PATH, 'config'); | ||
export const WAZUH_DATA_CONFIG_APP_PATH = path.join(WAZUH_DATA_CONFIG_DIRECTORY_PATH, 'wazuh.yml'); | ||
|
||
// Wazuh data path - logs | ||
export const MAX_MB_LOG_FILES = 100; | ||
export const WAZUH_DATA_LOGS_DIRECTORY_PATH = path.join(WAZUH_DATA_ABSOLUTE_PATH, 'logs'); | ||
export const WAZUH_DATA_LOGS_PLAIN_FILENAME = 'wazuhapp-plain.log'; | ||
export const WAZUH_DATA_LOGS_RAW_FILENAME = 'wazuhapp.log'; | ||
|
||
// App configuration | ||
export const WAZUH_CONFIGURATION_CACHE_TIME = 10000; // time in ms; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.