mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Remove securityRulesCancelEnabled setting and set shorter default timeouts (#129769)
This commit is contained in:
parent
0955953799
commit
5fb957692e
7 changed files with 2 additions and 8 deletions
|
@ -21,7 +21,6 @@ export const allowedExperimentalValues = Object.freeze({
|
|||
disableIsolationUIPendingStatuses: false,
|
||||
riskyHostsEnabled: false,
|
||||
riskyUsersEnabled: false,
|
||||
securityRulesCancelEnabled: false,
|
||||
pendingActionResponsesWithAck: true,
|
||||
policyListEnabled: true,
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ export const createEqlAlertType = (
|
|||
return {
|
||||
id: EQL_RULE_TYPE_ID,
|
||||
name: 'Event Correlation Rule',
|
||||
ruleTaskTimeout: experimentalFeatures.securityRulesCancelEnabled ? '5m' : '1d',
|
||||
validate: {
|
||||
params: {
|
||||
validate: (object: unknown) => {
|
||||
|
|
|
@ -20,7 +20,7 @@ export const createIndicatorMatchAlertType = (
|
|||
return {
|
||||
id: INDICATOR_RULE_TYPE_ID,
|
||||
name: 'Indicator Match Rule',
|
||||
ruleTaskTimeout: experimentalFeatures.securityRulesCancelEnabled ? '5m' : '1d',
|
||||
ruleTaskTimeout: '1h',
|
||||
validate: {
|
||||
params: {
|
||||
validate: (object: unknown) => {
|
||||
|
|
|
@ -16,11 +16,10 @@ import { CreateRuleOptions, SecurityAlertType } from '../types';
|
|||
export const createMlAlertType = (
|
||||
createOptions: CreateRuleOptions
|
||||
): SecurityAlertType<MachineLearningRuleParams, {}, {}, 'default'> => {
|
||||
const { logger, ml, experimentalFeatures } = createOptions;
|
||||
const { logger, ml } = createOptions;
|
||||
return {
|
||||
id: ML_RULE_TYPE_ID,
|
||||
name: 'Machine Learning Rule',
|
||||
ruleTaskTimeout: experimentalFeatures.securityRulesCancelEnabled ? '5m' : '1d',
|
||||
validate: {
|
||||
params: {
|
||||
validate: (object: unknown) => {
|
||||
|
|
|
@ -20,7 +20,6 @@ export const createQueryAlertType = (
|
|||
return {
|
||||
id: QUERY_RULE_TYPE_ID,
|
||||
name: 'Custom Query Rule',
|
||||
ruleTaskTimeout: experimentalFeatures.securityRulesCancelEnabled ? '5m' : '1d',
|
||||
validate: {
|
||||
params: {
|
||||
validate: (object: unknown) => {
|
||||
|
|
|
@ -24,7 +24,6 @@ export const createSavedQueryAlertType = (
|
|||
return {
|
||||
id: SAVED_QUERY_RULE_TYPE_ID,
|
||||
name: 'Saved Query Rule',
|
||||
ruleTaskTimeout: experimentalFeatures.securityRulesCancelEnabled ? '5m' : '1d',
|
||||
validate: {
|
||||
params: {
|
||||
validate: (object: unknown) => {
|
||||
|
|
|
@ -21,7 +21,6 @@ export const createThresholdAlertType = (
|
|||
return {
|
||||
id: THRESHOLD_RULE_TYPE_ID,
|
||||
name: 'Threshold Rule',
|
||||
ruleTaskTimeout: experimentalFeatures.securityRulesCancelEnabled ? '5m' : '1d',
|
||||
validate: {
|
||||
params: {
|
||||
validate: (object: unknown): ThresholdRuleParams => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue