Skip to content

Commit fcefe7d

Browse files
authored
[Alerting] add complete alerting/action privs to apm feature (#61159)
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] #61113 (review)
1 parent c651969 commit fcefe7d

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

x-pack/legacy/plugins/apm/index.ts

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,17 @@ export const apm: LegacyPluginInitializer = kibana => {
105105
privileges: {
106106
all: {
107107
app: ['apm', 'kibana'],
108-
api: ['apm', 'apm_write', 'actions-read', 'alerting-read'],
108+
api: [
109+
'apm',
110+
'apm_write',
111+
'actions-read',
112+
'actions-all',
113+
'alerting-read',
114+
'alerting-all'
115+
],
109116
catalogue: ['apm'],
110117
savedObject: {
111-
all: ['action', 'action_task_params'],
118+
all: ['alert', 'action', 'action_task_params'],
112119
read: []
113120
},
114121
ui: [
@@ -124,13 +131,27 @@ export const apm: LegacyPluginInitializer = kibana => {
124131
},
125132
read: {
126133
app: ['apm', 'kibana'],
127-
api: ['apm', 'actions-read', 'alerting-read'],
134+
api: [
135+
'apm',
136+
'actions-read',
137+
'actions-all',
138+
'alerting-read',
139+
'alerting-all'
140+
],
128141
catalogue: ['apm'],
129142
savedObject: {
130-
all: ['action', 'action_task_params'],
143+
all: ['alert', 'action', 'action_task_params'],
131144
read: []
132145
},
133-
ui: ['show', 'alerting:show', 'actions:show']
146+
ui: [
147+
'show',
148+
'alerting:show',
149+
'actions:show',
150+
'alerting:save',
151+
'actions:save',
152+
'alerting:delete',
153+
'actions:delete'
154+
]
134155
}
135156
}
136157
});

0 commit comments

Comments
 (0)