Stream SSH proxy over Iroh

This commit is contained in:
Eric Wendland 2026-05-21 01:03:38 +02:00
commit 87d8801d71
7 changed files with 366 additions and 23 deletions

View file

@ -223,6 +223,10 @@ pub enum ControlRequest {
node: String,
bearer_secret: Option<String>,
},
SshProxyStream {
node: String,
bearer_secret: Option<String>,
},
DbAdd {
name: String,
path: PathBuf,
@ -1486,6 +1490,15 @@ mod tests {
request
);
let request = ControlRequest::SshProxyStream {
node: "node:peer".to_owned(),
bearer_secret: Some("bearer:test".to_owned()),
};
assert_eq!(
decode_request(&encode_request(&request).expect("encode")).expect("decode"),
request
);
let response = ControlResponse::SshProxyConnected {
peer_node_id: "node:peer".to_owned(),
peer_agent_id: "agent:peer".to_owned(),