Skip to content

Commit 4df875b

Browse files
committed
Merge branch 'cheshire-cat'
* MB-46113: Restrict sync gateway architect role Change-Id: I14c77bd9bc4bafe6ff3c8cdaaac8807ce4588375
2 parents cfb7feb + 9d66f7c commit 4df875b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/menelaus_roles.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,10 @@ roles() ->
566566
{desc, <<"Can manage Sync Gateway databases and users, "
567567
"and access Sync Gateway's /metrics endpoint. "
568568
"This user cannot read application data.">>}],
569-
[{[{collection, ?RBAC_COLLECTION_PARAMS}, sgw], all}]},
569+
[{[{collection, [any, any, any]}, sgw, appdata], none},
570+
{[{collection, [any, any, any]}, sgw, principal_appdata], none},
571+
{[{collection, [any, any, any]}, sgw, replications], none},
572+
{[{collection, ?RBAC_COLLECTION_PARAMS}, sgw], all}]},
570573
{sync_gateway_app, ?RBAC_COLLECTION_PARAMS,
571574
[{name, <<"Sync Gateway Application">>},
572575
{folder, mobile},
@@ -597,7 +600,7 @@ roles() ->
597600
{desc, <<"Can manage Sync Gateway node-level configuration, "
598601
"and access Sync Gateway's /metrics endpoint "
599602
"for Prometheus integration.">>}],
600-
[{[{collection, [any, any, any]}, sgw, dev_ops], all},
603+
[{[sgw, dev_ops], all},
601604
{[admin, stats_export], [read]}]},
602605
{external_stats_reader, [],
603606
[{name, <<"External Stats Reader">>},

0 commit comments

Comments
 (0)