How to Integrate TablePlus and PlanetScale Safely
You link tableplus and planetscale to run SQL queries on cloud databases. This setup lets your team read rows, test schema changes, and fix bugs. Teams use the desktop app to inspect live data fast. Meanwhile, the cloud database handles branching, scaling, and storage in the background. When you join both tools, developers get a fast visual interface. Still, direct links to live data bring real security risks. You must set up strict rules for logins, roles, and logs. How tableplus and planets
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.
You link tableplus and planetscale to run SQL queries on cloud databases. This setup lets your team read rows, test schema changes, and fix bugs.
Teams use the desktop app to inspect live data fast. Meanwhile, the cloud database handles branching, scaling, and storage in the background. When you join both tools, developers get a fast visual interface. Still, direct links to live data bring real security risks. You must set up strict rules for logins, roles, and logs.
How tableplus and planetscale handle logins and data flow
The desktop client talks to the cloud database over an encrypted link. First, an engineer creates a branch credential inside the database dashboard. That credential includes a host name, a user name, and a password. Next, the engineer pastes those details into the desktop client window. The client then opens a TLS session to the database routing layer.
Permissions depend on the branch role you pick when creating the credential. You can pick a read role, a write role, or an admin role. Production branches often block direct schema changes to keep live tables safe. Instead, you make a test branch, run changes there, and merge them. Once linked, the client sends raw SQL queries over the network. The cloud engine runs those queries and sends back the matching rows. If a table holds emails or card numbers, those values arrive in full.
Common failure modes and how to scope roles
Many teams fall into bad habits when linking desktop clients to cloud databases. The worst mistake is sharing one admin password across the whole engineering team. When everyone uses the same user name, your audit logs lose value. You cannot tell which person ran a slow query or dropped rows. Another risk comes from saving long-lived passwords on local laptops. If a laptop gets lost, an attacker can read your live tables.
Broad tokens also cause trouble during daily debug work. An engineer might only need to check one order row for a ticket. Yet a full write role lets them edit any table by mistake. A stray update query in a visual editor can break production data fast. Unlogged queries from local apps also create blind spots during security reviews.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix these gaps by scoping roles and network paths early. Give each team member a unique login instead of sharing a single account. Default every user to a read-only role on the main production branch. Only grant write permissions on safe development branches or for short tasks. Delete unused database passwords as soon as a debug task ends. You should also restrict which IP addresses can reach your database endpoints. Finally, add data masking so results rewrite emails, phone numbers, and national IDs.
Auditing queries and protecting sensitive fields
Good access control does not stop after a user logs in. You also need to know what queries run during every active session. Native database logs often focus on slow queries or system errors. They might not record every read query from a local desktop app. Security teams need a clear log of who ran which query and when.
Protecting private user data is just as important during daily support work. Support engineers often inspect tables to solve customer tickets. Those tables may store phone numbers, card numbers, emails, or national IDs. Without field masking, the desktop grid shows all of these values in plain text. By rewriting matched fields in query results, you keep private data safe. Engineers still see the row structure they need to fix the bug.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Can we block write queries from the desktop client on production?
Yes, you can assign a read-only role when you create the database password. You can also enforce read-only rules at the access layer for extra safety.
How do we stop engineers from saving database passwords on laptops?
Avoid giving out static database passwords to your team. Instead, use short-lived sessions tied to your company login provider for every database link.
What happens to sensitive data when engineers browse tables?
If you turn on data masking, the system rewrites sensitive fields in results. Engineers see masked values for emails, phone numbers, card numbers, and national IDs.
Related guides
In this post