-
Notifications
You must be signed in to change notification settings - Fork 192
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
Migrate wazuh.yml configuration to opensearch_dashboards.yml #7175
Conversation
Pre-testSomething is going wrong with the environment loading. Grabacion.2024-12-02.123459.mp4Change URL manually to TestCheck the Dashboard
|
Field | Type | Validations | Chrome | Firefox | Safari |
---|---|---|---|---|---|
alerts.sample.prefix | EpluginSettingType.text | - String - notEmpty - noSpaces - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', '#', '*') |
🟢 | ⚫ | ⚫ |
configuration.ui_api_editable | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
cron.prefix | EpluginSettingType.text | - String - notEmpty - noSpaces - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>','#', '*') |
🟢 | ⚫ | ⚫ |
customization.enabled | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
enrollment.dns | EpluginSettingType.text | - String - serverAddressHostnameFQDNIPv4IPv6 |
⚫ | ⚫ | ⚫ |
enrollment.password | EpluginSettingType.text | - String | 🟢 | ⚫ | ⚫ |
hideManagerAlerts | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
ip.ignore | EpluginSettingType.editor | - Array of: - String - notEmpty - noSpaces - noLiteralString('.', '..') - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', '#') |
🟢 | ⚫ | ⚫ |
ip.selector | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
wazuh.updates.disabled | EpluginSettingType.switch | - Boolean | ⚫ | ⚫ | ⚫ |
pattern | EpluginSettingType.text | - String - notEmpty - noSpaces - noLiteralString('.', '..') - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', '#') |
🟢 | ⚫ | ⚫ |
timeout | EpluginSettingType.number | - Number (min: 1500, integer) | 🟢 | ⚫ | ⚫ |
vulnerabilities.pattern | EpluginSettingType.text | - String - notEmpty - noSpaces - noLiteralString('.', '..') - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', ',', '#') |
🟢 | ⚫ | ⚫ |
Check the opensearch_dashboards.yml
validations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plugins/wazuh-core/common/services/configuration/configuration.test.ts
Outdated
Show resolved
Hide resolved
plugins/wazuh-core/common/services/configuration/configuration.test.ts
Outdated
Show resolved
Hide resolved
plugins/wazuh-core/common/services/configuration/configuration.test.ts
Outdated
Show resolved
Hide resolved
plugins/wazuh-core/common/services/configuration/configuration-store.test.ts
Outdated
Show resolved
Hide resolved
0b38816
|
|
|
TestCheck the Dashboard
|
Field | Type | Validations | Chrome | Firefox | Safari |
---|---|---|---|---|---|
alerts.sample.prefix | EpluginSettingType.text | - String - notEmpty - noSpaces - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', '#', '*') |
🟢 | ⚫ | ⚫ |
configuration.ui_api_editable | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
cron.prefix | EpluginSettingType.text | - String - notEmpty - noSpaces - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>','#', '*') |
🟢 | ⚫ | ⚫ |
customization.enabled | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
enrollment.dns | EpluginSettingType.text | - String - serverAddressHostnameFQDNIPv4IPv6 |
🟢 | ⚫ | ⚫ |
enrollment.password | EpluginSettingType.text | - String | 🟢 | ⚫ | ⚫ |
hideManagerAlerts | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
ip.ignore | EpluginSettingType.editor | - Array of: - String - notEmpty - noSpaces - noLiteralString('.', '..') - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', '#') |
🟢 | ⚫ | ⚫ |
ip.selector | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
wazuh.updates.disabled | EpluginSettingType.switch | - Boolean | 🟢 | ⚫ | ⚫ |
pattern | EpluginSettingType.text | - String - notEmpty - noSpaces - noLiteralString('.', '..') - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', '#') |
🟢 | ⚫ | ⚫ |
timeout | EpluginSettingType.number | - Number (min: 1500, integer) | 🟢 | ⚫ | ⚫ |
vulnerabilities.pattern | EpluginSettingType.text | - String - notEmpty - noSpaces - noLiteralString('.', '..') - noStartsWith('-', '_', '+', '.') - noInvalidCharacters('\', '/', '?', '"', '<', '>', ',', '#') |
🟢 | ⚫ | ⚫ |
Check the opensearch_dashboards.yml
validations
Field | Type | Validations | Chrome | Firefox | Safari |
---|---|---|---|---|---|
hosts | EpluginSettingType.objectOf | url : - String - notEmpty port : - Number (0-65535) username : - String - notEmpty password : - String - notEmpty run_as : - Boolean |
🔴 | ⚫ | ⚫ |
alerts.sample.prefix 🟢
notEmpty
noSpaces
noStartsWith('-', '_', '+', '.')
noInvalidCharacters('\', '/', '?', '"', '<', '>', '#', '*')
cron.prefix 🟢
notEmpty
noSpaces
noStartsWith('-', '_', '+', '.')
noInvalidCharacters('\', '/', '?', '"', '<', '>', '#', '*')
enrollment.dns 🟢
Fixed opensearch_dashboards.yml » hosts validationHost with negative value on ymlValidation error on start osd serverC.C: @guidomodarelli. |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🟢
Description
This PR move the location of the wazuh.yml to opensearch_dashboards.yml
Closes wazuh/wazuh-dashboard#339
Test
Check the Dashboard
Management > Advanced settings
validations- notEmpty
- noSpaces
- noStartsWith('-', '_', '+', '.')
- noInvalidCharacters('\', '/', '?', '"', '<', '>', '#', '*')
- notEmpty
- noSpaces
- noStartsWith('-', '_', '+', '.')
- noInvalidCharacters('\', '/', '?', '"', '<', '>','#', '*')
- serverAddressHostnameFQDNIPv4IPv6
- String
- notEmpty
- noSpaces
- noLiteralString('.', '..')
- noStartsWith('-', '_', '+', '.')
- noInvalidCharacters('\', '/', '?', '"', '<', '>', '#')
- notEmpty
- noSpaces
- noLiteralString('.', '..')
- noStartsWith('-', '_', '+', '.')
- noInvalidCharacters('\', '/', '?', '"', '<', '>', '#')
- notEmpty
- noSpaces
- noLiteralString('.', '..')
- noStartsWith('-', '_', '+', '.')
- noInvalidCharacters('\', '/', '?', '"', '<', '>', ',', '#')
Check the
opensearch_dashboards.yml
validationsurl
:- String
- notEmpty
port
:- Number (0-65535)
username
:- String
- notEmpty
password
:- String
- notEmpty
run_as
:- Boolean
Check List
yarn test:jest