Commit graph

56 commits

Author SHA1 Message Date
Elle Mouton
860edec7be
mod: bump net dep to v0.33.0 2025-01-21 10:59:01 +02:00
dependabot[bot]
721e0f2a19
build(deps): bump golang.org/x/crypto from 0.25.0 to 0.31.0 in /litrpc
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.25.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.25.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-19 20:45:43 +00:00
dependabot[bot]
771dfacc6c
build(deps): bump github.com/golang-jwt/jwt/v4 in /litrpc
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt) from 4.4.2 to 4.5.1.
- [Release notes](https://github.com/golang-jwt/jwt/releases)
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md)
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.4.2...v4.5.1)

---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-06 10:12:23 +00:00
Oliver Gugger
ea33903622
litrpc+proto: fix ownership in docker container
This was discovered while debugging the reproducible build. We used the
wrong group ID. And the environment variables aren't super portable so
we use the correct command to get the numeric user and group IDs.
2024-10-24 11:18:02 +02:00
Oliver Gugger
c9e632e38d
docker: pin all docker images with their hash 2024-10-23 14:53:32 +02:00
Oliver Gugger
65144f2c97
GitHub+docker: update to Go 1.22.6 2024-10-23 11:50:41 +02:00
Elle
9eb11e2c5f
Merge pull request #858 from ellemouton/bakeSuperMacInStatelessV2
multi: bake super macaroon during stateless init mode (V2)
2024-10-18 09:33:46 +02:00
dependabot[bot]
d0a8e8b910
build(deps): bump github.com/opencontainers/runc in /litrpc
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.1.12 to 1.1.14.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.12...v1.1.14)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-14 13:50:13 +00:00
Elle Mouton
a59bf2735d
litrpc+proto: add ReadOnly param to BakeSuperMacaroon 2024-10-14 15:48:18 +02:00
Elle Mouton
a3e8c175e8
litrpc: run make rpc 2024-10-14 15:48:18 +02:00
Andras Banki-Horvath
b7fd53d889
build: convert litrpc into a module 2024-10-14 14:32:46 +02:00
bitromortac
f5d57f8cf1
rules: add channel open constraints
We add a new channel constraint rule that enforces limits on channel
opening for the OpenChannelSync and BatchOpenChannel end points.

The channel constraint rule takes care about:
* min channel size
* max channel size
* max push amount
* no closing address was used
2024-07-02 18:21:41 +02:00
bitromortac
460dec1779
litrpc: add privacy flags
* to sessions in order to get details when running `autopilot list`
* to the autopilot rpc to be able to register features with privacy
  flags via cli `autopilot add`
2024-04-25 14:49:46 +02:00
bitromortac
b02aad321b
autopilotserverrpc+litrpc: add privacy flags
* to Features to know about default privacy flags in `autopilot features`
* to RegisterAutopilotSession in order to communicate to the autopilot
  which privacy flags are being used after `autopilot add`
2024-04-25 14:49:46 +02:00
dependabot[bot]
8a7fab46a9
build(deps): bump google.golang.org/protobuf in /autopilotserverrpc
Bumps google.golang.org/protobuf from 1.30.0 to 1.33.0.

