Skip to content

Commit

Permalink
Add view_index_matadata connector permission for fleet-server account (
Browse files Browse the repository at this point in the history
…elastic#113262)

* Add view_index_matadata to fleet-server for elastic_connetors package

* Fix typo
  • Loading branch information
jedrazb authored Sep 23, 2024
1 parent c28df8e commit ce79fa4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ GET /_security/service/elastic/fleet-server
"monitor",
"create_index",
"auto_configure",
"maintenance"
"maintenance",
"view_index_metadata"
],
"allow_restricted_indices": false
},
Expand All @@ -265,7 +266,8 @@ GET /_security/service/elastic/fleet-server
"monitor",
"create_index",
"auto_configure",
"maintenance"
"maintenance",
"view_index_metadata"
],
"allow_restricted_indices": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ public class ServiceAccountIT extends ESRestTestCase {
"monitor",
"create_index",
"auto_configure",
"maintenance"
"maintenance",
"view_index_metadata"
],
"allow_restricted_indices": false
},
Expand All @@ -311,7 +312,8 @@ public class ServiceAccountIT extends ESRestTestCase {
"monitor",
"create_index",
"auto_configure",
"maintenance"
"maintenance",
"view_index_metadata"
],
"allow_restricted_indices": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,12 @@ final class ElasticServiceAccounts {
// Custom permissions required for running Elastic connectors integration
RoleDescriptor.IndicesPrivileges.builder()
.indices(".elastic-connectors*")
.privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance")
.privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance", "view_index_metadata")
.build(),
// Permissions for data indices and access control filters used by Elastic connectors integration
RoleDescriptor.IndicesPrivileges.builder()
.indices("content-*", ".search-acl-filter-*")
.privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance")
.privileges("read", "write", "monitor", "create_index", "auto_configure", "maintenance", "view_index_metadata")
.build(), },
new RoleDescriptor.ApplicationResourcePrivileges[] {
RoleDescriptor.ApplicationResourcePrivileges.builder()
Expand Down

0 comments on commit ce79fa4

Please sign in to comment.