• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nagayon-935 / conduit / 23789841913
64%

Build:
DEFAULT BRANCH: main
Ran 31 Mar 2026 09:16AM UTC
Jobs 1
Files 22
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

31 Mar 2026 09:13AM UTC coverage: 59.983% (-1.4%) from 61.362%
23789841913

push

github

nagayon-935
feat: implement SSH LocalForward HTTP/WebSocket proxy

Add support for ssh_config LocalForward directives in Conduit.
When a session has LocalForwards configured, the backend exposes
/api/forward/{token}/{host}/{port}/{path...} as an HTTP reverse
proxy tunneled through the existing SSH connection.

Backend:
- session: ForwardRule type, AllowedForwards allowlist, IsForwardAllowed()
- api/connect: accept local_forwards in ConnectRequest, return
  forward_base_url in ConnectResponse
- api/forward: HTTP reverse proxy via httputil.ReverseProxy with SSH
  DialContext transport; WebSocket upgrade via Hijack + bidirectional copy;
  Location header rewrite for redirects
- handler: register /api/forward/ routes outside loggingMiddleware
  to preserve http.Hijacker interface

Frontend:
- parseSshConfig: parse LocalForward directives (bind_address:port host:hostport)
- types: LocalForward interface, Profile.localForwards, ConnectResponse.forward_base_url
- useProfiles: propagate localForwards through import/upsert
- form: buildConnectRequest includes local_forwards
- Terminal: clickable [host:port] chips in status bar; greyed out when disconnected

Nginx:
- /api/forward/ location with WebSocket headers and 86400s timeout

88 of 153 new or added lines in 4 files covered. (57.52%)

727 of 1212 relevant lines covered (59.98%)

7.08 hits per line

Uncovered Changes

Lines Coverage ∆ File
65
30.85
internal/api/forward.go
Jobs
ID Job ID Ran Files Coverage
1 23789841913.1 31 Mar 2026 09:16AM UTC 22
59.98
GitHub Action Run
Source Files on build 23789841913
  • Tree
  • List 22
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 30165d7c on github
  • Prev Build on main (#23753453723)
  • Next Build on main (#23791787239)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc