Skip to content

Commit

Permalink
allowRestrictedIndices
Browse files Browse the repository at this point in the history
  • Loading branch information
orestisfl committed Dec 16, 2024
1 parent bb19213 commit 06efb11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public class ServiceAccountIT extends ESRestTestCase {
"maintenance",
"view_index_metadata"
],
"allow_restricted_indices": false
"allow_restricted_indices": true
}
],
"applications": [ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ final class ElasticServiceAccounts {
RoleDescriptor.IndicesPrivileges.builder()
.indices(".agentless-*")
.privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance", "view_index_metadata")
.allowRestrictedIndices(true)
.build(), },
new RoleDescriptor.ApplicationResourcePrivileges[] {
RoleDescriptor.ApplicationResourcePrivileges.builder()
Expand Down

0 comments on commit 06efb11

Please sign in to comment.