How to Integrate Fivetran and Azure Postgres Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

You connect fivetran and azure postgres by setting up a read-only database role and strict network rules. Together, these tools copy operational rows into your analytics store on a set schedule. Data teams rely on this pair to keep reports fresh without building custom scripts. Still, a rushed setup often leaves wide permissions open on your production database. You need clear boundaries for how the sync tool logs in and reads tables. How fivetran and azure postgres share data and roles The

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 connect fivetran and azure postgres by setting up a read-only database role and strict network rules. Together, these tools copy operational rows into your analytics store on a set schedule.

Data teams rely on this pair to keep reports fresh without building custom scripts. Still, a rushed setup often leaves wide permissions open on your production database. You need clear boundaries for how the sync tool logs in and reads tables.

How fivetran and azure postgres share data and roles

The sync tool logs in to your database using a dedicated user role. Once inside, it reads source tables and tracks changes over time. You should never give this sync user full admin rights.

Instead, create a specific role just for data extraction. In Postgres, the read privilege lets a role read a whole table or specific columns. It also allows the role to export table rows during a sync.

You can set up group roles to manage rights when you have many users. Then you grant your sync user membership in that read-only group role. If tables hold emails, phone numbers, or card numbers, only grant read rights on safe columns. Dynamic data masking can also rewrite matched fields in query results for human users.

Network traffic between the two services also needs encryption and tight firewall rules. Allow inbound traffic only from the known IP addresses of your sync service. Always turn on encrypted connections so data stays private while moving across the network.

Common failure modes and how to scope permissions

Many teams make the mistake of sharing one database account across multiple apps. If a shared key leaks, you cannot tell which app caused the breach. Broad accounts also make it hard to read database logs and track heavy queries.

Azure RBAC + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another common risk comes from built-in default rights inside the database. A special role named PUBLIC grants rights to every user on the system. By default, PUBLIC gets the right to connect and create temp tables on databases. It also gets the right to run functions and procedures. The database owner can revoke these default rights to lock down the system.

Schema permissions can also expose your database if you run older versions. In Postgres 15 and later, regular users cannot create new objects in the public schema. Databases upgraded from older versions still allow this unless an admin revokes that right from PUBLIC. Always check your public schema so a sync account cannot write new tables.

Auditing queries and managing database keys

Static passwords stored in third-party dashboards create a long-term security risk. Teams rarely rotate these keys because they fear breaking a live data pipeline. If an engineer leaves the company, old shared passwords often stay active for months.

You should rotate database passwords on a regular schedule and log every connection. Check your database logs each week to see which tables the sync user reads. When engineers need to check data issues by hand, give them separate personal accounts. Never let staff use the sync service credentials to run manual queries.

Check every Postgres query on the wire

Database roles and network rules decide who can open a session. They do not read what each SQL statement does after login. With hoop.dev, you run an open-source proxy, a sidecar for your Postgres. It runs beside your database and reads the Postgres wire protocol. Your apps and agents keep their login details and change only the host and port in the connection string their tool uses.

Before a query runs, hoop.dev guardrails check the statement by its effect, table, or pattern. They refuse bad deletes or drops with a real Postgres error. On the way back, hoop.dev data masking rewrites sensitive values in returned rows based on your rules. Every query and verdict goes to the audit trail. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and generates evidence for HIPAA, GDPR, and PCI DSS. See the code on GitHub.

Frequently asked questions

Can I limit the sync tool to read only certain columns?

Yes, Postgres lets you grant read rights on specific columns of a table or view. The sync user will only read the exact columns you allow.

Why can my read-only sync user create objects in the public schema?

Databases upgraded from versions before Postgres 15 let the PUBLIC role create objects there. An admin must revoke the create right on the public schema from PUBLIC.

Should engineers use the sync account to debug broken pipelines?

No, sharing a service account hides who ran which query in your audit logs. Give every engineer a separate role with clear limits and full query logging.

The query runs. The emails stay hidden.