|
@@ -9,6 +9,7 @@ package org.elasticsearch.xpack.core.security.authz.store;
|
|
|
import org.elasticsearch.action.ActionListener;
|
|
|
import org.elasticsearch.action.admin.cluster.remote.RemoteInfoAction;
|
|
|
import org.elasticsearch.action.admin.cluster.repositories.get.GetRepositoriesAction;
|
|
|
+import org.elasticsearch.action.admin.indices.alias.IndicesAliasesAction;
|
|
|
import org.elasticsearch.common.collect.MapBuilder;
|
|
|
import org.elasticsearch.xpack.core.ilm.action.GetLifecycleAction;
|
|
|
import org.elasticsearch.xpack.core.ilm.action.PutLifecycleAction;
|
|
@@ -79,7 +80,8 @@ public class ReservedRolesStore implements BiConsumer<Set<String>, ActionListene
|
|
|
new RoleDescriptor.IndicesPrivileges[] {
|
|
|
RoleDescriptor.IndicesPrivileges.builder().indices(".monitoring-*").privileges("all").build(),
|
|
|
RoleDescriptor.IndicesPrivileges.builder()
|
|
|
- .indices("metricbeat-*").privileges("index", "create_index", "view_index_metadata").build() },
|
|
|
+ .indices("metricbeat-*").privileges("index", "create_index", "view_index_metadata",
|
|
|
+ IndicesAliasesAction.NAME).build() },
|
|
|
null, MetadataUtils.DEFAULT_RESERVED_METADATA))
|
|
|
.put("remote_monitoring_collector", new RoleDescriptor(
|
|
|
"remote_monitoring_collector",
|