[Security Solution][Endpoint][Response Actions] Enable feature flag for execute by default (#155686)

From 8.8 `responseActionExecuteEnabled` is set to `true` by default

## Summary

Enables the `responseActionExecuteEnabled` feature flag by default for
`execute` response action.


### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
This commit is contained in:
Ashokaditya 2023-04-25 23:19:00 +02:00 committed by GitHub
parent bfe5aeed48
commit 8c8bb8f798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 4 deletions

View file

@ -96,7 +96,7 @@ export const allowedExperimentalValues = Object.freeze({
/**
* Enables the `execute` endpoint response action
*/
responseActionExecuteEnabled: false,
responseActionExecuteEnabled: true,
/**
* Enables top charts on Alerts Page

View file

@ -14,7 +14,9 @@ const ExperimentalFeaturesServiceMock = {
get: jest.fn(() => {
const ff: ExperimentalFeatures = {
...allowedExperimentalValues,
responseActionExecuteEnabled: true,
// add new experimental features set to `true` here
// e.g.
// responseActionDownloadFileEnabled: true,
};
return ff;

View file

@ -46,8 +46,7 @@ describe('When defining a kibana role for Endpoint security access', () => {
'Host Isolation Perform the "isolate" and "release" response actions.Host Isolation sub-feature privilegeAllNone',
'Process Operations Perform process-related response actions in the response console.Process Operations sub-feature privilegeAllNone',
'File Operations Perform file-related response actions in the response console.File Operations sub-feature privilegeAllNone',
// TODO: uncomment item below once Execute response action FF is enabled
// 'Execute Operations Perform script execution on the endpoint.Execute Operations sub-feature privilegeAllNone',
'Execute Operations Perform script execution on the endpoint.Execute Operations sub-feature privilegeAllNone',
]);
});

View file

@ -52,6 +52,7 @@ export default function ({ getService }: FtrProviderContext) {
'host_isolation_all',
'process_operations_all',
'file_operations_all',
'execute_operations_all',
],
uptime: ['all', 'read', 'minimal_all', 'minimal_read'],
securitySolutionCases: ['all', 'read', 'minimal_all', 'minimal_read', 'cases_delete'],

View file

@ -124,6 +124,7 @@ export default function ({ getService }: FtrProviderContext) {
'trusted_applications_all',
'trusted_applications_read',
'file_operations_all',
'execute_operations_all',
],
uptime: ['all', 'read', 'minimal_all', 'minimal_read'],
securitySolutionCases: ['all', 'read', 'minimal_all', 'minimal_read', 'cases_delete'],