The Simplest Way to Make Fivetran and Keycloak Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing fivetran and keycloak lets teams manage data sync logins from one central place. This setup controls who can edit data pipelines and view sync logs. Fivetran moves data from source apps into your central data warehouse on a schedule. Keycloak acts as your identity tool and checks who can log in. When you join them, your team uses one login for all data work. You do not need to make new passwords for every new person. Instead, your identity tool handles user logins and group roles from d

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 keycloak lets teams manage data sync logins from one central place. This setup controls who can edit data pipelines and view sync logs.

Fivetran moves data from source apps into your central data warehouse on a schedule. Keycloak acts as your identity tool and checks who can log in. When you join them, your team uses one login for all data work. You do not need to make new passwords for every new person. Instead, your identity tool handles user logins and group roles from day one.

How logins and data flow between fivetran and keycloak

The login flow between these two tools uses standard web identity rules. A user tries to log in to the data movement dashboard. The dashboard sends the user over to your identity server right away. The identity server checks the user password and asks for a second factor.

Once the check passes, the server sends a signed message back to Fivetran. This message holds the user email and their assigned team role. The data tool reads this message and opens the right dashboard view. If a person leaves the company, you disable them in your identity tool. They lose their dashboard login right away with no extra work.

You can also sync user event data out of your identity database. Data teams often want to study login logs in their central warehouse. To do this, the sync tool reads the database behind your identity server. It pulls user tables and event logs on a set timer. Then it writes those records into your analytics tables for reporting.

Common failure modes and how to scope roles

Many teams make mistakes when they link these two tools in production. The biggest mistake is giving every person the top admin role. When SAML role mapping is off, new users often get full control. Any user can then add new sources or read private billing details. You should map specific groups to read-only roles in your identity tool.

Shared service accounts cause another big problem for data engineering teams. Teams often use one shared database user for all their data sync jobs. That user often has full read and write power on the source database. If that key leaks, an attacker can change or delete your source data. A single bad query can also lock up tables and break user logins.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged queries and broad network paths also put your systems at risk. When the sync tool reads your identity database, it needs a clear path. Many teams open their database port to the whole web to fix errors. They also fail to log which tables the sync user reads each hour. Raw tables often hold private emails, phone numbers, card numbers, and national IDs.

You can fix these risks with tight role rules and clean network paths. First, make a database user just for your data sync tool. Give this user read-only rights on the exact tables you need to move. Never let the sync user read password hashes or secret keys. Second, restrict network paths so only known sync servers can reach your database. Third, turn on database audit logs to track every query from the sync user.

Keeping data sync keys and user logins safe

Long-lived database keys create hidden risks across your whole data stack. When a sync tool stores a static password, someone must rotate it by hand. Teams skip key rotation because they fear breaking an active data pipeline. Over time, old keys pile up in config files and chat logs.

Good security means separating human logins from machine database keys. Humans should always log in through your identity server with short sessions. Machine tools should use scoped roles that only touch approved data tables. Masking rules can also rewrite emails and phone numbers in query results. Reviewing both human roles and machine keys every month keeps your setup clean.

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 Keycloak control which projects a user sees in Fivetran?

Yes, your identity server can send group names inside the login message. You map those groups to specific team roles inside your data sync tool.

How do we pull Keycloak login logs into our data warehouse?

Point a database connector at the relational database behind your identity server. Use a read-only user that can only read event and user tables.

What happens if our identity server goes down during a data sync?

Active data syncs will keep running on their normal schedule without stopping. Only human users trying to log in to the dashboard will wait.

The query runs. The emails stay hidden.