Skip to content

Commit 06efb11

Browse files
committed
allowRestrictedIndices
1 parent bb19213 commit 06efb11

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

x-pack/plugin/security/qa/service-account/src/javaRestTest/java/org/elasticsearch/xpack/security/authc/service/ServiceAccountIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ public class ServiceAccountIT extends ESRestTestCase {
330330
"maintenance",
331331
"view_index_metadata"
332332
],
333-
"allow_restricted_indices": false
333+
"allow_restricted_indices": true
334334
}
335335
],
336336
"applications": [ {

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/service/ElasticServiceAccounts.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ final class ElasticServiceAccounts {
171171
RoleDescriptor.IndicesPrivileges.builder()
172172
.indices(".agentless-*")
173173
.privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance", "view_index_metadata")
174+
.allowRestrictedIndices(true)
174175
.build(), },
175176
new RoleDescriptor.ApplicationResourcePrivileges[] {
176177
RoleDescriptor.ApplicationResourcePrivileges.builder()

0 commit comments

Comments
 (0)