The Simplest Way to Make Looker and Tcp Proxies Work Like They Should
Teams use looker and tcp proxies to route chart queries to private databases. This setup lets cloud analytics apps reach internal data without public database ports. Data teams need fast dashboards that read live database tables. Network teams must keep those database ports closed to the open web. A transport path bridges that gap so analysts can run reports safely. How looker and tcp proxies move data and check keys The analytics app sits in the cloud and builds SQL queries for users. When
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Teams use looker and tcp proxies to route chart queries to private databases. This setup lets cloud analytics apps reach internal data without public database ports.
Data teams need fast dashboards that read live database tables. Network teams must keep those database ports closed to the open web. A transport path bridges that gap so analysts can run reports safely.
How looker and tcp proxies move data and check keys
The analytics app sits in the cloud and builds SQL queries for users. When a user loads a dashboard, the app opens a network socket. That socket points to the host and port of the transport layer.
The transport node listens on an allowed IP address and port. It accepts the incoming socket from the analytics app. Then it forwards the raw bytes to the internal database server.
Because the transport layer works at the packet level, it moves bytes as they are. It does not read the SQL text inside the encrypted stream. The analytics app still logs in with a database username and password.
The database checks those keys and runs the query. Results flow back along the same network path to the dashboard. Users see their charts update in a few seconds.
Common failure modes with shared database keys
Many teams set up one shared database user for the whole analytics app. Every dashboard and user query runs under that single database role. If a query slows down the database, the ops team sees one name.
They cannot tell which analyst or dashboard ran the bad query. Worse, a shared role often gets broad read rights across many schemas. One wrong chart setup can expose sensitive tables to the wrong team.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Network rules also cause trouble when teams rely only on IP lists. A transport node checks source IP addresses, not user identities or query types. Anyone who reaches that port with the shared password can read raw rows.
Raw rows often hold emails, phone numbers, card numbers, or national IDs. Without query checks, those fields flow straight into dashboard caches and downloads. Audit logs at the transport level only show byte counts and timestamps.
Scoping database roles and network paths
Start by breaking up the single shared database account into smaller roles. Create separate database connections in the analytics app for each business unit. Give the finance connection a role that reads only finance tables.
Give the product team a role that reads only event tables. Next, lock down the network path to the transport node. Allow inbound traffic only from the known outbound IPs of the analytics service.
Set strict idle timeouts on both the transport listener and the database. Dead sockets from canceled reports can pile up and block new queries. Short timeouts clear those dead sockets before the pool fills up.
Turn on TLS encryption for the entire link from the app to the database. Make sure the analytics app checks the server certificate on every link. Rotate the database passwords on a set schedule to limit leaked key risks.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
Why do analytics queries drop through a transport link?
Long queries often hit idle timeout limits on the network listener. Raise the keepalive timer so the link keeps the session active while the database works.
Can a basic packet forwarder filter out sensitive columns?
No, a basic packet forwarder only moves raw bytes between two ports. You need database views or a query-aware layer to mask emails or card numbers.
How do we trace which analyst ran a heavy query?
Map separate analytics connections to distinct database roles for each team. You can also check the query history inside the analytics app admin logs.
Related guides
In this post