Skip to content

Commit

Permalink
Remove indices:admin/auto_create from privileges.
Browse files Browse the repository at this point in the history
  • Loading branch information
skh committed Feb 10, 2021
1 parent e4f5feb commit 070fe27
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/api_keys/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function generateOutputApiKey(
index: [
{
names: ['logs-*', 'metrics-*', 'traces-*', '.logs-endpoint.diagnostic.collection-*'],
privileges: ['auto_configure', 'create_doc', 'indices:admin/auto_create'],
privileges: ['auto_configure', 'create_doc'],
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/fleet/server/services/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ async function putFleetRole(callCluster: CallESAsCurrentUser) {
indices: [
{
names: ['logs-*', 'metrics-*', 'traces-*', '.logs-endpoint.diagnostic.collection-*'],
privileges: ['auto_configure', 'create_doc', 'indices:admin/auto_create'],
privileges: ['auto_configure', 'create_doc'],
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/fleet_api_integration/apis/agents_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function (providerContext: FtrProviderContext) {
indices: [
{
names: ['logs-*', 'metrics-*', 'traces-*', '.logs-endpoint.diagnostic.collection-*'],
privileges: ['auto_configure', 'create_doc', 'indices:admin/auto_create'],
privileges: ['auto_configure', 'create_doc'],
allow_restricted_indices: false,
},
],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/test/fleet_api_integration/apis/fleet_setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default function (providerContext: FtrProviderContext) {
indices: [
{
names: ['logs-*', 'metrics-*', 'traces-*', '.logs-endpoint.diagnostic.collection-*'],
privileges: ['auto_configure', 'create_doc', 'indices:admin/auto_create'],
privileges: ['auto_configure', 'create_doc'],
allow_restricted_indices: false,
},
],
Expand Down

0 comments on commit 070fe27

Please sign in to comment.