lndmanage/scripts/bakemacaroon.sh
bitromortac 2fb1b37803
node: use readonly macaroon by default
This means that calls to `openchannels` and `update-fees` will fail. A
custom lndmanage.macaroon can be created with
`scripts/bakemacaroon.sh` to enable the commands.
2023-12-31 12:16:04 +01:00

20 lines
736 B
Bash
Executable file

#!/bin/bash
# This command creates a macaroon containing permissions to call all the
# enpoints lndmanage uses. This is more secure than using an admin macaroon.
lncli bakemacaroon \
--save_to lndmanage.macaroon \
uri:/lnrpc.Lightning/GetInfo \
uri:/lnrpc.Lightning/GetChanInfo \
uri:/lnrpc.Lightning/GetNodeInfo \
uri:/lnrpc.Lightning/DescribeGraph \
uri:/lnrpc.Lightning/ListChannels \
uri:/lnrpc.Lightning/FeeReport \
uri:/lnrpc.Lightning/UpdateChannelPolicy \
uri:/lnrpc.Lightning/ForwardingHistory \
uri:/lnrpc.Lightning/ClosedChannels \
uri:/lnrpc.Lightning/BatchOpenChannel \
uri:/lnrpc.Lightning/ConnectPeer \
uri:/walletrpc.WalletKit/ListUnspent \
uri:/routerrpc.Router/QueryMissionControl