Skip to content

Commit 7f5ca53

Browse files
authored
Adds default roles for Snapshot Management plugin (opensearch-project#1897)
Signed-off-by: Clay Downs <downsrob@amazon.com>
1 parent 8393c71 commit 7f5ca53

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

securityconfig/roles.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,3 +227,22 @@ notifications_read_access:
227227
- 'cluster:admin/opensearch/notifications/configs/get'
228228
- 'cluster:admin/opensearch/notifications/features'
229229
- 'cluster:admin/opensearch/notifications/channels/get'
230+
231+
# Allows users to use all snapshot management functionality
232+
snapshot_management_full_access:
233+
reserved: true
234+
cluster_permissions:
235+
- 'cluster:admin/opensearch/snapshot_management/*'
236+
- 'cluster:admin/opensearch/notifications/feature/publish'
237+
- 'cluster:admin/repository/*'
238+
- 'cluster:admin/snapshot/*'
239+
240+
# Allows users to see snapshots, repositories, and snapshot management policies
241+
snapshot_management_read_access:
242+
reserved: true
243+
cluster_permissions:
244+
- 'cluster:admin/opensearch/snapshot_management/policy/get'
245+
- 'cluster:admin/opensearch/snapshot_management/policy/search'
246+
- 'cluster:admin/opensearch/snapshot_management/policy/explain'
247+
- 'cluster:admin/repository/get'
248+
- 'cluster:admin/snapshot/get'

0 commit comments

Comments
 (0)