Skip to content

Commit da7f194

Browse files
committed
looprpc: authorize recovery restore calls
Grant the manual recovery RPC the auth-write and static-address loop-in permissions it needs so loopd can restore local L402 material and static-address state through the authenticated client connection.
1 parent 64bbfc7 commit da7f194

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

looprpc/perms.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,13 @@ var RequiredPermissions = map[string][]bakery.Op{
151151
Entity: "auth",
152152
Action: "write",
153153
}},
154+
"/looprpc.Recovery/Recover": {{
155+
Entity: "auth",
156+
Action: "write",
157+
}, {
158+
Entity: "loop",
159+
Action: "in",
160+
}},
154161
"/looprpc.SwapClient/SuggestSwaps": {{
155162
Entity: "suggestions",
156163
Action: "read",

0 commit comments

Comments
 (0)