Skip to content

Commit

Permalink
[FEAT]: Add new options of auth for the Registration service configur…
Browse files Browse the repository at this point in the history
…ation (#3806)

* feat: Add new options of auth for the Registration service configuration

* changelog: Add PR to changelog
  • Loading branch information
Desvelao authored Jan 24, 2022
1 parent 74ff7d3 commit 3532602
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ All notable changes to the Wazuh app project will be documented in this file.
- Moved the filterManager subscription to the hook useFilterManager [#3517](https://github.com/wazuh/wazuh-kibana-app/pull/3517)
- Change filter from is to is one of in custom searchbar [#3529](https://github.com/wazuh/wazuh-kibana-app/pull/3529)
- Refactored as module tabs and buttons are rendered [#3494](https://github.com/wazuh/wazuh-kibana-app/pull/3494)
- Updated depracated and new references authd [#3663](https://github.com/wazuh/wazuh-kibana-app/pull/3663)
- Updated the deprecated and added new references authd [#3663](https://github.com/wazuh/wazuh-kibana-app/pull/3663) [#3806](https://github.com/wazuh/wazuh-kibana-app/pull/3806)
- Added time subscription to Discover component [#3549](https://github.com/wazuh/wazuh-kibana-app/pull/3549)
- Refactored as module tabs and buttons are rendered [#3494](https://github.com/wazuh/wazuh-kibana-app/pull/3494)
- Testing logs using the Ruletest Test don't display the rule information if not matching a rule. [#3446](https://github.com/wazuh/wazuh-kibana-app/pull/3446)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,25 @@ const mainSettings = [
label: 'Limit registration to maximum number of agents'
},
{
field: 'force',
label: 'Force registration when using an existing IP address',
render: (value) => value.enabled
}
field: 'force.enabled',
label: 'Force registration when using an existing IP address'
},
{
field: 'force.after_registration_time',
label: 'Specifies that the agent replacement will be performed only when the time (seconds) passed since the agent registration is greater than the value configured in the setting'
},
{
field: 'force.key_mismatch',
label: 'Avoid re-registering agents that already have valid keys'
},
{
field: 'force.disconnected_time.enabled',
label: 'Specifies that the replacement will be performed only for agents that have been disconnected longer than a certain time'
},
{
field: 'force.disconnected_time.value',
label: 'Seconds since an agent is in a disconnected state'
},
];
const sslSettings = [
{ field: 'ssl_verify_host', label: 'Verify agents using a CA certificate' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import React, { Component, Fragment } from 'react';
import PropTypes from 'prop-types';
import { get } from 'lodash';

import {
EuiFlexGroup,
Expand Down Expand Up @@ -56,15 +57,16 @@ class WzSettingsGroup extends Component {
const keyItem = `${title || ''}-${item.label}-${
item.value
}-${key}`;
const value = get(config, item.field);
return (
<WzConfigurationSetting
key={keyItem}
keyItem={keyItem}
label={item.label}
value={
item.render
? item.render(config[item.field])
: config[item.field]
? item.render(value)
: value
}
/>
);
Expand Down

0 comments on commit 3532602

Please sign in to comment.