You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reach a database through kubectl port-forward, AWS SSM, or a custom tunnel command #2520
SSH tunnels, SOCKS proxies, Cloud SQL Proxy and Cloudflare Tunnel are all supported, but a database reached through kubectl port-forward or an AWS SSM session is not. Both are ordinary in a cluster or a private VPC, and both mean starting a process by hand, remembering its local port, and noticing when it dies.
Proposed solution
A custom tunnel command transport: a command line, a local port TablePro allocates and substitutes into it, and the process held for the life of the connection.
Wait for the port to accept a connection before dialing, with a timeout, and fail with the command's stderr.
Restart the command when it exits while the connection is still open, the same way the SSH tunnel reconnects.
Presets for kubectl port-forward and aws ssm start-session, so the common cases need a namespace and a service rather than a command line.
Gate an imported connection that carries a command behind an explicit confirmation, as with any other arbitrary code.
Alternatives considered
Start the forward in Terminal and connect to localhost.
Activity