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