The control plane opened ssh connections itself, so a malicious ssh server attacked the process that held the database, the master key, and every room's keys. It now starts one worker per target and workspace. The worker gets one target key on stdin, binds loopback behind a random token, and serves exec, files, the pty, and the preview proxy. It has no database and no master key, and a closed stdin ends it. The preview HTTP client moved into the worker too. The app sees a typed response, and the worker caps bodies, output tails, handshakes, and transport waits. Direct targets now reject loopback, private, link-local, multicast, unspecified, carrier-grade NAT, and documentation addresses when a target is created and again when its worker starts. TOGETHER_ALLOW_PRIVATE_TARGETS=1 lifts the check for a server that runs on one private network.
63 lines
2.3 KiB
TOML
63 lines
2.3 KiB
TOML
[package]
|
|
name = "rhema-together"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
rust-version = "1.89"
|
|
license = "MIT"
|
|
description = "A shared room where people and a Rhema agent work on code together."
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
argon2 = "0.5"
|
|
async-stream = "0.3"
|
|
async-trait = "0.1"
|
|
axum = { version = "0.8", features = ["ws", "macros"] }
|
|
axum-extra = { version = "0.10", features = ["cookie"] }
|
|
base64 = "0.22"
|
|
chacha20poly1305 = "0.10"
|
|
flate2 = "1"
|
|
futures = "0.3"
|
|
hex = "0.4"
|
|
hmac = "0.12"
|
|
hyper = { version = "1", features = ["client", "http1"] }
|
|
hyper-util = { version = "0.1", features = ["tokio"] }
|
|
http-body-util = "0.1"
|
|
mime_guess = "2"
|
|
nix = { version = "0.31", features = ["process"] }
|
|
percent-encoding = "2"
|
|
rand = "0.8"
|
|
reqwest = { version = "0.13", default-features = false, features = ["json", "rustls", "stream"] }
|
|
rhema-bash = { path = "../rhema/crates/rhema-bash" }
|
|
rhema-core = { path = "../rhema/crates/rhema-core" }
|
|
rhema-host-agent = { path = "../rhema/crates/rhema-host-agent" }
|
|
rhema-provider = { path = "../rhema/crates/rhema-provider" }
|
|
rhema-provider-chatgpt = { path = "../rhema/crates/rhema-provider-chatgpt" }
|
|
rhema-provider-copilot = { path = "../rhema/crates/rhema-provider-copilot" }
|
|
rhema-provider-mistral = { path = "../rhema/crates/rhema-provider-mistral" }
|
|
rhema-provider-registry = { path = "../rhema/crates/rhema-provider-registry" }
|
|
rhema-sandbox = { path = "../rhema/crates/rhema-sandbox" }
|
|
rhema-sandbox-http = { path = "../rhema/crates/rhema-sandbox-http" }
|
|
rhema-sandbox-ssh = { path = "../rhema/crates/rhema-sandbox-ssh" }
|
|
rhema-transcript = { path = "../rhema/crates/rhema-transcript" }
|
|
russh = { version = "0.65", default-features = false, features = ["ring", "rsa"] }
|
|
rusqlite = { version = "0.37", features = ["bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
serde_yaml = "0.9"
|
|
sha2 = "0.10"
|
|
ssh-key = { version = "0.6", features = ["ed25519", "rand_core"] }
|
|
tar = "0.4"
|
|
thiserror = "2"
|
|
time = "0.3"
|
|
tokio = { version = "1", features = ["full"] }
|
|
tokio-tungstenite = "0.29"
|
|
tokio-stream = { version = "0.1", features = ["sync"] }
|
|
tower-http = { version = "0.6", features = ["fs", "trace", "compression-gzip"] }
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
|
|
[profile.release]
|
|
strip = true
|
|
codegen-units = 1
|