SSH port forwarding (direct-tcpip) not implemented #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
claudify attach -L 3000:3000silently fails. The CLI passes-Lthrough tossh, and thesshclient tries to open adirect-tcpipchannel when traffic arrives on the local port. The russh server inclaudify-gatewayhas nochannel_open_direct_tcpiphandler, so the channel open is rejected and local forwards never connect.Required for
Live-preview URLs (e.g.
bun devon 5173,next devon 3000). Not a v0.1.0 blocker per the user's deployment checklist, but expected for 'use Claudify like your dev laptop.'Implementation sketch
In
crates/gateway/src/ssh/server.rs, implement the Handler trait'schannel_open_direct_tcpip(host_to_connect, port_to_connect, originator_host, originator_port, session)method:Option<String>alongsidefingerprintthatsubsystem_request("claudify-attach:...")sets.kube::Api<Pod>::portforward(pod_name, [port_to_connect])to establish a kubelet port-forward stream into the session pod.ssh/attach.rs.Test coverage to add
python3 -m http.server 8080, attach with-L 8080:8080, curlhttp://localhost:8080from the host, expect a directory listing.