<oembed><type>rich</type><version>1.0</version><author_name>npub1wtx5qvewc7pd6znlvwktq03mdld05mv3h5dkzfwd3dc30gdmsptsugtuyn</author_name><author_url>https://nostr.ae/npub1wtx5qvewc7pd6znlvwktq03mdld05mv3h5dkzfwd3dc30gdmsptsugtuyn</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2023-09-08&#xA;🗒️ Summary of this message: A proposal suggests using runes managed by a hardware wallet to authenticate RPC calls, preventing compromised clients from making unauthorized calls.&#xA;📝 Original message:&#xA;Very interesting proposal, though as Will points out we could implement the&#xA;same using runes: have the rune be managed by the hardware wallet, and&#xA;commit the rune used to authenticate the RPC call commit to the call&#39;s&#xA;payload. That way a potentially compromised client cannot authenticate&#xA;arbitrary calls, since the hardware wallet is required to associate a rune&#xA;with it, giving it a chance for review.&#xA;&#xA;This is similar to how authentication of RPC calls works in greenlight,&#xA;where the node host is not trusted, and we need to pass the authenticated&#xA;commands forward to the signer for verification before processing any&#xA;signature request from the node. We chose to authenticate the payload&#xA;rather than the transport (which is what partonnere does) because it&#xA;removes the need for a direct connection, and adds flexibility to how we&#xA;can deliver the commands. Functionally they are very similar however.&#xA;&#xA;Cheers,&#xA;Christian&#xA;&#xA;On Thu, Sep 7, 2023, 15:06 Bastien TEINTURIER &lt;bastien at acinq.fr&gt; wrote:&#xA;&#xA;&gt; Hi William,&#xA;&gt;&#xA;&gt; &gt; What is wrong with runes/macaroons for validating and authenticating&#xA;&gt; &gt; commands?&#xA;&gt;&#xA;&gt; Runes/macaroons don&#39;t provide any protection if the machine you are&#xA;&gt; issuing the RPCs from is compromised. The attacker can change the&#xA;&gt; parameters of your RPC call and your lightning node will still gladly&#xA;&gt; execute it.&#xA;&gt;&#xA;&gt; &gt; I can&#39;t imagine validating every RPC request with a hardware&#xA;&gt; &gt; device and trusted display, unless you have some specific use case in&#xA;&gt; &gt; mind.&#xA;&gt;&#xA;&gt; I think that this is because you have the wrong idea of which RPCs&#xA;&gt; this is supposed to protect. This is useful for the RPCs that actually&#xA;&gt; involve paying something (channel open, channel close, pay invoice).&#xA;&gt; This isn&#39;t useful for &#34;read&#34; RPCs (listing channels).&#xA;&gt;&#xA;&gt; Making an on-chain operation or paying an invoice is something that is&#xA;&gt; infrequent enough for the vast majority of nodes that it makes sense&#xA;&gt; to validate it manually. Also, this is fully configurable: you can&#xA;&gt; choose which RPCs you want to protect that way and which RPCs you want&#xA;&gt; to keep open.&#xA;&gt;&#xA;&gt; Thanks,&#xA;&gt; Bastien&#xA;&gt;&#xA;&gt; Le mer. 6 sept. 2023 à 17:42, William Casarin &lt;jb55 at jb55.com&gt; a écrit :&#xA;&gt; &gt;&#xA;&gt; &gt; On Wed, Sep 06, 2023 at 03:32:50AM +0200, Bastien TEINTURIER wrote:&#xA;&gt; &gt; &gt;Hey Zman,&#xA;&gt; &gt; &gt;&#xA;&gt; &gt; &gt;I saw the announcement about the commando plugin, and it was actually&#xA;&gt; &gt; &gt;one of the reasons I wanted to write up what I had in mind, because&#xA;&gt; &gt; &gt;while commando also uses a lightning connection to send commands to a&#xA;&gt; &gt; &gt;lightning node, it was missing what in my opinion is the most important&#xA;&gt; &gt; &gt;part: having all of Bolt 8 handled by the HSM and validating commands&#xA;&gt; &gt; &gt;using a trusted display.&#xA;&gt; &gt;&#xA;&gt; &gt; What is wrong with runes/macaroons for validating and authenticating&#xA;&gt; &gt; commands? I can&#39;t imagine validating every RPC request with a hardware&#xA;&gt; &gt; device and trusted display, unless you have some specific use case in&#xA;&gt; &gt; mind.&#xA;&gt; &gt;&#xA;&gt; &gt;         Will&#xA;&gt; _______________________________________________&#xA;&gt; Lightning-dev mailing list&#xA;&gt; Lightning-dev at lists.linuxfoundation.org&#xA;&gt; https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#xA;&gt;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230908/57a116fe/attachment-0001.html&gt;</html></oembed>