Skip to content

Commit

Permalink
Add privileges for connectors index creation (elastic#91026)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Oct 20, 2022
1 parent 4e2c7ff commit 775315b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions docs/changelog/91026.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pr: 91026
summary: Add privileges for connectors index creation
area: Authorization
type: enhancement
issues: []
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ public class ServiceAccountIT extends ESRestTestCase {
"logs-app_search.search_relevance_suggestions-default",
"logs-crawler-default",
"logs-workplace_search.analytics-default",
"logs-workplace_search.content_events-default"
"logs-workplace_search.content_events-default",
".elastic-connectors*"
],
"privileges": [
"manage",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ final class ElasticServiceAccounts {
"logs-app_search.search_relevance_suggestions-default",
"logs-crawler-default",
"logs-workplace_search.analytics-default",
"logs-workplace_search.content_events-default"
"logs-workplace_search.content_events-default",
".elastic-connectors*"
)
.privileges("manage", "read", "write")
.build() },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ public void testElasticEnterpriseSearchServerAccount() {
"logs-app_search.search_relevance_suggestions-default",
"logs-crawler-default",
"logs-workplace_search.analytics-default",
"logs-workplace_search.content_events-default"
"logs-workplace_search.content_events-default",
".elastic-connectors*"
).forEach(index -> {
final IndexAbstraction enterpriseSearchIndex = mockIndexAbstraction(index);
assertThat(role.indices().allowedIndicesMatcher(AutoCreateAction.NAME).test(enterpriseSearchIndex), is(true));
Expand Down

0 comments on commit 775315b

Please sign in to comment.