Skip to content

Commit 31b4f93

Browse files
committed
taprpc: whitelist FetchSupplyLeaves RPC if public read access is enabled
Allow the FetchSupplyLeaves RPC endpoint to be queried without authentication when the universe server is configured for public read access. This aligns its access behavior with the FetchSupplyCommit RPC endpoint.
1 parent 840da91 commit 31b4f93

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

taprpc/perms.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ func MacaroonWhitelist(allowUniPublicAccessRead bool,
375375
if allowUniPublicAccessRead || allowPublicUniProofCourier {
376376
whitelist["/universerpc.Universe/QueryProof"] = struct{}{}
377377
whitelist["/universerpc.Universe/FetchSupplyCommit"] = struct{}{}
378+
whitelist["/universerpc.Universe/FetchSupplyLeaves"] = struct{}{}
378379
whitelist["/authmailboxrpc.Mailbox/ReceiveMessages"] = struct{}{}
379380
}
380381

0 commit comments

Comments
 (0)