Skip to content

Commit

Permalink
Add .code_internal-* index pattern to kibana user (#42247) (#42387)
Browse files Browse the repository at this point in the history
  • Loading branch information
mw-ding authored May 23, 2019
1 parent a71d19e commit fa98cbe
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ private static Map<String, RoleDescriptor> initializeReservedRoles() {
.indices(".monitoring-*").privileges("read", "read_cross_cluster").build(),
RoleDescriptor.IndicesPrivileges.builder()
.indices(".management-beats").privileges("create_index", "read", "write").build(),
// .code_internal-* is for Code's internal worker queue index creation.
RoleDescriptor.IndicesPrivileges.builder()
.indices(".code-*").privileges("all").build(),
.indices(".code-*", ".code_internal-*").privileges("all").build(),
},
null,
new ConditionalClusterPrivilege[] { new ManageApplicationPrivileges(Collections.singleton("kibana-*")) },
Expand Down

0 comments on commit fa98cbe

Please sign in to comment.