lightning-terminal/session
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
..
migration1 multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
migration2 multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
migtest multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
context.go session: add session ID to grpc metadata via context 2025-05-15 06:15:10 +02:00
errors.go session: use error variables 2025-02-27 08:07:51 +02:00
interface.go session: implement DeleteReservedSession 2025-11-25 19:35:42 +01:00
kvdb_store.go multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
log.go multi: update LND and friends 2025-03-26 09:20:52 -05:00
macaroon.go multi: move macaroon helpers to macaroons dir 2025-02-09 10:37:40 +02:00
metadata.go session: migration to populate group ID to session ID indexes 2023-08-30 12:34:28 +02:00
privacy_flags.go refactor: using slices.Contains to simplify the code 2025-01-09 15:38:45 +08:00
privacy_flags_test.go firewall: obfuscate ConnectPeer 2024-07-02 18:21:42 +02:00
server.go session: fix mailbox TLS ALPN regression 2026-04-05 17:21:21 -05:00
sql_migration.go session: fix empty config for features in sql mig 2025-11-10 13:40:51 +01:00
sql_migration_test.go multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
sql_store.go multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
store_test.go session: implement DeleteReservedSession 2025-11-25 19:35:42 +01:00
test_kvdb.go session: update NewTestDB funcs to return Store 2025-06-12 11:52:38 +02:00
test_postgres.go session: ensure that test SQL store is closed 2025-06-12 11:52:39 +02:00
test_sql.go session: ensure that test SQL store is closed 2025-06-12 11:52:39 +02:00
test_sqlite.go session: ensure that test SQL store is closed 2025-06-12 11:52:39 +02:00
tls_credentials.go session: fix mailbox TLS ALPN regression 2026-04-05 17:21:21 -05:00
tlv.go multi: reformat long lines for readability 2025-12-09 16:12:03 +00:00
tlv_test.go session: functional options for NewSession 2025-02-27 15:00:02 +02:00