The Simplest Way to Make Airbyte and Crossplane Work Like They Should
Teams pair airbyte and crossplane to manage data pipelines and cloud databases as code. Crossplane builds the storage resources, and Airbyte moves records between those databases. This workflow lets platform engineers define data sources and sync jobs in one place. Developers get ready-to-use data tables without waiting for manual ticket approvals. Both tools run inside Kubernetes, so they share the same cluster control plane. When set up well, a single commit spins up a database and starts a 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.
Teams pair airbyte and crossplane to manage data pipelines and cloud databases as code. Crossplane builds the storage resources, and Airbyte moves records between those databases.
This workflow lets platform engineers define data sources and sync jobs in one place. Developers get ready-to-use data tables without waiting for manual ticket approvals. Both tools run inside Kubernetes, so they share the same cluster control plane. When set up well, a single commit spins up a database and starts a data sync.
How airbyte and crossplane share keys and data
Crossplane acts as the control plane that creates cloud databases, buckets, and roles. It talks to cloud provider APIs and writes new database credentials into Kubernetes secrets. Airbyte reads those secrets or uses a provider to set up sources and destinations. Then Airbyte pulls records from the source and writes them to the target store.
Data never flows through Crossplane itself during a pipeline sync. Crossplane only manages the state of the cloud resources and the Airbyte resources. Airbyte workers handle the actual data movement over the network. The workers open direct sessions to the source database and the destination warehouse.
To link the two tools, teams pass resource details from Crossplane to Airbyte. Crossplane creates a database user with a specific role and saves the key. The Airbyte setup reads that key from the cluster store to log in. This keeps human operators from copying and pasting passwords across different web consoles.
Common failure modes and how to scope roles
Many teams fail by giving both tools broad admin keys to the cloud account. A shared service account with full write rights creates a huge blast radius. If a bad change hits the cluster, Crossplane could delete a live production database. Likewise, an Airbyte worker with admin rights could overwrite tables it should only read.
Another common risk comes from long-lived keys stored in plain cluster secrets. Any pod or user with read rights in that namespace can grab the database password. Once leaked, that shared key lets an attacker run unlogged queries from anywhere. Teams also struggle when raw PII like emails or phone numbers lands in staging tables.
Crossplane Composition Security + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, give Crossplane a role that only manages specific resource types. Create separate database roles for Airbyte sources and destinations with strict rules. Source roles need read-only rights on specific schemas, not the whole database. Destination roles need write rights only on the raw landing schema.
Lock down network paths so only Airbyte worker pods can reach the database ports. Use cluster network rules to block other apps from talking to the data stores. Rotate the database keys on a set schedule so old secrets expire fast. Also, set up data masking to rewrite card numbers or national IDs in results.
Auditing changes across both control planes
Running pipelines as code makes it easy to track who changed a sync rule. Git history shows when an engineer added a new table or changed a schedule. Still, Git logs do not show what happens when someone debugs a broken database. Engineers often need direct access to the source store to fix a failed sync.
When developers log in with shared keys, the database log only shows one generic user. Security teams cannot tell which person ran a manual query or changed a schema. You need clear logs that tie every query and resource change to a real person. Scoping roles by user identity closes this gap during live incidents.
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 Crossplane move the actual data between databases?
No, Crossplane only sets up the cloud databases, roles, and Airbyte sync definitions. Airbyte worker pods connect to the databases and move the records over the network.
How should Airbyte read database keys created by Crossplane?
Crossplane should write the new database credentials into a scoped Kubernetes secret or vault. Airbyte then reads that secret reference when starting a sync job.
What database permissions does an Airbyte source role need?
An Airbyte source role only needs read permissions on the specific tables you want to sync. Never give a source role write permissions or admin rights on the database.
Related guides
In this post