Skip to content

Commit

Permalink
Add default roles for Notifications plugin (#1847)
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammad Qureshi <47198598+qreshi@users.noreply.github.com>
(cherry picked from commit 25eda95)
  • Loading branch information
qreshi authored and github-actions[bot] committed May 18, 2022
1 parent 76092ff commit c96ef30
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions securityconfig/roles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ alerting_full_access:
- 'cluster_monitor'
- 'cluster:admin/opendistro/alerting/*'
- 'cluster:admin/opensearch/alerting/*'
- 'cluster:admin/opensearch/notifications/feature/publish'
index_permissions:
- index_patterns:
- '*'
Expand Down Expand Up @@ -155,6 +156,7 @@ index_management_full_access:
- "cluster:admin/opendistro/ism/*"
- "cluster:admin/opendistro/rollup/*"
- "cluster:admin/opendistro/transform/*"
- "cluster:admin/opensearch/notifications/feature/publish"
index_permissions:
- index_patterns:
- '*'
Expand Down Expand Up @@ -211,3 +213,17 @@ ml_full_access:
- '*'
allowed_actions:
- 'indices_monitor'

# Allows users to use all Notifications functionality
notifications_full_access:
reserved: true
cluster_permissions:
- 'cluster:admin/opensearch/notifications/*'

# Allows users to read Notifications config/channels
notifications_read_access:
reserved: true
cluster_permissions:
- 'cluster:admin/opensearch/notifications/configs/get'
- 'cluster:admin/opensearch/notifications/features'
- 'cluster:admin/opensearch/notifications/channels/get'

0 comments on commit c96ef30

Please sign in to comment.