---
updated-dependencies:
- dependency-name: google.golang.org/protobuf
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-15 18:24:50 +01:00
Viktor Tigerström
4a46e41f97
protos: add Subserver custom_status to protos 2024-01-05 03:46:54 +01:00
Oliver Gugger
b3c0d0e9b1
multi: bump lnd to v0.17.0-beta 2023-10-03 19:51:57 +02:00
Elle Mouton
4006622df6
litrpc: add Status server protos
Add the protos for a new Status server that can be used to query the
status of a number of LiT's subservers.
2023-09-22 11:55:16 +02:00
bitromortac
6e30ecaa69
litcli+rpcserver: session registration with config
We add command line flags to litcli in order to be able to submit
feature configurations when registering a session.
2023-09-01 08:03:21 +02:00
bitromortac
1049de549e
litrpc+server: show cfg in ListAutopilotFeatures
We pass on default configuration to litrpc in order to display them in
the list features call.
2023-09-01 08:03:21 +02:00
Elle Mouton
60c10bd91d
multi: use group ID for PrivacyMapConversion query 2023-08-30 12:34:29 +02:00
Elle Mouton
bd9a99c5d4
multi: allow querying actions by group ID 2023-08-30 12:34:29 +02:00
Elle Mouton
e92350254f
litrpc: add session link field to AddAutopilotSessionRequest
Update the Autopilot service AddAutopilotSessionRequest message to
include a new `group_id` field. Users may set this field to the ID of a
sessino group in order to link the new session to the older ones. The
Session message is also updated with new `group_id` field which will be
populated by the group a session.
2023-08-30 12:34:26 +02:00
Oliver Gugger
27b04eb374
multi: add AccountInfo RPC 2023-07-26 16:41:20 +02:00
Oliver Gugger
1e08f4a78d
multi: allow account update and removal by label 2023-07-26 16:41:20 +02:00
Oliver Gugger
138d33bbed
multi: add label to account 2023-07-26 16:41:20 +02:00
Elle Mouton
7f38895988
litrpc: add BakeSuperMacaroon endpoint to the Proxy service 2023-06-20 08:10:54 +02:00
Elle Mouton
0428731c67
litrpc+autopilotserverrpc: run make protos
Regenerate the protos after the recent bump of the protobuf dependency.
2023-06-20 08:06:17 +02:00
Oliver Gugger
c858e64615
README: prepare for lnd 0.16 release 2023-03-29 20:34:38 +02:00
Elle Mouton
e698d709be
itest: test LiTd REST endpoints 2023-03-20 20:45:25 +02:00
Elle Mouton
e22f9e7b83
litrpc: add Litd REST annotations 2023-03-20 20:45:24 +02:00
Elle Mouton
6ec28a6fa6
litrpc: add cli directives to Proxy service 2023-03-20 20:45:14 +02:00
Elle Mouton
16a9c7f744
litrpc: add comments and lncli directives to Sessions service 2023-03-20 13:25:25 +02:00
Elle Mouton
6c3fa5a6ad
litrpc: add cli directives to Autopilot service 2023-03-20 13:25:22 +02:00
Elle Mouton
e0747b5354
litrpc+rpcserver: add firewall service comments and cli directives 2023-03-19 17:41:04 +02:00
Elle Mouton
0164175f3b
litrpc: add cli directives to Accounts service 2023-03-19 17:18:10 +02:00
Elle Mouton
a8b4ef1d48
litrpc+autopilotrpc: bump docker go version to 1.19.4-buster 2023-03-19 17:16:59 +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
ab347dd6f1
multi: add privacy mapper conversion helper 2023-01-27 06:47:13 +02:00
Elle Mouton
f3d2aeb00a
interface: create a new Litd Client interface 2023-01-27 06:47:13 +02:00
Elle Mouton
160977d668
autopilotserver: add an autopilot server client
Add a client for the autopilot server along with a mock server that can
be used in tests.
2023-01-27 06:47:13 +02:00
Elle Mouton
9594aab54b
autopilotserverrpc: add autopilot server protos 2023-01-27 06:47:12 +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
69516ec675
litrpc: add lit-autopilot protos
In this commit we add all the proto methods and messages that we will
need for the initial autopilot implementation.
2023-01-27 06:47:11 +02:00
Elle Mouton
78c996a7a1
multi: add Session ID to struct
This commit adds an ID to the Session struct. The ID is not persisted
but is instead derived from the macaroon used for the session.
2023-01-27 06:47:10 +02:00
Elle Mouton
1f78f29e8e
litrpc: let revoked_at use type 16
Update the proto message field number for revoked_at to be 16 and
reserve 14 and 15 for future use.
2023-01-11 09:34:46 +02:00
Elle Mouton
5ffa428a8e
litrpc: add revoked_at field to Session proto 2023-01-10 10:43:26 +02:00
Elle Mouton
0311de1cb7
multi: change account session type and reserve type 4
In this commit, the Account session type is changed to be type 5 in
both the session proto and in the persisted Session. This is done so
that type 4 can be reserved for future use.
2022-12-06 12:50:27 +02:00
Oliver Gugger
fc4f4a4cca
multi: add account based LNC sessions 2022-12-02 10:10:02 +01:00
Oliver Gugger
6af85cfb70
litrpc: add accounts service 2022-12-02 10:06:50 +01:00