Implement wraith serve CLI subcommand with clap
Add serve subcommand with all flags matching server.md CLI interface: --key, --authorized-keys, --cert-authority, --transport, --listen, --tls-cert, --tls-key, --acme-domain, --stealth, --proxy, --iroh-relay, --max-connections-per-ip, --max-auth-attempts. --key is required, --transport defaults to tcp, --listen defaults to 0.0.0.0:22. --stealth validates TLS transport. --acme-domain requires acme feature flag. --transport iroh prints endpoint ID on startup. Key inputs accept file paths. Errors reported to stderr with non-zero exit code. Also adds acme feature flag and rustls-pemfile/rustls-pki-types dependencies for TLS cert loading.
This commit is contained in:
13
Cargo.lock
generated
13
Cargo.lock
generated
@@ -3863,6 +3863,15 @@ dependencies = [
|
||||
"x509-parser 0.16.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustls-pemfile"
|
||||
version = "2.2.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
|
||||
dependencies = [
|
||||
"rustls-pki-types",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rustls-pki-types"
|
||||
version = "1.14.1"
|
||||
@@ -5586,6 +5595,10 @@ dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
"iroh",
|
||||
"rustls",
|
||||
"rustls-acme",
|
||||
"rustls-pemfile",
|
||||
"rustls-pki-types",
|
||||
"tokio",
|
||||
"url",
|
||||
"wraith-core",
|
||||
|
||||
Reference in New Issue
Block a user