Skip to content

Commit 1d9c546

Browse files
Merge pull request #1033 from ViktorTigerstrom/2025-04-expose-proxy-via-lnc
multi: expose `Proxy` service over LNC
2 parents 28483b5 + 2d3efee commit 1d9c546

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/release-notes/release-notes-0.14.2.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@
4242
instead, to update an account's balance. The flag will no longer be
4343
supported in Lightning Terminal `v0.16.0-alpha`.
4444

45+
* [The `litrpc.Proxy` endpoints are now exposed over
46+
LNC](https://github.com/lightninglabs/lightning-terminal/pull/1033).
47+
Note that this also exposes the `stop` and `bakesupermacaroon` endpoints over
48+
LNC. If this is not desired, it is recommended to fine-tune the macaroon
49+
created for the LNC session. Specifically, remove the `proxy:write`
50+
permission to disable access to the `stop` endpoint, and the
51+
`supermacaroon:write` permission to disable access to the
52+
`bakesupermacaroon` endpoint.
53+
4554
## Integrated Binary Updates
4655

4756
### LND

itest/litd_mode_integrated_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ var (
358358
macaroonFn: litMacaroonFn,
359359
requestFn: proxyRequestFn,
360360
successPattern: "\"version\":",
361-
allowedThroughLNC: false,
361+
allowedThroughLNC: true,
362362
grpcWebURI: "/litrpc.Proxy/GetInfo",
363363
restWebURI: "/v1/proxy/info",
364364
litOnly: true,

terminal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ func (g *LightningTerminal) registerSubDaemonGrpcServers(server *grpc.Server,
11761176

11771177
if forLNCSession {
11781178
litrpc.RegisterStatusServer(server, g.statusMgr)
1179+
litrpc.RegisterProxyServer(server, g.rpcProxy)
11791180
} else {
11801181
litrpc.RegisterSessionsServer(server, g.sessionRpcServer)
11811182

0 commit comments

Comments
 (0)