-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Security Solution][Endpoint] Add ability for users to
release
an i…
…solated host in serverless tiers where Response Actions are not available (#163616) ## Summary - Fixes the loading of the Host Isolation sub-feature control into kibana - should always be loaded and includes only the `release` privilege in it - Fixes the "Take action" menu items for Host Isolation (displayed in alert details) to ensure `release` is displayed when host is isolated and user has `release` privilege only - Endpoint Response console will now NOT be available to users who only have `release` response action (this is a downgrade scenario where the user is still allowed to `release` isolated hosts)
- Loading branch information
1 parent
b33fc31
commit 53a566b
Showing
16 changed files
with
245 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
...tes/security/cypress/e2e/endpoint_management/endpoint_list_with_security_essentials.cy.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { login } from '../../tasks/login'; | ||
import { | ||
getConsoleActionMenuItem, | ||
getUnIsolateActionMenuItem, | ||
openRowActionMenu, | ||
visitEndpointList, | ||
} from '../../screens/endpoint_management'; | ||
import { | ||
CyIndexEndpointHosts, | ||
indexEndpointHosts, | ||
} from '../../tasks/endpoint_management/index_endpoint_hosts'; | ||
|
||
describe( | ||
'When on the Endpoint List in Security Essentials PLI', | ||
{ | ||
env: { | ||
ftrConfig: { | ||
productTypes: [{ product_line: 'security', product_tier: 'essentials' }], | ||
}, | ||
}, | ||
}, | ||
() => { | ||
describe('and Isolated hosts exist', () => { | ||
let indexedEndpointData: CyIndexEndpointHosts; | ||
|
||
before(() => { | ||
indexEndpointHosts({ isolation: true }).then((response) => { | ||
indexedEndpointData = response; | ||
}); | ||
}); | ||
|
||
after(() => { | ||
if (indexedEndpointData) { | ||
indexedEndpointData.cleanup(); | ||
} | ||
}); | ||
|
||
beforeEach(() => { | ||
login(); | ||
visitEndpointList(); | ||
openRowActionMenu(); | ||
}); | ||
|
||
it('should display `release` options in host row actions', () => { | ||
getUnIsolateActionMenuItem().should('exist'); | ||
}); | ||
|
||
it('should NOT display access to response console', () => { | ||
getConsoleActionMenuItem().should('not.exist'); | ||
}); | ||
}); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.