Skip to content

Commit d712f1a

Browse files
committed
MB-46113: Expand sync gateway devops role to cluster scope
Change from requiring exact parameters (which aren't possible) to allowing any for bucket:scope:collection. This fixes a bug where it didn't seem possible to query the dev_ops permission despite having the sync gateway DevOps role. Discovered while helping sync gateway team integrate the new changes. Change-Id: I655353f1f8cd3825fbb823db02210ca3dfeac8db Reviewed-on: http://review.couchbase.org/c/ns_server/+/158846 Well-Formed: Build Bot <[email protected]> Tested-by: Build Bot <[email protected]> Reviewed-by: Artem Stemkovski <[email protected]>
1 parent 9cfaae3 commit d712f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/menelaus_roles.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ sync_gateway_roles(true) ->
624624
{desc, <<"Can manage Sync Gateway node-level configuration, "
625625
"and access Sync Gateway's /metrics endpoint "
626626
"for Prometheus integration.">>}],
627-
[{[{collection, ?RBAC_COLLECTION_PARAMS}, sgw, dev_ops], all},
627+
[{[{collection, [any, any, any]}, sgw, dev_ops], all},
628628
{[admin, stats_export], [read]}]}];
629629
sync_gateway_roles(false) ->
630630
[].

0 commit comments

Comments
 (0)