Skip to content

Commit ded666e

Browse files
Omolola-Akinleyeelasticsearchmachine
andauthored
[Cloud Security Posture] fix ilm deletion step error permissions (#128634)
* fix ilm deletion step policy * [CI] Auto commit changes from spotless --------- Co-authored-by: elasticsearchmachine <[email protected]>
1 parent ffea6ca commit ded666e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ static RoleDescriptor kibanaSystem(String name) {
473473
"read",
474474
"index",
475475
"delete",
476+
477+
// Require "delete_index" to perform ILM policy actions
478+
TransportDeleteIndexAction.TYPE.name(),
476479
"manage",
477480
TransportIndicesAliasesAction.NAME,
478481
TransportUpdateSettingsAction.TYPE.name()
@@ -487,6 +490,8 @@ static RoleDescriptor kibanaSystem(String name) {
487490
"read",
488491
"index",
489492
"delete",
493+
// Require "delete_index" to perform ILM policy actions
494+
TransportDeleteIndexAction.TYPE.name(),
490495
TransportIndicesAliasesAction.NAME,
491496
TransportUpdateSettingsAction.TYPE.name(),
492497
TransportAutoPutMappingAction.TYPE.name()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1740,6 +1740,7 @@ public void testKibanaSystemRole() {
17401740
kibanaRole.indices().allowedIndicesMatcher(TransportUpdateSettingsAction.TYPE.name()).test(indexAbstraction),
17411741
is(true)
17421742
);
1743+
assertThat(kibanaRole.indices().allowedIndicesMatcher(TransportDeleteIndexAction.TYPE.name()).test(indexAbstraction), is(true));
17431744

17441745
// Implied by the overall view_index_metadata and monitor privilege
17451746
assertViewIndexMetadata(kibanaRole, indexName);

0 commit comments

Comments
 (0)