From 7cab89d45b4b86165cf02eee578a028ec621953d Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Tue, 11 Aug 2026 11:30:10 +0200 Subject: [PATCH] looprpc: align instant out permissions with loop out Apply the loop:out permission to Instant Out and reservation RPCs so their authorization requirements match the rest of the Loop Out API. --- looprpc/perms.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/looprpc/perms.go b/looprpc/perms.go index d646f667..9187920a 100644 --- a/looprpc/perms.go +++ b/looprpc/perms.go @@ -177,18 +177,30 @@ var RequiredPermissions = map[string][]bakery.Op{ "/looprpc.SwapClient/ListReservations": {{ Entity: "swap", Action: "read", + }, { + Entity: "loop", + Action: "out", }}, "/looprpc.SwapClient/InstantOut": {{ Entity: "swap", Action: "execute", + }, { + Entity: "loop", + Action: "out", }}, "/looprpc.SwapClient/InstantOutQuote": {{ Entity: "swap", Action: "read", + }, { + Entity: "loop", + Action: "out", }}, "/looprpc.SwapClient/ListInstantOuts": {{ Entity: "swap", Action: "read", + }, { + Entity: "loop", + Action: "out", }}, "/looprpc.SwapClient/StopDaemon": {{ Entity: "loop",