How to Integrate Fivetran and Cloud SQL Safely
Pairing fivetran and cloud sql lets teams copy production database records into analytics tables. You can sync row changes on a schedule while keeping your source database fast. Data teams rely on this link to build reports without writing custom scripts. Yet a fast setup often leaves wide roles and shared passwords in place. Taking time to lock down roles and network paths keeps customer data safe. How fivetran and cloud sql share data and permissions Fivetran logs in to your database insta
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.
Pairing fivetran and cloud sql lets teams copy production database records into analytics tables. You can sync row changes on a schedule while keeping your source database fast.
Data teams rely on this link to build reports without writing custom scripts. Yet a fast setup often leaves wide roles and shared passwords in place. Taking time to lock down roles and network paths keeps customer data safe.
How fivetran and cloud sql share data and permissions
Fivetran logs in to your database instance as a dedicated user to read data. It pulls initial table snapshots and then tracks ongoing row changes over time.
Cloud SQL for PostgreSQL is a managed database service from Google. Because it is managed, customers cannot create or use accounts with full superuser attributes. A Google system account named cloudsqladmin holds the actual superuser rights on the instance. Customers cannot delete or change these built-in system roles.
Instead, admins use the default postgres user, which belongs to the cloudsqlsuperuser role. That default user starts without a password, so you must set one before logging in. It can create roles, create databases, and log in, though it lacks replication rights.
Meanwhile, the cloudsqlsuperuser role grants select high-level rights to database admins. Members can add extensions, set up event triggers, and create replication users. They can also create replication publications and subscriptions for change tracking. When you set up your sync, an admin uses this role to prepare the database.
Common failure modes and how to scope roles
The biggest mistake teams make is giving the sync tool the default admin account. If you hand over a cloudsqlsuperuser login, the pipeline can alter schemas or drop data. Another common risk is sharing one database login across both analytics tools and human engineers. When an account is shared, your logs cannot show who ran a bad query.
End-to-End Encryption + SQL Query Filtering: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, create a dedicated database user just for your data sync tool. Grant read rights only on the specific schemas and tables that need to move. If your sync method needs replication rights, assign a replication user role without admin rights. Never let the pipeline user create new roles or new databases.
Unlogged queries and wide network paths also create serious security gaps for teams. Do not expose your database instance to every IP address on the public internet. Restrict incoming traffic so only known sync servers and approved networks can reach the port. You should also mask sensitive fields like emails, phone numbers, card numbers, and national IDs.
Controlling human queries alongside automated pipelines
Securing the automated pipeline is only half of the database safety puzzle. Data engineers still need to log in to check schemas, fix sync errors, and inspect rows. If those engineers use shared admin passwords, you lose track of who touched production tables.
Keep human logins separate from the credentials assigned to your automated sync service. Give each engineer an individual identity and limit what they can read or change. When masking rewrites matched fields in results, staff can fix issues without exposing raw PII.
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
Should I use the default postgres user for Fivetran?
No, the default postgres user belongs to cloudsqlsuperuser and has broad admin rights. Always create a separate user with permissions limited to the tables you want to sync.
Can I give my sync user true superuser rights in Cloud SQL?
No, Cloud SQL for PostgreSQL does not let customers create users with superuser attributes. If your sync setup needs elevated rights, use a cloudsqlsuperuser account to create replication publications.
How do I protect sensitive columns during database troubleshooting?
Keep pipeline accounts separate from human accounts and apply data masking to human queries. Masking rewrites emails, phone numbers, and card numbers in query results during fixing.
Short role checks help teams work fast. Simple rules make each review clear. Good logs keep every team safe. Scoped keys stop bad changes early.
Related guides
In this post