Skip to content

Commit

Permalink
[APM] Add missing ML privileges (#80553)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorenlouv authored Oct 15, 2020
1 parent 114fb3a commit 1304c21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions x-pack/plugins/ml/common/types/capabilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { PLUGIN_ID } from '../constants/app';

export const apmUserMlCapabilities = {
canGetJobs: false,
canAccessML: false,
};

export const userMlCapabilities = {
Expand Down
11 changes: 10 additions & 1 deletion x-pack/test/apm_api_integration/common/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ const roles = {
],
},
[ApmUser.apmReadUserWithoutMlAccess]: {
elasticsearch: {
cluster: [],
indices: [
{
names: ['apm-*'],
privileges: ['read', 'view_index_metadata'],
},
],
},
kibana: [
{
base: [],
Expand Down Expand Up @@ -74,7 +83,7 @@ const users = {
roles: ['apm_user', ApmUser.apmReadUser],
},
[ApmUser.apmReadUserWithoutMlAccess]: {
roles: ['apm_user', ApmUser.apmReadUserWithoutMlAccess],
roles: [ApmUser.apmReadUserWithoutMlAccess],
},
[ApmUser.apmWriteUser]: {
roles: ['apm_user', ApmUser.apmWriteUser],
Expand Down

0 comments on commit 1304c21

Please sign in to comment.