A new crate, crates/relay (lib `relay`, binary wanderbooks-relay), with no ledger-* dependency. Routes an assistant's TLS connection by the server name in its ClientHello down the line an app holds open, forwarding encrypted bytes only; the line is yamux over TLS 1.3 on 443, the app proving its key with an Ed25519 signature bound to the session's TLS exporter and a fresh nonce. One durable table (SQLite: name, key, created, blocked), four-word names from a curated list of 1454 words (42.0 bits), a PROXY v2 header with the caller's address, an authoritative DNS server that publishes an app's ACME DNS-01 value for its own name only, and a list of certificate authorities served as data. Every table, queue, buffer and time is bounded. New dependencies, each permissive and passing cargo deny: yamux 0.14 (Apache-2.0 OR MIT; the multiplexer), hickory-proto 0.26 (MIT OR Apache-2.0; DNS wire format, std only), rusqlite (already in the tree), rustls and tokio-rustls (already in the tree, ring provider), ring (Ed25519, already in the tree); dev only: rcgen 0.14 (MIT OR Apache-2.0), proptest, tempfile. Added to the kernel-only lint list (no Decimal in the crate). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
41 lines
1.3 KiB
TOML
41 lines
1.3 KiB
TOML
[package]
|
|
name = "relay"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
publish.workspace = true
|
|
description = "The relay for wanderbooks.link: routes an assistant's TLS connection, by server name, down the line an app holds open, and is the domain's DNS server. It forwards encrypted bytes and holds no certificate for any app."
|
|
|
|
[lib]
|
|
name = "relay"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "relay"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
futures = "0.3"
|
|
hickory-proto = { version = "0.26", default-features = false, features = ["std"] }
|
|
ring = "0.17"
|
|
rusqlite = { version = "0.41", features = ["bundled"] }
|
|
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "io-util", "sync", "net", "signal", "time"] }
|
|
tokio-rustls = { version = "0.26", default-features = false, features = ["ring", "tls12"] }
|
|
tokio-util = { version = "0.7", features = ["compat"] }
|
|
toml = "1"
|
|
yamux = "0.14"
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["test-util"] }
|
|
proptest = "1"
|
|
rcgen = { version = "0.14", default-features = false, features = ["ring", "pem"] }
|
|
tempfile = "3"
|
|
|
|
[lints]
|
|
workspace = true
|