-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Feature:ActionsFeature:AlertingTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//Platform ResponseOps team (formerly the Cases and Alerting teams) t//
Description
Right now SIEM is the only app with alerting and actions privileges. Until features privileges is fully supported, we should add permissions to:
- Uptime
- APM ( done in [APM] Threshold alerts #59566 )
- Metrics
This snippet shows how it is done for SIEM, we would do the same in other apps:
kibana/x-pack/legacy/plugins/siem/server/plugin.ts
Lines 86 to 144 in 875e2a5
| plugins.features.registerFeature({ | |
| id: this.name, | |
| name: i18n.translate('xpack.siem.featureRegistry.linkSiemTitle', { | |
| defaultMessage: 'SIEM', | |
| }), | |
| icon: 'securityAnalyticsApp', | |
| navLinkId: 'siem', | |
| app: ['siem', 'kibana'], | |
| catalogue: ['siem'], | |
| privileges: { | |
| all: { | |
| api: ['siem', 'actions-read', 'actions-all', 'alerting-read', 'alerting-all'], | |
| savedObject: { | |
| all: [ | |
| 'alert', | |
| 'action', | |
| 'action_task_params', | |
| noteSavedObjectType, | |
| pinnedEventSavedObjectType, | |
| timelineSavedObjectType, | |
| ruleStatusSavedObjectType, | |
| ], | |
| read: ['config'], | |
| }, | |
| ui: [ | |
| 'show', | |
| 'crud', | |
| 'alerting:show', | |
| 'actions:show', | |
| 'alerting:save', | |
| 'actions:save', | |
| 'alerting:delete', | |
| 'actions:delete', | |
| ], | |
| }, | |
| read: { | |
| api: ['siem', 'actions-read', 'actions-all', 'alerting-read', 'alerting-all'], | |
| savedObject: { | |
| all: ['alert', 'action', 'action_task_params'], | |
| read: [ | |
| 'config', | |
| noteSavedObjectType, | |
| pinnedEventSavedObjectType, | |
| timelineSavedObjectType, | |
| ruleStatusSavedObjectType, | |
| ], | |
| }, | |
| ui: [ | |
| 'show', | |
| 'alerting:show', | |
| 'actions:show', | |
| 'alerting:save', | |
| 'actions:save', | |
| 'alerting:delete', | |
| 'actions:delete', | |
| ], | |
| }, | |
| }, | |
| }); |
Alerting/Actions management UI capabilities have explicit checks on the SIEM feature, this may need some rework:
kibana/x-pack/plugins/triggers_actions_ui/public/application/lib/capabilities.ts
Lines 13 to 25 in 8951424
| export function hasShowAlertsCapability(capabilities: any): boolean { | |
| if (capabilities.siem && capabilities.siem['alerting:show']) { | |
| return true; | |
| } | |
| return false; | |
| } | |
| export function hasShowActionsCapability(capabilities: any): boolean { | |
| if (capabilities.siem && capabilities.siem['actions:show']) { | |
| return true; | |
| } | |
| return false; | |
| } |
Metadata
Metadata
Assignees
Labels
Feature:ActionsFeature:AlertingTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//Platform ResponseOps team (formerly the Cases and Alerting teams) t//