Commit graph

19 commits

Author SHA1 Message Date
Elle Mouton
76250ca835
litcli: use cancellable contexts
In this commit, we use the signal.Interceptor to cancel the contexts we
use for our CLI calls.
2025-01-13 09:29:53 +02:00
Oliver Gugger
7ed8ff1a39
cmd/litcli: add ln sub commands for custom channels 2024-12-19 21:21:39 +01:00
Brian
c39cd3cde9
main: make cmd documentation coherent 2023-10-31 07:07:15 -06:00
Oliver Gugger
b3c0d0e9b1
multi: bump lnd to v0.17.0-beta 2023-10-03 19:51:57 +02:00
Elle Mouton
4e2ec08767
cmd/litcli: commands for status server
Note that the client connection for these commands does not require a
macaroon.
2023-09-22 11:59:25 +02:00
Elle Mouton
143876d1ec
litcli: prepare for a client connection without a macaroon
In preparation for an upcoming commit where litcli commands for the
Status server are added, the `getClientConn` method is updated with a
`noMac` parameter. If true, them the connection will be made without a
macaroon.
2023-09-22 11:59:24 +02:00
Elle Mouton
c5dc10ccab
cmd/litcli: add super macaroon helper commands
In this commit, a `supermacrootkey` helper command is added which lets a
user generate a random root key ID for a super macaroon along with an
`issupermacaroon` command that allows a users to easily confirm if a
macaroon is considered a super macaroon or not. Neither of these
commands require a connection to LiTd.
2023-06-20 08:10:53 +02:00
Elle Mouton
dbe62e074a
multi: add StopDaemon method to Lit
In this commit, a new Proxy service is added with a StopDaemon method.
This method can be used to stop the Litd service. This will be useful in
remote-mode itests where we want to restart Litd without also restarting
LND. It also provides a nice way of shutting down Litd in remote-mode.
A GetInfo method is also added to the service which for now just returns
the Litd version. The reason for adding this method now is so that
access to the new Proxy service can be tested in the itests withouth
actually shutting down Litd.
2023-03-17 11:14:24 +02:00
Elle Mouton
2c25ba48ca
multi: always use Lit's TLS cert
In this commit, we remove Lit's dependency on LND's tls cert in
integrated mode. With this commit, even if Lit is started in integrated
mode, it will create its own tls cert to use for serving the webserver.
2023-02-23 07:35:22 -08:00
Elle Mouton
ab347dd6f1
multi: add privacy mapper conversion helper 2023-01-27 06:47:13 +02:00
Elle Mouton
6de34a89e2
litcli: add lit-autopilot commands 2023-01-27 06:47:13 +02:00
Elle Mouton
164ade0e8c
multi: expose Actions
This commit adds a Lit grpc service and uses it to expose a ListActions
method. Litcli is also updated to make use of this method.
2023-01-27 06:47:12 +02:00
Oliver Gugger
c7fb004378
cmd/litcli: add account commands 2022-12-02 10:06:51 +01:00
Oliver Gugger
a144cfea63
cmd/litcli: refactor client conn
As a preparation to add more litd specific RPCs, we refactor the client
connection to use the generic interface instead of a specific type.
2022-10-19 10:57:17 +02:00
Elle Mouton
7a4d84a21b
cmd/litcli: use macaroon instead of ui password
Remove the use of the UI password from litcl. Use the litd macaroon
instead. Note, this means that in stateless mode, litcli won't have a
macaroon to use on disk and one must be baked specifically.
2022-06-07 11:46:02 +02:00
Elle Mouton
bcf80064d4
cmd/litcli: fix tls cert path
Currently, if in lnd-remote mode, the tls cert path will be constructed
to be in the network directory which it should not be.
2022-06-05 10:51:31 +02:00
Elle Mouton
ee25096bff
litcli: add app version 2022-04-19 20:41:51 +02:00
Oliver Gugger
43ed7ed27a
rpc_proxy+litcli: replace dummy string with empty macaroon
To avoid the macaroon parsing to fail in session.IsSuperMacaroon(), we
want the dummy macaroon to be formally valid (meaning, it can be parsed)
but not actually valid (meaning, it will fail the signature verification
since we don't have the root key for it anywhere).
2022-02-17 15:00:40 +01:00
Elle Mouton
9b84dbc7c9
cmd/litcli: add litcli for session functions 2021-11-24 13:44:26 -05:00