rpc: modify the entity of invoice related RPC's to target the invoice entity
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.
This commit is contained in:
parent
6a294e7489
commit
a07579c541
@ -218,19 +218,19 @@ var (
|
|||||||
Action: "write",
|
Action: "write",
|
||||||
}},
|
}},
|
||||||
"/lnrpc.Lightning/AddInvoice": {{
|
"/lnrpc.Lightning/AddInvoice": {{
|
||||||
Entity: "offchain",
|
Entity: "invoices",
|
||||||
Action: "write",
|
Action: "write",
|
||||||
}},
|
}},
|
||||||
"/lnrpc.Lightning/LookupInvoice": {{
|
"/lnrpc.Lightning/LookupInvoice": {{
|
||||||
Entity: "offchain",
|
Entity: "invoices",
|
||||||
Action: "read",
|
Action: "read",
|
||||||
}},
|
}},
|
||||||
"/lnrpc.Lightning/ListInvoices": {{
|
"/lnrpc.Lightning/ListInvoices": {{
|
||||||
Entity: "offchain",
|
Entity: "invoices",
|
||||||
Action: "read",
|
Action: "read",
|
||||||
}},
|
}},
|
||||||
"/lnrpc.Lightning/SubscribeInvoices": {{
|
"/lnrpc.Lightning/SubscribeInvoices": {{
|
||||||
Entity: "offchain",
|
Entity: "invoices",
|
||||||
Action: "read",
|
Action: "read",
|
||||||
}},
|
}},
|
||||||
"/lnrpc.Lightning/SubscribeTransactions": {{
|
"/lnrpc.Lightning/SubscribeTransactions": {{
|
||||||
|
Loading…
Reference in New Issue
Block a user