feat(gateway): TLS 1.3 only control plane and LNEx v3 channel-bound handshake

Replace the X25519/HKDF/ChaCha20 TCP layer with rustls TLS 1.3 (ALPN
vnox-lnex/3). Auto-generate a self-signed certificate keyed by the server
identity or load an operator certificate, publish the SPKI fingerprint,
bind HELLO and AUTH signatures to the TLS exporter, reject plaintext, TLS 1.2
and LNEx v2 peers with an explicit error. BREAKING: protocol v3.
This commit is contained in:
Loki 2026-10-24 22:05:30 +02:00
parent 41cc0fe632
commit ff051b7480
45 changed files with 1322 additions and 806 deletions

View file

@ -5,7 +5,6 @@ use tracing::info;
use crate::{
domain::{channels, session},
net::state::State,
proto::SessionCrypto,
};
use super::{broadcast_leave, set_channel, set_voice_channel};
@ -15,7 +14,6 @@ pub async fn leave(
_seq: &mut u32,
session_id: &str,
channel_id: &str,
_crypto: &SessionCrypto,
state: &State,
) -> Result<()> {
let Some(sess) = session::get(&state.sessions, session_id).await else {