कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

lnd-macaroon-bakery

roasbeef द्वारा

Transportation
787clawskills.sh द्वारा बताए गए डाउनलोड
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Bake, inspect, and manage lnd macaroons for least-privilege agent access.

विवरण

यह स्किल क्या करती है

Bakes scoped lnd macaroons so each agent receives only the permissions it needs. Supports preset roles (pay-only, invoice-only, read-only, channel-admin, signer-only) and custom URI-level permission sets. Works with local nodes, Docker containers, and remote lnd instances.

Baking per-role macaroons eliminates the need to distribute admin.macaroon, reducing blast radius if any single agent credential is compromised.

इसे कब इस्तेमाल करें

  • Issuing pay-only credentials to a payment bot without exposing channel management
  • Giving a billing service invoice-only access to create and look up invoices
  • Scoping signer credentials on a dedicated remote signing node
  • Rotating a macaroon after a suspected credential leak
  • Auditing what permissions an existing macaroon grants before deployment

उदाहरण वर्कफ़्लो

इनपुट

User asks: create a pay-only macaroon for a payment agent

एजेंट
  1. 1

    Run bake.sh --role pay-only to bake a scoped macaroon

  2. 2

    Script auto-detects the litd container and connects to lnd via RPC

  3. 3

    Inspect the output macaroon with --inspect to verify granted URIs

  4. 4

    Store the macaroon file with 0600 permissions and pass the path to the agent

आउटपुट

A pay-only macaroon file granting SendPaymentSync, DecodePayReq, and GetInfo — and nothing else

आवश्यकताएँ

  • Running lnd or litd node (local Docker container or remote)
  • lncli installed locally (remote node access only)
  • TLS cert and admin.macaroon from the remote node (remote node access only)

इंस्टॉलेशन

clawhub install roasbeef/lnd-macaroon-bakery

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक