Skip to content

Commit d0808d0

Browse files
muskan-agarwal26muskan-crestelasticsearchmachineelena-shostakShourieG
committed
[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]> (cherry picked from commit e31eb4b)
1 parent 71d54f4 commit d0808d0

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
@@ -497,7 +497,7 @@ static RoleDescriptor kibanaSystem(String name) {
497497
TransportDeleteIndexAction.TYPE.name()
498498
)
499499
.build(),
500-
// For ExtraHop, QualysGAV, SentinelOne Application Dataset and Island Browser specific actions.
500+
// For ExtraHop, QualysGAV, SentinelOne Application Dataset, Island Browser and Cyera specific actions.
501501
// Kibana reads, writes and manages this index
502502
// for configured ILM policies.
503503
RoleDescriptor.IndicesPrivileges.builder()
@@ -506,7 +506,10 @@ static RoleDescriptor kibanaSystem(String name) {
506506
"logs-qualys_gav.asset-*",
507507
"logs-sentinel_one.application-*",
508508
"logs-island_browser.user-*",
509-
"logs-island_browser.device-*"
509+
"logs-island_browser.device-*",
510+
"logs-cyera.classification-*",
511+
"logs-cyera.issue-*",
512+
"logs-cyera.datastore-*"
510513
)
511514
.privileges(
512515
"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
@@ -1880,15 +1880,18 @@ public void testKibanaSystemRole() {
18801880
assertThat(kibanaRole.indices().allowedIndicesMatcher(RolloverAction.NAME).test(indexAbstraction), is(true));
18811881
});
18821882

1883-
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser) that `kibana_system`
1883+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Island Browser, Cyera) that `kibana_system`
18841884
// has full management access to
18851885
// This includes read, write, create, delete, and all ILM-related management actions.
18861886
Arrays.asList(
18871887
"logs-extrahop.investigation-" + randomAlphaOfLength(randomIntBetween(1, 10)),
18881888
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10)),
18891889
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10)),
18901890
"logs-island_browser.user-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1891-
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10))
1891+
"logs-island_browser.device-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1892+
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1893+
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1894+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
18921895
).forEach((index_qualys_extra_hop) -> {
18931896
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
18941897

0 commit comments

Comments
 (0)