- Devices registered as wgcf registers them: an X25519 key made by the service, its public half posted to Cloudflare's client API (through the local proxy first, as upstream, then directly, then warp.generatorUrl), the answer made into wgcf's profile and kept below the protected state root; or a profile given (config, configFile). The renderer's endpoint for it was there; the service now supplies the profiles. - Registration runs outside the service's lock, at start, after a change, and every ten minutes until it succeeds; the proxy is applied again with the new device. - Checked: a device registered live with Cloudflare, its profile rendered as a sing-box WireGuard endpoint and the proxy running with it. WARP through AmneziaWG (userspace, interface) is still to come, and said. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
48 lines
1.2 KiB
TOML
48 lines
1.2 KiB
TOML
[package]
|
|
name = "ps-service"
|
|
description = "Proxy Suite for Windows: the service that runs the backends"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "proxy-suite-service"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
ps-core.workspace = true
|
|
ps-ipc.workspace = true
|
|
anyhow.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
tokio.workspace = true
|
|
clap.workspace = true
|
|
reqwest.workspace = true
|
|
rustls.workspace = true
|
|
tracing.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
rand.workspace = true
|
|
base64.workspace = true
|
|
x25519-dalek = { version = "2", features = ["static_secrets"] }
|
|
sha2.workspace = true
|
|
zip.workspace = true
|
|
flate2 = "1"
|
|
tar = { version = "0.4", default-features = false }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-service.workspace = true
|
|
windows-sys = { workspace = true, features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_System_JobObjects",
|
|
"Win32_Security_Authorization",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_Registry",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
"Win32_System_Threading",
|
|
"Win32_Networking_WinInet",
|
|
] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
libc = "0.2"
|