mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-04 18:01:57 +01:00
signrpc+rpcserver: add signer macaroon permissions
This commit is contained in:
@@ -38,6 +38,10 @@ var (
|
|||||||
Entity: "signer",
|
Entity: "signer",
|
||||||
Action: "generate",
|
Action: "generate",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Entity: "signer",
|
||||||
|
Action: "read",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// macPermissions maps RPC calls to the permissions they require.
|
// macPermissions maps RPC calls to the permissions they require.
|
||||||
@@ -50,6 +54,14 @@ var (
|
|||||||
Entity: "signer",
|
Entity: "signer",
|
||||||
Action: "generate",
|
Action: "generate",
|
||||||
}},
|
}},
|
||||||
|
"/signrpc.Signer/SignMessage": {{
|
||||||
|
Entity: "signer",
|
||||||
|
Action: "generate",
|
||||||
|
}},
|
||||||
|
"/signrpc.Signer/VerifyMessage": {{
|
||||||
|
Entity: "signer",
|
||||||
|
Action: "read",
|
||||||
|
}},
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultSignerMacFilename is the default name of the signer macaroon
|
// DefaultSignerMacFilename is the default name of the signer macaroon
|
||||||
|
|||||||
@@ -115,6 +115,10 @@ var (
|
|||||||
Entity: "invoices",
|
Entity: "invoices",
|
||||||
Action: "read",
|
Action: "read",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Entity: "signer",
|
||||||
|
Action: "read",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// writePermissions is a slice of all entities that allow write
|
// writePermissions is a slice of all entities that allow write
|
||||||
|
|||||||
Reference in New Issue
Block a user