본문으로 건너뛰기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크