From a07579c5417ed2ed72f40253d78cd02f37e34c56 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 20 Mar 2018 16:44:53 -0700 Subject: [PATCH] rpc: modify the entity of invoice related RPC's to target the invoice entity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In this commit, we modify the existing invoice RPC macaroon permissions to target a more specific entity: “invoices”. As a result of this commit, once node operators update, they’ll need to regenerate their readonly.macaroon as it now needs this additional entity encoded within it. --- rpcserver.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcserver.go b/rpcserver.go index d79ddf6c..27591093 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -218,19 +218,19 @@ var ( Action: "write", }}, "/lnrpc.Lightning/AddInvoice": {{ - Entity: "offchain", + Entity: "invoices", Action: "write", }}, "/lnrpc.Lightning/LookupInvoice": {{ - Entity: "offchain", + Entity: "invoices", Action: "read", }}, "/lnrpc.Lightning/ListInvoices": {{ - Entity: "offchain", + Entity: "invoices", Action: "read", }}, "/lnrpc.Lightning/SubscribeInvoices": {{ - Entity: "offchain", + Entity: "invoices", Action: "read", }}, "/lnrpc.Lightning/SubscribeTransactions": {{