Skip to content

feat(tcp): add RemoteListen for reverse port forwarding - #54

Draft
rhuss wants to merge 1 commit into
mainfrom
025-reverse-port-forwarding
Draft

feat(tcp): add RemoteListen for reverse port forwarding#54
rhuss wants to merge 1 commit into
mainfrom
025-reverse-port-forwarding

Conversation

@rhuss

@rhuss rhuss commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add RemoteListen method to TCPInterface for reverse port forwarding (ssh -R equivalent)
  • Includes functional options (WithRemoteBindAddress, WithRemoteListenServiceID), input validation, fake client support, and comprehensive tests
  • Real gRPC implementation returns Unimplemented pending upstream proto extension

Blocked on

Upstream support for reverse port forwarding / host-local endpoint proxying:

This PR parks the SDK-side API surface until the backend proto RPC is available.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d1b045ee-623e-42cf-abc2-be51c32eb809

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Aug 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.39%. Comparing base (e44c700) to head (c25ed2b).

Files with missing lines Patch % Lines
openshell/v1/tcp.go 33.33% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
- Coverage   89.57%   89.39%   -0.18%     
==========================================
  Files          78       78              
  Lines        4901     4932      +31     
==========================================
+ Hits         4390     4409      +19     
- Misses        345      354       +9     
- Partials      166      169       +3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant