Baking macaroons for tapd #635
-
Hello, This is probably something I'm doing wrong, rather than a defect in the software. I am a little confused as to how to bake macaroons for accessing the HTTPS REST API for I am running
With lnd/litd, I can use Moreover, I noticed that the auto-generated
..while macaroons for lnd have a location of
I tried using
However when I use it to access the POST endpoint
I know that my getinfo call is otherwise correct, because if I start What is the recommended way to bake macaroons for tapd? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey. Sorry for getting back to you this late. The reason why you get an error is that the macaroon root key is different between |
Beta Was this translation helpful? Give feedback.
Hey. Sorry for getting back to you this late. The reason why you get an error is that the macaroon root key is different between
lnd
andtapd
. So if you bake a macaroon inlnd
, you get one that is signed/hashed with a key that onlylnd
knows. Whentapd
then tries to validate it, the verification fails for that reason.So to do what you are trying to achieve, we would either need to implement baking macaroons in the
tapd
RPC as well.Or, if you are running
tapd
as part of the Lightning Terminal (litd
, see https://github.com/lightninglabs/lightning-terminal), you could bake a so called "super macaroon" that is valid for all daemons in thelitd
bundles (the gRPC/REST proxy basically swaps it…