This commit is contained in:
parent
a4d481f2bb
commit
b68d7b1c33
|
@ -124,9 +124,11 @@ public class ReservedRolesStore implements BiConsumer<Set<String>, ActionListene
|
|||
.indices(".monitoring-*").privileges("read", "read_cross_cluster").build(),
|
||||
RoleDescriptor.IndicesPrivileges.builder()
|
||||
.indices(".management-beats").privileges("create_index", "read", "write").build(),
|
||||
// .apm-* is for APM's agent configuration index creation
|
||||
// .apm-* is for APM's agent configuration and custom link index creation
|
||||
RoleDescriptor.IndicesPrivileges.builder()
|
||||
.indices(".apm-agent-configuration").privileges("all").build(),
|
||||
RoleDescriptor.IndicesPrivileges.builder()
|
||||
.indices(".apm-custom-link").privileges("all").build(),
|
||||
},
|
||||
null,
|
||||
new ConfigurableClusterPrivilege[] { new ManageApplicationPrivileges(Collections.singleton("kibana-*")) },
|
||||
|
|
|
@ -362,7 +362,8 @@ public class ReservedRolesStoreTests extends ESTestCase {
|
|||
".kibana",
|
||||
".kibana-devnull",
|
||||
".reporting-" + randomAlphaOfLength(randomIntBetween(0, 13)),
|
||||
".apm-agent-configuration"
|
||||
".apm-agent-configuration",
|
||||
".apm-custom-link"
|
||||
).forEach((index) -> {
|
||||
logger.info("index name [{}]", index);
|
||||
assertThat(kibanaRole.indices().allowedIndicesMatcher("indices:foo").test(index), is(true));
|
||||
|
|
Loading…
Reference in New Issue