diff --git a/x-pack/plugins/stack_connectors/server/connector_types/server_log/index.ts b/x-pack/plugins/stack_connectors/server/connector_types/server_log/index.ts index 4d404369ba11d2..0275b2bdc2f3fb 100644 --- a/x-pack/plugins/stack_connectors/server/connector_types/server_log/index.ts +++ b/x-pack/plugins/stack_connectors/server/connector_types/server_log/index.ts @@ -17,6 +17,7 @@ import type { import { AlertingConnectorFeatureId, UptimeConnectorFeatureId, + SecurityConnectorFeatureId, } from '@kbn/actions-plugin/common/connector_feature_config'; import { withoutControlCharacters } from '../lib/string_utils'; @@ -55,7 +56,11 @@ export function getConnectorType(): ServerLogConnectorType { name: i18n.translate('xpack.stackConnectors.serverLog.title', { defaultMessage: 'Server log', }), - supportedFeatureIds: [AlertingConnectorFeatureId, UptimeConnectorFeatureId], + supportedFeatureIds: [ + AlertingConnectorFeatureId, + UptimeConnectorFeatureId, + SecurityConnectorFeatureId, + ], validate: { config: { schema: schema.object({}, { defaultValue: {} }) }, secrets: { schema: schema.object({}, { defaultValue: {} }) }, diff --git a/x-pack/plugins/stack_connectors/server/connector_types/xmatters/index.ts b/x-pack/plugins/stack_connectors/server/connector_types/xmatters/index.ts index 7a3d701b96242f..1be6e9f71c0c7e 100644 --- a/x-pack/plugins/stack_connectors/server/connector_types/xmatters/index.ts +++ b/x-pack/plugins/stack_connectors/server/connector_types/xmatters/index.ts @@ -14,7 +14,10 @@ import type { ActionTypeExecutorResult as ConnectorTypeExecutorResult, ValidatorServices, } from '@kbn/actions-plugin/server/types'; -import { AlertingConnectorFeatureId } from '@kbn/actions-plugin/common/types'; +import { + AlertingConnectorFeatureId, + SecurityConnectorFeatureId, +} from '@kbn/actions-plugin/common/types'; import { postXmatters } from './post_xmatters'; export type XmattersConnectorType = ConnectorType< @@ -66,7 +69,7 @@ export function getConnectorType(): XmattersConnectorType { name: i18n.translate('xpack.stackConnectors.xmatters.title', { defaultMessage: 'xMatters', }), - supportedFeatureIds: [AlertingConnectorFeatureId], + supportedFeatureIds: [AlertingConnectorFeatureId, SecurityConnectorFeatureId], validate: { config: { schema: ConfigSchema, diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_complete.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_complete.cy.ts index 6afa38bf81f6c3..94c53cb6e3f132 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_complete.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_complete.cy.ts @@ -12,6 +12,8 @@ import { SLACK_ACTION_BTN, WEBHOOK_ACTION_BTN, EMAIL_ACTION_BTN, + SERVER_LOG_ACTION_BTN, + XMATTERS_ACTION_BTN, ACTION_BTN, } from '../../../../screens/common/rule_actions'; @@ -62,6 +64,8 @@ describe( cy.get(SLACK_ACTION_BTN).should('be.visible'); cy.get(EMAIL_ACTION_BTN).should('be.visible'); cy.get(WEBHOOK_ACTION_BTN).should('be.visible'); + cy.get(SERVER_LOG_ACTION_BTN).should('be.visible'); + cy.get(XMATTERS_ACTION_BTN).should('be.visible'); }); } ); diff --git a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_essentials.cy.ts b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_essentials.cy.ts index 71212f6819a691..8e53f3c96657ac 100644 --- a/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_essentials.cy.ts +++ b/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/detection_engine/rule_actions/rule_actions_pli_essentials.cy.ts @@ -12,6 +12,8 @@ import { SLACK_ACTION_BTN, WEBHOOK_ACTION_BTN, EMAIL_ACTION_BTN, + XMATTERS_ACTION_BTN, + SERVER_LOG_ACTION_BTN, ACTION_BTN, } from '../../../../screens/common/rule_actions'; @@ -62,8 +64,10 @@ describe( cy.get(SLACK_ACTION_BTN).should('be.visible'); cy.get(EMAIL_ACTION_BTN).should('be.visible'); - // webhook is not available + // complete tier actions are not available cy.get(WEBHOOK_ACTION_BTN).should('not.exist'); + cy.get(XMATTERS_ACTION_BTN).should('not.exist'); + cy.get(SERVER_LOG_ACTION_BTN).should('not.exist'); }); } ); diff --git a/x-pack/test/security_solution_cypress/cypress/screens/common/rule_actions.ts b/x-pack/test/security_solution_cypress/cypress/screens/common/rule_actions.ts index 0c0994af2759e5..a5c35406fb1ed8 100644 --- a/x-pack/test/security_solution_cypress/cypress/screens/common/rule_actions.ts +++ b/x-pack/test/security_solution_cypress/cypress/screens/common/rule_actions.ts @@ -9,6 +9,10 @@ export const EMAIL_ACTION_BTN = '[data-test-subj=".email-siem-ActionTypeSelectOp export const WEBHOOK_ACTION_BTN = '[data-test-subj=".webhook-siem-ActionTypeSelectOption"]'; +export const SERVER_LOG_ACTION_BTN = '[data-test-subj=".server-log-siem-ActionTypeSelectOption"]'; + +export const XMATTERS_ACTION_BTN = '[data-test-subj=".xmatters-siem-ActionTypeSelectOption"]'; + /** * all rule actions buttons, elements which data-test-subj attribute ends with '-siem-ActionTypeSelectOption' */