Commit graph

22 commits

Author SHA1 Message Date
cyberguru1
02a1b31303
itest: fix testRequestLoggerDisable node cleanup
The test node variable was reassigned in a later step. This broke the
deferred cleanup closure and leaked the reqlog-on node process.

The leaked process caused random cleanup timeouts under heavy test load.
Fixed by copying the node to a local variable before the defer.
2026-06-22 03:27:39 -05:00
Calvin Zachman
862c1dba9d
multi: bump lnd, lndclient, and taproot-assets dependencies
Bumps lnd to v0.21.0-beta, lndclient to v0.21.0-1, and
taproot-assets to v0.8.0 across the root, litrpc, and perms
modules. taprpc uses the proper v1.1.0 tag.

lnd removed the deprecated SendPaymentSync, SendToRouteSync,
SendPayment (streaming), and SendToRoute (streaming) RPCs. The
account interceptor checkers and their tests for these RPCs are
removed since no client can call them anymore. The V2 checkers
already handle account tracking for payments.

The itest harness is updated for lnd v0.21's miner API changes
(SendOutputs -> SendOutput, Miner.Client.Generate -> GenerateBlocks,
waitForNTxsInMempool replaced by Miner.AssertNumTxsInMempool) and
TimeLockDelta bumped from 20 to 40 since lnd v0.21 raised
MinCLTVDelta from 18 to 24.
2026-06-08 13:18:37 -04:00
Boris Nagaev
1629e3106a
session: fix mailbox TLS ALPN regression
Starting in grpc-go v1.67.0, clients and servers reject TLS handshakes when
ALPN is not negotiated. This changed the default value of
GRPC_ENFORCE_ALPN_ENABLED from false to true.

The default flip is in https://github.com/grpc/grpc-go/pull/7535

Our mailbox transport handshake can reach endpoints that currently do not
negotiate ALPN, so LNC session setup started failing and the lnc_auth flow
timed out, with malformed header/content-type errors showing up later on the
stream path.

This adds mailbox-specific TLS transport credentials that allow a missing
negotiated ALPN value for mailbox links. The mailbox server path and the
integration-test mailbox clients now use these credentials, so session
establishment works again.
2026-04-05 17:21:21 -05:00
Viktor Torstensson
51f33086be
firewall: add request logger disable flag
This introduces a new firewall.request-logger.disable config option to
completely disable request logging. When disabled, the request logger
interceptor is not instantiated, avoiding all logging overhead including
database writes and request processing.

This is implemented as a separate disable flag rather than adding a new
log level because the goal is to bypass the logging system entirely for
performance reasons, not just filter events. A log level would still
process and filter each request through the interceptor.

The change also adds validation to ensure autopilot remains enabled only
when request logging is active, since autopilot relies on action logs
for rule enforcement and auditing.
2026-02-12 17:14:01 +01:00
ffranr
a0e63124c0
multi: reformat long lines for readability
- Replace occurrences of `// nolint:lll` with `// nolint:ll` across
  files for consistency.
- Reformat multiline strings, comments, and function parameters to
  improve clarity and adhere to style guidelines.
- Add `// nolint:ll` comments where necessary to prevent linter
  warnings.
2025-12-09 16:12:03 +00:00
Elle Mouton
5ed5fd25fa
session: use error variables
In preparation for having the unit tests pass against a different Store
implementation, we standardize some of the errors that get returned.
2025-02-27 08:07:51 +02:00
Elle Mouton
60bc20d3c2
itest: wait for peers to reconnect after startup
Before attempting to open a channel between them.
2025-02-13 16:01:11 +02:00
Elle Mouton
949c0bf7e2
multi: move macaroon helpers to macaroons dir
... and out of the `sessions` directory. This is to avoid import cycles
when we start explicitly linking accounts to sessions.
2025-02-09 10:37:40 +02:00
jiangmencity
fb9d3f51f7 chore: fix some typos in comment
Signed-off-by: jiangmencity <jiangmen@52it.net>
2025-01-20 19:57:29 +08:00
Oliver Gugger
d368f8a8fe
multi: bump to lnd/tapd/lndclient v0.18.4-beta/v0.5.0-alpha 2024-12-19 21:21:38 +01:00
Elle Mouton
b2c929c267
itest: add test for channel opening 2024-07-02 18:21:42 +02:00
bitromortac
ef55e4396d
itest: add tests for privacy flags 2024-04-25 14:49:47 +02:00
bitromortac
9d50ddb1a5
itest: extract newAutopilotLndConn and assertPseudo 2024-04-25 14:49:47 +02:00
Elle Mouton
bab43e37ef
itest: use coop closes instead of force closes 2023-11-22 14:05:44 +02:00
Elle Mouton
dd0a7f55c2
itest: add session linking test 2023-11-22 14:05:44 +02:00
Elle Mouton
5817543ad9
itest: call the rate limit and priv map itest 2023-11-22 14:02:14 +02:00
Oliver Gugger
b3c0d0e9b1
multi: bump lnd to v0.17.0-beta 2023-10-03 19:51:57 +02:00
positiveblue
8e6ef3f567
itest: add default context timeout to all itests 2023-02-23 07:35:25 -08:00
positiveblue
c578280c7c
itest: always close raw connections
Close connections when we are not going to use them anymore (usually a
`defer` is enough)
2023-02-23 07:35:24 -08: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
c3d9338365
multi: use URIs in session macaroon instead of perms
Also includes an itest to assert that sessions work with very large
headers.
2023-02-13 19:33:55 +02:00
Elle Mouton
b348c9d708
itest: add firewall rule itests 2023-01-27 06:47:14 +02:00