Skip to content

Commit

Permalink
[Alerting] add complete alerting/action privs to apm feature
Browse files Browse the repository at this point in the history
Based on a [review comment of a related PR][1], the apm feature definition
has been changed to supply all the alerting/action privs for both read
and all apm privs.

[1] elastic#61113 (review)
  • Loading branch information
pmuellr committed Mar 24, 2020
1 parent a68eaf2 commit be9e6a9
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions x-pack/legacy/plugins/apm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,17 @@ export const apm: LegacyPluginInitializer = kibana => {
privileges: {
all: {
app: ['apm', 'kibana'],
api: ['apm', 'apm_write', 'actions-read', 'alerting-read'],
api: [
'apm',
'apm_write',
'actions-read',
'actions-all',
'alerting-read',
'alerting-all'
],
catalogue: ['apm'],
savedObject: {
all: ['action', 'action_task_params'],
all: ['alert', 'action', 'action_task_params'],
read: []
},
ui: [
Expand All @@ -124,13 +131,27 @@ export const apm: LegacyPluginInitializer = kibana => {
},
read: {
app: ['apm', 'kibana'],
api: ['apm', 'actions-read', 'alerting-read'],
api: [
'apm',
'actions-read',
'actions-all',
'alerting-read',
'alerting-all'
],
catalogue: ['apm'],
savedObject: {
all: ['action', 'action_task_params'],
all: ['alert', 'action', 'action_task_params'],
read: []
},
ui: ['show', 'alerting:show', 'actions:show']
ui: [
'show',
'alerting:show',
'actions:show',
'alerting:save',
'actions:save',
'alerting:delete',
'actions:delete'
]
}
}
});
Expand Down

0 comments on commit be9e6a9

Please sign in to comment.