Skip to content

cloudflared access tcp tunnel integration #1285

Closed

Description

@JustJoostNL

Problem

I'm not sure if it's easily possible, but adding support for Cloudflare TCP tunnels would be a great addition.

Proposed solution

The app should be able to automatically start and stop a cloudflared access tcp process for a database connection, instead of requiring the user to manually run a command like:

cloudflared access tcp \
  --hostname myhostname.com \
  --url 0.0.0.0:5432

Currently, the workflow is inconvenient because the tunnel must be started and stopped manually every time before connecting with TablePro.

A few implementation notes / expectations:

  • It would be fine to rely on an already-installed cloudflared binary on the system, unless bundling it with the app is straightforward.
  • The tunnel should only stay active while the database connection is open.
  • Ideally, the local listener would not be fully exposed. Using an internal-only mechanism would also help avoid port collisions (an expose to LAN option may be nice in some cases, though).
  • From the user's perspective, the connection should work transparently, similar to SSH tunneling support.

Alternatives considered

Running the above command manually every time

Related database type

N/A / General

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions