lightninglabs / lightning-terminal

Lightning Terminal: Your Home for Lightning Liquidity
MIT License
487 stars 82 forks source link

document when the connection to the LNC proxy is initiated #579

Open AndySchroder opened 1 year ago

AndySchroder commented 1 year ago

litd establishes connections to Lightning Node Connect terminal proxy servers to operate it's mailbox protocol. It's unclear when these connections are active.

This is a cool feature, but we should be able to turn it off without having to revoke macaroons and accounts associated with LNC. It's unclear when connections are made to the proxy servers, but I'm assuming litd keeps them open as long as there are some macaroons still associated with a LNC connection that happened at some time.

I am requesting the ability to turn off LNC in a command line/config option so that we can ensure that no connections to third party servers are ever in the works. We should still be able to use LND accounts feature and the macaroon baking features of litd without LNC making any other connections.

AndySchroder commented 1 year ago

I don't know how things are setup in the back end, but https://github.com/lightninglabs/lightning-terminal/issues/586 might be a workaround for this issue.

guggero commented 12 months ago

Just to clarify: A connection to the LNC proxy server is only initiated if there is an active LNC session. So as long as you don't create any sessions, no connection to the proxy should be established.

AndySchroder commented 12 months ago

Okay so is this how it works?

guggero commented 12 months ago

Yes, that's correct.

AndySchroder commented 12 months ago

Okay, that sounds good. I guess this feature isn't really needed now that I understand how it actually works. It might be useful to add this to your documentation somewhere, but that's up to you to decide.