Skip to content

Commit ed7ae92

Browse files
muskan-agarwal26muskan-crestelasticsearchmachineelena-shostakShourieG
authored
[Cyera] - Fix Cannot execute ILM policy delete step (elastic#134894) (elastic#137499)
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. --------- (cherry picked from commit e31eb4b) 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 26358e3 commit ed7ae92

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
@@ -500,7 +500,7 @@ static RoleDescriptor kibanaSystem(String name) {
500500
TransportDeleteIndexAction.TYPE.name()
501501
)
502502
.build(),
503-
// For ExtraHop, QualysGAV, SentinelOne and Island Browser specific actions.
503+
// For ExtraHop, QualysGAV, SentinelOne, Island Browser and Cyera specific actions.
504504
// Kibana reads, writes and manages this index
505505
// for configured ILM policies.
506506
RoleDescriptor.IndicesPrivileges.builder()
@@ -510,7 +510,10 @@ static RoleDescriptor kibanaSystem(String name) {
510510
"logs-sentinel_one.application-*",
511511
"logs-sentinel_one.threat_event-*",
512512
"logs-island_browser.user-*",
513-
"logs-island_browser.device-*"
513+
"logs-island_browser.device-*",
514+
"logs-cyera.classification-*",
515+
"logs-cyera.issue-*",
516+
"logs-cyera.datastore-*"
514517
)
515518
.privileges(
516519
"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
@@ -1894,7 +1894,7 @@ public void testKibanaSystemRole() {
18941894
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
18951895
});
18961896

1897-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser) that `kibana_system`
1897+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
18981898
// has full management access to
18991899
// This includes read, write, create, delete, and all ILM-related management actions.
19001900
Arrays.asList(
@@ -1903,7 +1903,10 @@ public void testKibanaSystemRole() {
19031903
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19041904
"logs-sentinel_one.threat_event-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19051905
"logs-island_browser.user-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1906-
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10))
1906+
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1907+
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1908+
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1909+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
19071910
).forEach((index_qualys_extra_hop) -> {
19081911
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19091912

0 commit comments

Comments
 (0)