Aller au contenu
TakoAPI
Retour aux skills

lnd-macaroon-bakery

par roasbeef

Transportation
787Téléchargements rapportés par clawskills.sh
0Vues
0 mention J'aimeConnecte-toi pour aimer ce skill
—Pas encore noté
Ta note

Résumé

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

Description

Ce que fait ce skill

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.

Quand l'utiliser

  • 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

Exemple de workflow

ENTRÉE

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

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

SORTIE

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

Prérequis

  • 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)

Installation

clawhub install roasbeef/lnd-macaroon-bakery

Exécute la commande CLI, ou colle l'instruction dans Claude Code, Cursor, Codex ou l'agent de code que tu utilises.

Liens