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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use airflow and tanzu together to schedule and run batch data jobs on containers. Airflow plans the job steps, while Tanzu runs the worker pods that process the data. This pair helps data teams scale heavy workloads up and down on demand. When a job starts, the scheduler asks the cluster to spin up a fresh worker. When the job ends, the cluster deletes that pod to save compute costs. How airflow and tanzu share roles and data The workflow starts inside the scheduler. The scheduler read

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 use airflow and tanzu together to schedule and run batch data jobs on containers. Airflow plans the job steps, while Tanzu runs the worker pods that process the data.

This pair helps data teams scale heavy workloads up and down on demand. When a job starts, the scheduler asks the cluster to spin up a fresh worker. When the job ends, the cluster deletes that pod to save compute costs.

How airflow and tanzu share roles and data

The workflow starts inside the scheduler. The scheduler reads the job plan and prepares a task for the cluster. To launch a pod, the scheduler must log in to the cluster API.

Teams set up service accounts so the scheduler can talk to the cluster. The scheduler sends a token to the cluster control plane. The cluster checks the token and checks the role rules. If the role allows pod creation, the cluster starts the task container.

Once the pod runs, it needs to read and write data. The worker pod uses its own assigned role to reach storage buckets or databases. Data flows directly between the worker pod and the database. The scheduler only watches the pod status and collects task logs.

When you run airflow and tanzu this way, you separate scheduling from heavy data work. The scheduler stays fast and light because it never holds large data files. All heavy compute happens inside isolated cluster nodes.

Common failure modes and how to scope roles

Many teams make mistakes when they first link these two tools. The biggest mistake is using one shared service account for every single data job. If every pod uses the same broad token, any job can read any database.

Long-lived static keys also create high risk for data teams. Engineers often store database passwords inside the scheduler database so tasks can read them. If a bad actor gets into the scheduler, they can read all those saved keys.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged database queries cause another big problem during security audits. When ten different tasks share one database user, the database logs show only that single user. You cannot tell which job or which engineer ran a bad query.

To fix this, give each project or team a separate namespace in the cluster. Map each job group to a dedicated cluster service account with narrow rights. A marketing job should only get a role that reads marketing tables.

You should also lock down network paths between the scheduler and the worker nodes. Use cluster network rules to block pods from talking to other pods they do not need. Allow outbound traffic only to the exact data stores required for that task.

Keeping sensitive fields safe in pipeline logs

Data pipelines often touch personal customer records during daily batch runs. When a task fails, the worker pod might print the broken data row into the log. Those logs then flow back to the central scheduler screen where many engineers can read them.

Teams should set up data masking to protect fields like emails, phone numbers, and card numbers. Masking rewrites matched fields in results before they land in task logs or test tables. This keeps sensitive records out of debug screens while engineers fix broken jobs.

Rotate your cluster tokens and database keys on a strict schedule. Remove static passwords from job files and rely on short-lived role sessions instead. When you combine strict network rules with scoped roles, your pipelines stay safe and easy to audit.

Check database and API queries on the wire

Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.

Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.

Frequently asked questions

How does the scheduler start jobs on the cluster?

The scheduler calls the cluster API using a service account token. It asks the cluster to create a new pod for each task in the workflow.

Why should we avoid storing database passwords in the scheduler?

Storing passwords in one place creates a single point of failure for all your data. Using separate cluster roles per task limits what a broken or stolen job can reach.

How can we stop worker pods from reaching the wrong databases?

Use cluster network rules and narrow service accounts for each namespace. Give each worker pod permission to reach only the specific database needed for its task.

The query runs. The emails stay hidden.