Skip to content

Commit 8c0143b

Browse files
committed
MB-48275 Allow back role access to n1ql metadata
Prior to this change in order to backup/restore n1ql metadata a user needed to have both the data_backup and query_system_catalog roles. With this change only data_backup is needed. curl -u backupUser:asdasd localhost:9000/pools/default/checkPermissions \ -d 'cluster.bucket[travel-sample].n1ql.meta!backup' {"cluster.bucket[travel-sample].n1ql.meta!backup":true} Change-Id: I004ef72533afce13b72cc3d85c241bc3b7861ee6 Reviewed-on: http://review.couchbase.org/c/ns_server/+/160666 Well-Formed: Restriction Checker Well-Formed: Build Bot <[email protected]> Tested-by: Steve Watanabe <[email protected]> Tested-by: Build Bot <[email protected]> Reviewed-by: Artem Stemkovski <[email protected]>
1 parent d685afe commit 8c0143b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/menelaus_roles.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ roles() ->
325325
{[{bucket, bucket_name}, stats], [read]},
326326
{[{bucket, bucket_name}, settings], [read]},
327327
{[{bucket, bucket_name}, n1ql, index], [create, list, build]},
328+
{[{bucket, bucket_name}, n1ql, meta], [backup]},
328329
{[{bucket, bucket_name}, analytics], [manage, select]},
329330
{[analytics], [select, backup]},
330331
{[pools], [read]}]},

0 commit comments

Comments
 (0)