-
Notifications
You must be signed in to change notification settings - Fork 15
infra: Add RCP proxy binary and client library #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds infrastructure for a reverse-connect proxy (RCP) system that enables secure communication between a proxy and client over TLS. The proxy component connects to a client listener, then forwards traffic between the client and a Unix socket server.
Key changes:
- Implements TLS certificate generation and embedding for mutual TLS authentication
- Adds
rcp-proxybinary that connects to an RCP client and forwards traffic to a Unix socket - Provides a client library for accepting reverse connections from the proxy
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
tools/pkg/rcp/tlscerts/generate.go |
Standalone tool to generate self-signed TLS certificates for testing |
tools/pkg/rcp/tlscerts/certs.go |
Common functions to access embedded certificate data |
tools/pkg/rcp/tlscerts/keyserver.go |
Server-side certificate loading (build tag: tls_server) |
tools/pkg/rcp/tlscerts/keyclient.go |
Client-side certificate loading (build tag: tls_client) |
tools/pkg/rcp/tlscerts/.gitignore |
Excludes generated certificate files from git |
tools/pkg/rcp/proxy/proxy.go |
Implements reverse-connect proxy logic with TLS and bidirectional traffic forwarding |
tools/pkg/rcp/client/listen.go |
Client library for accepting TLS connections from the proxy |
tools/pkg/rcp/harpoon.go |
Defines default Unix socket path constant |
tools/cmd/rcp-proxy/main.go |
CLI entry point for the rcp-proxy binary |
.vscode/settings.json |
Adds build tags for Go tooling support |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…to user/frhuelsz/grpc/rcp-proxy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 7 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 13 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 6 comments.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 9 comments.
🔍 Description
Closes #403
bin/rcp-proxy, the proxy component of a reverse-connect proxy setup.