Skip to content

Commit

Permalink
Refine UI and Remove wazuh prefix (#6155)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Apr 2, 2024
1 parent a819844 commit fc92c44
Show file tree
Hide file tree
Showing 83 changed files with 1,341 additions and 1,054 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Changed the usage of the endpoint GET /groups/{group_id}/files/{file_name} [#6385](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6385)
- Refactoring and redesign endpoints summary visualizations [#6268](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6268)
- Remove AngularJS controller for manage groups [#6543](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6543)
- Remove some branding references across the application. [#6155](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6155)

### Fixed

Expand Down
480 changes: 222 additions & 258 deletions plugins/main/common/api-info/endpoints.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion plugins/main/common/api-info/security-actions.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@
"GET /groups/{group_id}/configuration",
"GET /groups/{group_id}/files",
"GET /groups/{group_id}/files/{file_name}",
"GET /groups/{group_id}/files/{file_name}?raw=true",
"GET /overview/agents"
]
},
Expand Down
6 changes: 3 additions & 3 deletions plugins/main/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const REPORTS_PAGE_FOOTER_TEXT = 'Copyright © 2024 Wazuh, Inc.';
export const REPORTS_PAGE_HEADER_TEXT = '[email protected]\nhttps://wazuh.com';

// Plugin platform
export const PLUGIN_PLATFORM_NAME = 'Wazuh dashboard';
export const PLUGIN_PLATFORM_NAME = 'dashboard';
export const PLUGIN_PLATFORM_BASE_INSTALLATION_PATH =
'/usr/share/wazuh-dashboard/data/wazuh/';
export const PLUGIN_PLATFORM_INSTALLATION_USER = 'wazuh-dashboard';
Expand All @@ -299,7 +299,7 @@ export const PLUGIN_PLATFORM_REQUEST_HEADERS = {
};

// Plugin app
export const PLUGIN_APP_NAME = 'Wazuh dashboard';
export const PLUGIN_APP_NAME = 'dashboard';

// UI
export const API_NAME_AGENT_STATUS = {
Expand Down Expand Up @@ -394,7 +394,7 @@ export const DOCUMENTATION_WEB_BASE_URL = 'https://documentation.wazuh.com';
export const ELASTIC_NAME = 'elastic';

// Default Wazuh indexer name
export const WAZUH_INDEXER_NAME = 'Wazuh indexer';
export const WAZUH_INDEXER_NAME = 'indexer';

// Not timeFieldName on index pattern
export const NOT_TIME_FIELD_NAME_INDEX_PATTERN =
Expand Down
2 changes: 1 addition & 1 deletion plugins/main/common/csv-key-equivalence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,5 @@ export const KeyEquivalence: {[key: string]: string} = {
reason: 'Reason',
registerIP: 'Register IP',
hotfix: 'Update code',
'scan.time': 'Registered by Wazuh at'
'scan.time': 'Registered at'
};
2 changes: 1 addition & 1 deletion plugins/main/common/wazuh-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const WAZUH_MODULES = {
devTools: {
title: 'API console',
appId: 'api-console',
description: 'Test the Wazuh API endpoints.',
description: 'Test the API endpoints.',
},
logtest: {
title: 'Test your logs',
Expand Down
90 changes: 50 additions & 40 deletions plugins/main/public/components/add-modules-data/guides/audit.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
/*
* Wazuh app - System auditing interactive extension guide
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Find more information about this on the LICENSE file.
*/
* Wazuh app - System auditing interactive extension guide
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Find more information about this on the LICENSE file.
*/

import { webDocumentationLink } from "../../../../common/services/web_documentation";
import { webDocumentationLink } from '../../../../common/services/web_documentation';

export default {
id: 'audit',
name: 'System auditing',
xml_tag: 'localfile',
description: 'Configuration options of the System auditing extension.',
category: 'Auditing and policy monitoring',
documentation_link: webDocumentationLink('user-manual/reference/ossec-conf/localfile.html'),
documentation_link: webDocumentationLink(
'user-manual/reference/ossec-conf/localfile.html',
),
icon: 'securityApp',
avaliable_for_manager: true,
avaliable_for_agent: true,
Expand All @@ -29,50 +31,54 @@ export default {
elements: [
{
name: 'log_format',
description: 'Set the format of the log to be read. field is required',
description:
'Set the format of the log to be read. field is required',
type: 'input',
required: true,
placeholder: 'audit',
default_value: 'audit',
field_read_only: true
field_read_only: true,
},
{
name: 'location',
description: 'Option to get the location of a log or a group of logs. strftime format strings may be used for log file names.',
description:
'Option to get the location of a log or a group of logs. strftime format strings may be used for log file names.',
type: 'input',
required: true,
placeholder: 'Log or group of logs location',
default_value: '/var/log/audit/audit.log',
field_read_only: true
field_read_only: true,
},
{
name: 'command',
description: 'Given a command output, it will be read as one or more log messages depending on command or full_command is used.',
description:
'Given a command output, it will be read as one or more log messages depending on command or full_command is used.',
type: 'input',
placeholder: 'Any command line, optionally including arguments'
placeholder: 'Any command line, optionally including arguments',
},
{
name: 'alias',
description: 'Change a command name in the log message.',
type: 'input',
placeholder: 'Alias'
placeholder: 'Alias',
},
{
name: 'frequency',
description: 'Prevents a command from being executed in less time than the specified time (in seconds). This options can be used with command and full_command.',
description:
'Prevents a command from being executed in less time than the specified time (in seconds). This options can be used with command and full_command.',
type: 'input-number',
values: { min: 1 },
default_value: '',
placeholder: 'Frequency',
validate_error_message: 'Any positive number of seconds'
validate_error_message: 'Any positive number of seconds',
},
{
name: 'only-future-events',
description: `Set it to no to collect events generated since Wazuh agent was stopped.
description: `Set it to no to collect events generated since agent was stopped.
By default, when Wazuh starts it will only read all log content from a given Windows Event Channel since the agent started.
This feature is only compatible with eventchannel log format.`,
type: 'switch',
default_value: true
default_value: true,
},
// { //Not for log_format audit
// name: 'query',
Expand All @@ -94,14 +100,16 @@ export default {
// },
{
name: 'target',
description: 'Target specifies the name of the socket where the output will be redirected. The socket must be defined previously.',
description:
'Target specifies the name of the socket where the output will be redirected. The socket must be defined previously.',
type: 'input',
default_value: 'agent',
placeholder: 'Any defined socket'
placeholder: 'Any defined socket',
},
{
name: 'out_format',
description: 'This option allows formatting logs from Logcollector using field substitution.',
description:
'This option allows formatting logs from Logcollector using field substitution.',
info: `log: Message from the log.
json_escaped_log: Message from the log, escaping JSON reserver characters.
output: Output from a command. Alias of log.
Expand All @@ -112,24 +120,26 @@ export default {
hostname: System’s host name.
host_ip: Host’s primary IP address.`,
type: 'input',
placeholder: 'Formatting logs from Logcollector using field substitution',
placeholder:
'Formatting logs from Logcollector using field substitution',
show_attributes: true,
attributes: [
{
name: 'target',
description: 'This option selects a defined target to apply the output format',
description:
'This option selects a defined target to apply the output format',
type: 'input',
required: true,
placeholder: 'Any target defined in the option <target>.'
}
]
placeholder: 'Any target defined in the option <target>.',
},
],
},
{
name: 'ignore_binaries',
description: `This specifies to ignore binary files, testing if the file is UTF8 or ASCII.
If this is set to yes and the file is, for example, a binary file, it will be discarded.`,
info: 'On Windows agents, it will also check if the file is encoded with UCS-2 LE BOM or UCS-2 BE BOM.',
type: 'switch'
type: 'switch',
},
{
name: 'age',
Expand All @@ -138,23 +148,23 @@ export default {
type: 'input',
placeholder: 'Time in format <number><time unit suffix>',
validate_error_message: `A positive number that should contain a suffix character indicating a time unit, such as, s (seconds), m (minutes), h (hours), d (days).`,
validate_regex: /^[1-9]\d*[s|m|h|d]$/
validate_regex: /^[1-9]\d*[s|m|h|d]$/,
},
{
name: 'exclude',
description: `This indicates the location of a wild-carded group of logs to be excluded.
For example, we may want to read all the files from a directory, but exclude those files whose name starts with an e.`,
type: 'input',
placeholder: 'Any log file or wildcard'
placeholder: 'Any log file or wildcard',
},
{
name: 'exclude',
description: `This indicates the location of a wild-carded group of logs to be excluded.
For example, we may want to read all the files from a directory, but exclude those files whose name starts with an e.`,
type: 'input',
placeholder: 'Any log file or wildcard'
}
]
}
]
}
placeholder: 'Any log file or wildcard',
},
],
},
],
};
Loading

0 comments on commit fc92c44

Please sign in to comment.