Tailscale Database Gateway
github.com/dialohq/tailscale-database-gateway- Category
- Developer Tools
- Rank
- No. 2034Tools index
- Pricing
- Open Source
- Type
- TOOL
- Use case
- Security & Identity
- GitHub
- 8 stars
- Date
About
A proxy that gives users passwordless access to PostgreSQL and ClickHouse based on their Tailscale identity and application grants. It connects to the upstream database with a username and password from a file or with temporary credentials issued by HashiCorp Vault, and handles PostgreSQL, ClickHouse native TCP and ClickHouse HTTP in one process.
At a glance
Tailscale Database Gateway connects clients to PostgreSQL or ClickHouse based on their tailnet identity. It is worth evaluating if you want developers to connect without distributing database passwords.
Good fit
Teams already running Tailscale that can manage both network grants and database privileges.
Consider something else when
Skip it if clients cannot join your tailnet or you need row-level access policies enforced by the gateway itself.
Start here
Point a test gateway at a scratch database with a genuinely read-only upstream login. Check that an authorized client can select rows, cannot write, and that an unauthorized identity cannot connect.
Cost and requirements
The MIT-licensed gateway runs in an OCI container. You need a tailnet, permission to configure its grants, and upstream credentials. Vault is optional for temporary credentials.
Limits to know
The gateway proxies traffic and holds or obtains upstream credentials. A gateway role named readonly does not change SQL privileges. Configure the actual database role and verify the upstream server certificate.
Sources checked 2026-11-05. Source-based assessment.
Similar tools
Tags
Tech Stack
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.