Skip to content

Commit 7b45175

Browse files
committed
Added ilm policy and changelog entry
1 parent 5ce0c64 commit 7b45175

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
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: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,18 @@ static RoleDescriptor kibanaSystem(String name) {
549549
TransportDeleteIndexAction.TYPE.name()
550550
)
551551
.build(),
552-
// For ExtraHop, QualysGAV, and SentinelOne Application Dataset specific actions. Kibana reads, writes and manages this
553-
// index
552+
// For ExtraHop, QualysGAV, SentinelOne Application Dataset and Cyera specific actions.
553+
// Kibana reads, writes and manages this index
554554
// for configured ILM policies.
555555
RoleDescriptor.IndicesPrivileges.builder()
556-
.indices("logs-extrahop.investigation-*", "logs-qualys_gav.asset-*", "logs-sentinel_one.application-*")
556+
.indices(
557+
"logs-extrahop.investigation-*",
558+
"logs-qualys_gav.asset-*",
559+
"logs-sentinel_one.application-*",
560+
"logs-cyera.classification-*",
561+
"logs-cyera.issue-*",
562+
"logs-cyera.datastore-*"
563+
)
557564
.privileges(
558565
"manage",
559566
"create_index",

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,12 +1976,15 @@ 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) that `kibana_system` has full management access to
1979+
// Tests for third-party agent indices (ExtraHop, QualysGAV, SentinelOne, Cyera) that `kibana_system` has full management access to
19801980
// This includes read, write, create, delete, and all ILM-related management actions.
19811981
Arrays.asList(
19821982
"logs-extrahop.investigation-" + randomAlphaOfLength(randomIntBetween(1, 10)),
19831983
"logs-qualys_gav.asset-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1984-
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10))
1984+
"logs-sentinel_one.application-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1985+
"logs-cyera.classification-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1986+
"logs-cyera.issue-" + randomAlphaOfLength(randomIntBetween(1, 10)),
1987+
"logs-cyera.datastore-" + randomAlphaOfLength(randomIntBetween(1, 10))
19851988
).forEach((index_qualys_extra_hop) -> {
19861989
final IndexAbstraction indexAbstraction = mockIndexAbstraction(index_qualys_extra_hop);
19871990

0 commit comments

Comments
 (0)