Apache Airflow security hardening

Securing a self-hosted Airflow in depth: the trust model for DAG authors, worker isolation through the Task Execution API, JWT and API access, encryption and masking of secrets, multi-team limits and audit logs.

Isolating Airflow workers with the Task Execution API

Designing Airflow 3 so workers never hold database credentials: the Task Execution API, short-lived execution tokens, asymmetric JWT keys, network policies, environment variables versus files and the edge worker exception.

Airflow 3 REST API authentication with JWT tokens

Authenticating scripts and services against the Airflow 3 REST API: getting tokens from the auth manager, cookie versus bearer credentials, token refresh, service accounts and the 3.3.2 precedence change.

Rotating the Airflow Fernet key

Protecting connection and variable passwords at rest: generating and storing the Fernet key, the three-step rotation with airflow rotate-fernet-key, Kubernetes Secret handling and when a secrets backend replaces stored credentials.

Masking secrets in Airflow logs and the UI

How Airflow redacts passwords and tokens: which names trigger masking, extending the keyword list, mask_secret in custom code, and the gaps through XCom and environment variables that need other controls.

Using Apache Airflow audit logs for security reviews

What Airflow records about who did what: UI, API and CLI actions, system events, reading logs through the UI or /eventLogs, the permission to view them, retention against database cleanup and shipping them to a SIEM.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.