The Simplest Way to Make Airflow and Ceph Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams pair airflow and ceph to schedule data jobs and store large files on private servers. Airflow runs the task steps while Ceph holds raw data, job logs, and model files. This setup keeps all data inside your own network and avoids cloud storage bills. You get a single workflow engine paired with scalable object, block, and file storage. How airflow and ceph share keys and move data Airflow talks to Ceph through an S3-compatible web interface or native storage drivers. Each worker node ne

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 airflow and ceph to schedule data jobs and store large files on private servers. Airflow runs the task steps while Ceph holds raw data, job logs, and model files.

This setup keeps all data inside your own network and avoids cloud storage bills. You get a single workflow engine paired with scalable object, block, and file storage.

How airflow and ceph share keys and move data

Airflow talks to Ceph through an S3-compatible web interface or native storage drivers. Each worker node needs an endpoint address and a key pair to log in.

Data flows in two main ways during a daily job run. First, workers read input files from Ceph buckets and write clean output files back. Second, workers push task logs to a dedicated Ceph bucket after each step finishes.

Storing logs in Ceph lets you delete worker pods without losing job history. The web server reads those remote log files when an engineer checks a failed task. You can also store intermediate task data in Ceph to keep your database small.

Ceph checks the user key against its internal bucket policies on every request. If the key matches the bucket rule, Ceph streams the bytes to the worker. If the rule fails, the task stops right away and marks the run as failed.

Common risks with shared keys and open buckets

Many teams put one broad Ceph root key into the global Airflow connection store. Every task in every pipeline then uses that same identity to read and write data. If one bad script runs, it can wipe out buckets owned by other teams.

Shared accounts also ruin your audit logs when a security review happens. Ceph records the key name on every read and write event. When fifty pipelines share one key, you cannot tell which job read a secret file.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Data leaks also happen when workers pull production tables into test buckets. Those files often hold raw customer emails, phone numbers, card numbers, or national IDs. Without field masking, anyone who reads the test bucket gets real user data.

Fix this by creating one Ceph user per pipeline or team domain. Give each user read and write rules for its own bucket paths only. Put your log bucket on a separate policy so jobs can write logs but never delete them.

Best rules for network paths and key rotation

Keep traffic between your worker nodes and Ceph storage nodes on a private network. Use TLS certificates on the Ceph web endpoint so keys never travel in plain text. Check that your worker pods trust the internal certificate authority before jobs start.

Rotate your Ceph keys on a set schedule so old secrets cannot hurt you. Store those keys in a central secret store instead of plain workflow files. When you update a key in the secret store, new tasks pick it up right away.

Set clear lifecycle rules on your Ceph buckets to clean up old staging files. Temp data from failed runs can fill up disks fast if nobody deletes it. A thirty-day delete rule on scratch buckets keeps your storage cluster healthy and fast.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

How does Airflow talk to Ceph storage?

Airflow uses standard S3 connection hooks pointed at the Ceph object storage endpoint. Workers send standard web requests with an access key and secret key to move files.

Can I store Airflow task logs in Ceph?

Yes, you can point remote logging settings to an S3-compatible Ceph bucket. Workers upload logs when tasks end, and the web user interface reads them back.

How should I scope Ceph permissions for different data teams?

Create separate Ceph users and bucket policies for each team or pipeline group. Map each team to its own connection entry so pipelines only touch their own buckets.

The query runs. The emails stay hidden.