Skip to content

Commit e31eb4b

Browse files
muskan-agarwal26muskan-crestelasticsearchmachineelena-shostakShourieG
authored
[Cyera] - Fix Cannot execute ILM policy delete step (elastic#134894)
This PR focuses on the short term solution which add the logs-cyera.classification-*, logs-cyera.issue-* and logs-cyera.datastore-* indices under the kibana_system role with deletion privileges to prevent a failed deletion error when the index enters the deletion phase for the ILM lifecycle, in upcoming PR. As it ships transform pipeline too hence read, write permissions are also required. --------- Co-authored-by: muskan-crest <[email protected]> Co-authored-by: elasticsearchmachine <[email protected]> Co-authored-by: Elena Shostak <[email protected]> Co-authored-by: Shourie Ganguly <[email protected]>
1 parent 4a524c5 commit e31eb4b

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

docs/changelog/134894.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 134894
2+
summary: "[Cyera] Add `manage`, `create_index`, `read`, `index`, `write`, `delete`, permission for third party agent indices `kibana_system`"
3+
area: Authorization
4+
type: enhancement
5+
issues:
6+
- 134183

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/store/KibanaOwnedReservedRoleDescriptors.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ static RoleDescriptor kibanaSystem(String name) {
549549
TransportDeleteIndexAction.TYPE.name()
550550
)
551551
.build(),
552-
// For ExtraHop, QualysGAV, SentinelOne Application Dataset and Island Browser specific actions.
552+
// For ExtraHop, QualysGAV, SentinelOne Application Dataset, Island Browser and Cyera specific actions.
553553
// Kibana reads, writes and manages this index
554554
// for configured ILM policies.
555555
RoleDescriptor.IndicesPrivileges.builder()
@@ -558,7 +558,10 @@ static RoleDescriptor kibanaSystem(String name) {
558558
"logs-qualys_gav.asset-*",
559559
"logs-sentinel_one.application-*",
560560
"logs-island_browser.user-*",
561-
"logs-island_browser.device-*"
561+
"logs-island_browser.device-*",
562+
"logs-cyera.classification-*",
563+
"logs-cyera.issue-*",
564+
"logs-cyera.datastore-*"
562565
)
563566
.privileges(
564567
"manage",

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/store/ReservedRolesStoreTests.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,15 +1976,18 @@ public void testKibanaSystemRole() {
19761976
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
19771977
});
19781978

1979-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser) that `kibana_system`
1979+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
19801980
// has full management access to
19811981
// This includes read, write, create, delete, and all ILM-related management actions.
19821982
Arrays.asList(
19831983
"logs-extrahop.investigation-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19841984
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19851985
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19861986
"logs-island_browser.user-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1987-
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10))
1987+
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1988+
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1989+
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1990+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
19881991
).forEach((index_qualys_extra_hop) -> {
19891992
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19901993

0 commit comments

Comments
 (0)