Skip to content

Commit 8a0482d

Browse files
committed
Add Defender for Cloud to 3rd party integrations permissions required for transform
1 parent 60765b1 commit 8a0482d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,11 @@ static RoleDescriptor kibanaSystem(String name) {
530530
// For source indices of the Cloud Detection & Response (CDR) packages
531531
// that ships a transform and has ILM policy
532532
RoleDescriptor.IndicesPrivileges.builder()
533-
.indices("logs-m365_defender.vulnerability-*", "logs-microsoft_defender_endpoint.vulnerability-*")
533+
.indices(
534+
"logs-m365_defender.vulnerability-*",
535+
"logs-microsoft_defender_endpoint.vulnerability-*",
536+
"logs-microsoft_defender_cloud.assessment-*"
537+
)
534538
.privileges(
535539
"read",
536540
"view_index_metadata",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,8 @@ public void testKibanaSystemRole() {
17171717

17181718
Arrays.asList(
17191719
"logs-m365_defender.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13)),
1720-
"logs-microsoft_defender_endpoint.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13))
1720+
"logs-microsoft_defender_endpoint.vulnerability-" + randomAlphaOfLength(randomIntBetween(0, 13)),
1721+
"logs-microsoft_defender_cloud.assessment-" + randomAlphaOfLength(randomIntBetween(0, 13))
17211722
).forEach(indexName -> {
17221723
final IndexAbstraction indexAbstraction = mockIndexAbstraction(indexName);
17231724
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(indexAbstraction), is(false));

0 commit comments

Comments
 (0)