<oembed><type>rich</type><version>1.0</version><author_name>npub17fjkngg0s0mfx4uhhz6n4puhflwvrhn2h5c78vdr5xda4mvqx89swntr0s</author_name><author_url>https://nostr.ae/npub17fjkngg0s0mfx4uhhz6n4puhflwvrhn2h5c78vdr5xda4mvqx89swntr0s</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2023-09-07&#xA;🗒️ Summary of this message: Runes/macaroons don&#39;t protect against compromised machines. Validating RPCs manually is useful for payment-related operations, not for &#34;read&#34; RPCs.&#xA;📝 Original message:&#xA;Hi William,&#xA;&#xA;&gt; What is wrong with runes/macaroons for validating and authenticating&#xA;&gt; commands?&#xA;&#xA;Runes/macaroons don&#39;t provide any protection if the machine you are&#xA;issuing the RPCs from is compromised. The attacker can change the&#xA;parameters of your RPC call and your lightning node will still gladly&#xA;execute it.&#xA;&#xA;&gt; I can&#39;t imagine validating every RPC request with a hardware&#xA;&gt; device and trusted display, unless you have some specific use case in&#xA;&gt; mind.&#xA;&#xA;I think that this is because you have the wrong idea of which RPCs&#xA;this is supposed to protect. This is useful for the RPCs that actually&#xA;involve paying something (channel open, channel close, pay invoice).&#xA;This isn&#39;t useful for &#34;read&#34; RPCs (listing channels).&#xA;&#xA;Making an on-chain operation or paying an invoice is something that is&#xA;infrequent enough for the vast majority of nodes that it makes sense&#xA;to validate it manually. Also, this is fully configurable: you can&#xA;choose which RPCs you want to protect that way and which RPCs you want&#xA;to keep open.&#xA;&#xA;Thanks,&#xA;Bastien&#xA;&#xA;Le mer. 6 sept. 2023 à 17:42, William Casarin &lt;jb55 at jb55.com&gt; a écrit :&#xA;&gt;&#xA;&gt; On Wed, Sep 06, 2023 at 03:32:50AM +0200, Bastien TEINTURIER wrote:&#xA;&gt; &gt;Hey Zman,&#xA;&gt; &gt;&#xA;&gt; &gt;I saw the announcement about the commando plugin, and it was actually&#xA;&gt; &gt;one of the reasons I wanted to write up what I had in mind, because&#xA;&gt; &gt;while commando also uses a lightning connection to send commands to a&#xA;&gt; &gt;lightning node, it was missing what in my opinion is the most important&#xA;&gt; &gt;part: having all of Bolt 8 handled by the HSM and validating commands&#xA;&gt; &gt;using a trusted display.&#xA;&gt;&#xA;&gt; What is wrong with runes/macaroons for validating and authenticating&#xA;&gt; commands? I can&#39;t imagine validating every RPC request with a hardware&#xA;&gt; device and trusted display, unless you have some specific use case in&#xA;&gt; mind.&#xA;&gt;&#xA;&gt;         Will&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20230907/eaf3421b/attachment.html&gt;</html></oembed>