Skip to content

Commit

Permalink
monitoring_user built-in role can read metricbeat-* (#73627)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Roberson <chrisronline@gmail.com>
  • Loading branch information
albertzaharovits and chrisronline committed Jun 1, 2021
1 parent b88fb8d commit 11e2af9
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ private static Map<String, RoleDescriptor> initializeReservedRoles() {
.put("monitoring_user", new RoleDescriptor("monitoring_user",
new String[] { "cluster:monitor/main", "cluster:monitor/xpack/info", RemoteInfoAction.NAME },
new RoleDescriptor.IndicesPrivileges[] {
RoleDescriptor.IndicesPrivileges.builder()
.indices(".monitoring-*").privileges("read", "read_cross_cluster").build()
},
RoleDescriptor.IndicesPrivileges.builder()
.indices(".monitoring-*").privileges("read", "read_cross_cluster").build(),
RoleDescriptor.IndicesPrivileges.builder()
.indices("metricbeat-*").privileges("read", "read_cross_cluster").build() },
new RoleDescriptor.ApplicationResourcePrivileges[] {
RoleDescriptor.ApplicationResourcePrivileges.builder()
.application("kibana-*").resources("*").privileges("reserved_monitoring").build()
Expand Down

0 comments on commit 11e2af9

Please sign in to comment.