Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix observability alerting permissions #79896

Merged
merged 2 commits into from
Oct 15, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion x-pack/plugins/apm/server/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const APM_FEATURE = {
read: [],
},
alerting: {
all: Object.values(AlertType),
read: Object.values(AlertType),
},
management: {
insightsAndAlerting: ['triggersActions'],
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/infra/server/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const METRICS_FEATURE = {
read: ['infrastructure-ui-source', 'index-pattern'],
},
alerting: {
all: [METRIC_THRESHOLD_ALERT_TYPE_ID, METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID],
read: [METRIC_THRESHOLD_ALERT_TYPE_ID, METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID],
},
management: {
insightsAndAlerting: ['triggersActions'],
Expand Down Expand Up @@ -92,7 +92,7 @@ export const LOGS_FEATURE = {
catalogue: ['infralogging', 'logs'],
api: ['infra'],
alerting: {
all: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
read: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
},
savedObject: {
all: [],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/uptime/server/kibana.index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const initServerWithKibana = (server: UptimeCoreSetup, plugins: UptimeCor
read: [umDynamicSettings.name],
},
alerting: {
all: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
read: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
},
management: {
insightsAndAlerting: ['triggersActions'],
Expand Down