-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
admin.macaroon in hex format #27
Comments
Woah, Alby looks awesome! Yeah we should be able to add that. We currently have the admin macaroon base64 encoded as part of the lndconnect URL but nowhere in hex. Out of interest how did you pair with Alby? I just installed it to test and am entering |
This is what I did to pair: I suppose we can talk to @bumi so alby supports lndconnect but I figured other projects might need hex encoded macaroon as well. |
Thanks! Yeah I'd suggest lndconnect support since it's just a single string/QR with everything the user needs in one go. But if there's some reason you don't want to support that in Alby and specifically want a hex string then happy to add support for that in Umbrel. |
Also FWIW you can use the LNDHub app on Umbrel to pair with Alby and you'll then also get an isolated allowance just for Alby outside of your main LND wallet. So if the browser extensions was compromised, your main LND wallet funds would be safe. |
yeah, Alby should for sure add support for lndconnect URLs. regarding https URLs: we still have the problem that the browser does not easily support self-signed certificates. Do you have any idea how to make it easier for umbrel users? For now we would suggest @pseudozach's solution. Having a self-hosted LNDHub is also a great idea to connect and have an isolated allowance. Either way ideally I would like to have a one-click setup for Umbrel users. |
To provide some background, I started by using lnbits on my umbrel which provides the same experience as LNDHub (a separate accounting system with access to limited funds) and it worked great. I only wanted to test direct LND connection for a separate reason (lnbits creates invoices with 10 min expiry) and then I ran into this issue. From your discussion, best path forward is to support lndconnect in Alby. thanks. |
Currently our wallet connect UI lists lots of popular wallet with detailed instructions, plus we have generic connection options at the bottom (Bitcoin Core RPC/P2P/lndconnect/electrum/etc). See example here: It would be simple to add a new entry for Alby using @pseudozach steps. You can see an example PR here for adding a new wallet to connect wallet UI: getumbrel/umbrel-dashboard#331
It's a real pain, we have siialr issues on Umbrel, it's why we (currently) use HTTP for all local communication. FWIW I didn't have to export and import the cert on my OS, I was able to just visit https://umbrel.local:8080 in the browser, allow the cert when faced with the error, and then it would automatically add the cert to my browser and I could connect in the extension.
This would be great, unfortunately you can't really get around the SSL issue on the local network due to browser limitations (unless there's a way for a browser extension to bypass this?). I feel like there might potentially be a clever solution some how using WebRTC over the local network for Alby <> Umbrel communication. |
ok, that's cool.
Do you think it is best to connect through the local domain (umbrel.local) or though tor? If lndhub/lnbits is always installed this could be also directly offered as a possibility. What do you think is best for umbrel users? though this is off topic from this issue. I will create a new issue where we can discuss this. Independent of Alby I think it would be helpful to easily get the macaroon as hex. I think it is common that the macaroon is needed to configure LND connections. |
Can you do Tor connections from a browser extension? If there's some way to embed a Tor daemon then that would be awesome! umbrel.local is faster but will stop working if the user moves to a different network that their Umbrel isn't connected to which would probably not be obvious to them.
Yeah, I agree. |
Can you please add another entry in
connect wallet
page to expose admin.macaroon in hex format?This would be useful for many integrations including https://github.com/getAlby/lightning-browser-extension which expects the macaroon in hex format. Not sure if this is available in any way in umbrel but I had to log into to the lnd docker container and use xxd to get it.
The text was updated successfully, but these errors were encountered: