How to Configure Make CockroachDB Read Only Access

Published
Length
3 min read

Luis Felipe Dias

All posts

You set up make cockroachdb read only access by creating a dedicated database role with select rights. Then you paste those database credentials into your workflow module in Make. Many teams skip this step and use their main admin account for speed. This shortcut gives your automated scenarios full power to change or delete live data. A single bad module setting can wipe out key tables in seconds. How to set up make cockroachdb read only access CockroachDB uses the standard PostgreSQL wire fo

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 set up make cockroachdb read only access by creating a dedicated database role with select rights. Then you paste those database credentials into your workflow module in Make. Many teams skip this step and use their main admin account for speed. This shortcut gives your automated scenarios full power to change or delete live data. A single bad module setting can wipe out key tables in seconds.

How to set up make cockroachdb read only access

CockroachDB uses the standard PostgreSQL wire format to talk to outside tools. In Make, you pick the PostgreSQL app module to link your workflow to the cluster. First, your database admin must create a new SQL user inside the cluster. The admin grants this user permission to read tables in a specific schema. You should also set default privileges so the role can read future tables.

Next, you need to set up the network path between the two platforms. Cloud workflows run from shared IP addresses that need network reach into your cluster. You must add Make IP ranges to your database allowlist so connections pass through. You also need the cluster root certificate so the keeps the session active encrypted in transit.

Once the database user and network rules are ready, open your Make scenario. Add a database step and enter the host, port, database name, and read-only user. Test the link by running a basic query on a small test table. If the scenario tries to insert or drop rows, the database rejects the command.

What native database roles solve and what they miss

Native database roles stop write actions from breaking your production tables. If a workflow builder maps the wrong action module, the cluster blocks the change. This setup protects data integrity when non-engineers build and run new automated tasks. It ensures that reporting workflows only pull rows and never change existing records.

Still, static database roles only check who logs in to the cluster. They do not inspect what each query pulls or how much data leaves. A read-only user in Make can still query every column in an allowed table by default. That means automated workflows pull raw emails, phone numbers, card numbers, and national IDs. That sensitive data then sits in plain text inside third-party execution logs.

Auditor Read-Only Access + Customer Support Access to Production: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Static credentials also create a real burden for your security team. The password sits inside the automation platform until someone rotates it by hand. If you share one read-only account across ten scenarios, your audit logs lose value. Every query in the database log shows the same generic username and shared IP. You cannot tell which specific workflow or team member triggered a heavy read query.

Reducing risk in automated database workflows

Teams can lower this risk by limiting which tables the automation role can read. Instead of granting read rights across the whole schema, pick only safe tables. You can also build database views that leave out columns with private user details. Grant the workflow user permission to read those specific views rather than base tables.

Even with custom views, managing dozens of roles and passwords takes constant effort. Every time a workflow needs one new field, an engineer must update the view. Teams need a simpler way to inspect queries and mask sensitive fields in flight. Data masking rewrites matched fields in results before they reach the outside tool.

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

Does Make have a native app module for CockroachDB?

No, Make does not offer a separate module with the CockroachDB brand name. You use the standard PostgreSQL app module because both databases share the same protocol.

Can a read-only database role still hurt cluster performance?

Yes, a read-only query can still scan millions of rows at once. High-frequency scenarios without row limits can use up CPU and slow down other apps.

How do we keep sensitive columns out of Make scenario logs?

Native roles grant read rights at the table level, not for safe values. You must either build restricted database views or mask sensitive fields in flight.

The query runs. The emails stay hidden.