How to Integrate pgAdmin and ScyllaDB Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Engineers use pgAdmin and ScyllaDB together by linking Postgres to ScyllaDB with foreign data wrappers. This setup lets teams run SQL queries in pgAdmin that read or write ScyllaDB data. PgAdmin talks only to the Postgres wire protocol. ScyllaDB uses its own wide-column query language and protocol. A Postgres instance sits in the middle to translate queries between the two systems. This bridge helps analysts join relational tables with fast wide-column records in one window. How pgadmin and s

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.

Engineers use pgAdmin and ScyllaDB together by linking Postgres to ScyllaDB with foreign data wrappers. This setup lets teams run SQL queries in pgAdmin that read or write ScyllaDB data.

PgAdmin talks only to the Postgres wire protocol. ScyllaDB uses its own wide-column query language and protocol. A Postgres instance sits in the middle to translate queries between the two systems. This bridge helps analysts join relational tables with fast wide-column records in one window.

How pgadmin and scylladb share logins and data

Data flows from the pgAdmin client to a Postgres server first. When a user runs a query on a foreign table, Postgres calls the ScyllaDB cluster. The foreign data wrapper translates the SQL request into a native query for ScyllaDB. ScyllaDB sends the matching rows back to Postgres, which formats them for the pgAdmin screen.

Logins happen in two steps across this bridge. First, the engineer logs in to pgAdmin and opens a session on the Postgres server. Second, Postgres uses a user mapping to log in to ScyllaDB on the user's behalf. That mapping holds the ScyllaDB username and secret key inside the Postgres catalog. Both network hops need TLS encryption so secrets and row data stay safe in transit.

Common failure modes in bridged database setups

Many teams map every Postgres user to a single admin role in ScyllaDB. This shortcut breaks audit trails because ScyllaDB sees every query coming from one shared account. If an engineer drops a keyspace or reads sensitive rows, the logs hide who did it. Shared accounts also give read-only analysts full write power on the wide-column side.

Unbounded queries create another big risk for production clusters. A join in pgAdmin might pull millions of rows from ScyllaDB into Postgres memory. Without strict timeouts and row limits, one bad query can crash the bridge server. Plaintext keys stored in foreign server settings also put the whole cluster at risk.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

How to scope roles and network paths

Start by creating separate roles in ScyllaDB for each job function in your team. Map read-only Postgres roles to read-only ScyllaDB accounts with tight keyspace permissions. Never store root or superuser credentials inside a Postgres user mapping. Rotate the mapped passwords on a fixed schedule to limit the blast radius of leaks.

Lock down network paths so only the Postgres bridge can reach the ScyllaDB data port. Block direct developer network traffic to ScyllaDB nodes using firewall rules and private subnets. Set statement timeouts on the Postgres side to kill slow cross-database joins early. Turn on query logging in both databases so security teams can trace every read and write. When query results contain emails, phone numbers, card numbers, or national IDs, masking rewrites matched fields in results.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Can pgAdmin talk directly to a ScyllaDB cluster?

No, pgAdmin speaks only the Postgres protocol and cannot talk directly to ScyllaDB nodes. You must route queries through a Postgres server that uses a foreign data wrapper.

How do we stop analysts from modifying ScyllaDB data in pgAdmin?

Map the analyst role in Postgres to a read-only role inside the ScyllaDB cluster. ScyllaDB will reject any write, update, or delete commands sent through that mapping.

Why do cross-database joins run slow in pgAdmin?

The foreign data wrapper often pulls full tables across the network before filtering rows in Postgres. Pushing filter rules down to the remote cluster and limiting returned rows keeps queries fast.

The query runs. The emails stay hidden.