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. Claude-Session: https://claude.ai/code/session_01GDjxLvBcnJqniFQGUGb1V4
54 lines
1.3 KiB
TOML
54 lines
1.3 KiB
TOML
[package]
|
|
name = "vnox-gateway"
|
|
description = "VNOX gateway — auth, channels, sessions, permissions"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
name = "vnox_gateway"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "vnox-gateway"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
tokio.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
ed25519-dalek.workspace = true
|
|
chacha20poly1305.workspace = true
|
|
sha2.workspace = true
|
|
rand.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
anyhow.workspace = true
|
|
toml.workspace = true
|
|
uuid.workspace = true
|
|
hex.workspace = true
|
|
|
|
axum = "0.8"
|
|
sqlx = { version = "0.9", features = ["sqlite", "postgres", "runtime-tokio", "tls-rustls"] }
|
|
bitflags = "2"
|
|
prost = "0.14"
|
|
|
|
# TLS 1.3 support
|
|
rustls = "0.23"
|
|
tokio-rustls = "0.26"
|
|
rcgen = "0.14"
|
|
|
|
subtle.workspace = true
|
|
hmac.workspace = true
|
|
reqwest.workspace = true
|
|
url = "2"
|
|
|
|
[build-dependencies]
|
|
prost-build = "0.14"
|
|
|
|
[dev-dependencies]
|
|
# Test clients: a TLS 1.2 only client needs the `tls12` feature of rustls.
|
|
rustls = { version = "0.23", features = ["tls12"] }
|