Commit graph

21 commits

Author SHA1 Message Date
Oliver Gugger
7cead0194a
make+perms: allow itest to run with dev build tag
The dev flag allows us to enable some of lnd's configuration flags that
are only available for testing. To speed up any wallet interaction, we
also add the lowscrypt build tag that chooses weak encryption for the
wallet that is much faster (a couple of milliseconds vs. multiple
seconds per wallet creation).
2024-11-07 09:39:16 +01:00
Elle Mouton
d3133ff109
perms: hold the mutex for any public call 2024-10-14 15:48:17 +02:00
Elle Mouton
6310eedbfc
multi: init status manager
Initialise an instance of the status manager in LightningTerminal.
Register its gRPC and REST endpoints and also add its method to the set
of LiT whitelisted permissions.
2023-09-22 11:59:24 +02:00
Elle Mouton
15a69e0a11
perms+subservers: register subserver whitelisted urls with perms manager 2023-09-07 11:00:02 +02:00
Elle Mouton
705bf124cc
perms: add IsWhiteListURL method to the Manager
This commit adds a new `IsWhiteListURL` to the permissions manager. This
can then be used by LiT to check if it should perform macaroon
validation on a query or not.
2023-09-07 11:00:02 +02:00
Oliver Gugger
27b04eb374
multi: add AccountInfo RPC 2023-07-26 16:41:20 +02:00
Elle Mouton
29b11261b9
multi: implement BakeSuperMacaroon method 2023-06-20 08:10:54 +02:00
Elle Mouton
06bb73f62d
perms+subservers: let subserver register perms 2023-05-03 08:51:45 +02:00
Elle Mouton
c4562cba6b
perms: remove dead code 2023-05-02 08:33:46 +02:00
positiveblue
c3bc9917fd
subservers: add uri handler helper funcs 2023-05-01 00:48:24 -07:00
positiveblue
f2fe3cc736
subservers: move permission logic 2023-05-01 00:37:58 -07: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
positiveblue
c267ef64eb
multi: update lnd dependency to v0.16.0-beta.rc3
- Bump lnd and other module dependencies.
- Bump Go build version & RPCs
- Refactor itests to use the new lnd itest framework.
2023-03-15 08:36:23 -07:00
Elle Mouton
ab347dd6f1
multi: add privacy mapper conversion helper 2023-01-27 06:47:13 +02:00
Elle Mouton
3b67325360
multi: implement lit-autopilot rpc server 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
Elle Mouton
bee2d62944
multi: add withAllSubServers param to perms.NewManager
In this commit, a new withAllSubServers option is added to the
perms.NewManager function. If its value is true, then all LND's
subserver permissions will be added to the active permissions set
regardless of whether LND was actually compiled with the necessary build
tags. This is useful for Lit clients who perhaps can never know which
sub-servers LND was compiled with and so want to assume that it was
compiled with all.
2023-01-11 17:03:04 +02:00
Oliver Gugger
8b58c103ce
terminal: use account RPC server 2022-12-02 10:06:51 +01:00
Elle Mouton
beb2546f9d
multi: allow custom session with all read-only perms
In this commit, a special case is added to the creation of a custom
session to allow the user to specify custom URIs as well as the
permissions for all read-only endpoints.
2022-11-29 12:44:59 +02:00
Elle Mouton
15cd1bdef9
multi: support regex URIs
With this commit, a user can now specify a regex when specifying custom
permissions for an LNC session. This regex will be used to select
permissions for URIs that match the regex.
2022-11-29 12:32:14 +02:00
Elle Mouton
d41f796f8e
multi: move permissions' manager to perms folder 2022-11-22 17:44:59 +07:00