A workflow orchestrator stores connection credentials for most of your data estate and runs code written by many people, so a gap that opens between reviews can expose every system it touches. Airflow-class schedulers define pipelines as code (DAGs), hold connections and variables for databases, warehouses, cloud accounts and SaaS APIs, and execute tasks on workers with network reach into those systems. This template is a recurring health check for that platform class: 12 scored metrics, the evidence to collect, red flags that need action now, a findings log and a remediation map. It is vendor-neutral and written for data platform owners, security engineers and internal auditors. Deep configuration guidance for one product is in the Apache Airflow Security Guide; this page checks that the controls are still in place.
What this health check covers
- Connections and secrets: where credentials are stored, who can read or change them, how old they are, and whether they leak into code, variables or logs.
- DAG code: how code reaches the scheduler, who reviews it, and whether it embeds secrets or pulls unreviewed dependencies.
- Access control: UI and API roles, administrator count, service accounts and API tokens.
- Workers and runtime: isolation between tasks and teams, worker network egress, and what credentials workers hold.
- Logging and recovery: audit trail coverage, log access and the ability to rotate every credential quickly.
Out of scope: the security of each downstream system the orchestrator connects to, and incident response, which is covered in If your workflow orchestrator (Airflow-class schedulers) is compromised.
Key takeaways
- DAG authors are effectively administrators. In common orchestrator security models, code authors can run arbitrary code on workers and read the credentials their tasks use, so code review is an access control.
- Connections are the crown jewels. Count them, own them, scope them and rotate them; an orchestrator often holds more database and cloud credentials than any other system.
- Prefer a secrets backend and federation. Credentials pulled at runtime from a secrets manager, or replaced by workload identity, shrink what a compromise exposes.
- Workers need fewer secrets than you think. Keep metadata database credentials and signing keys off workers and restrict worker egress.
- Measure quarterly, act on red immediately. The metrics below give a repeatable score; red flags do not wait for the next review.
How to use this template
- Scope: list every orchestrator instance in scope (production, staging, team instances and managed service environments). Score each instance separately.
- Collect: gather the evidence in "How to collect the data" before the review meeting. Use exports and API queries, not screenshots, where possible.
- Score: rate each metric Green, Amber or Red against the thresholds. Thresholds are NHI Mgmt Group recommendations: tune them to your risk appetite, but record any change and who approved it.
- Log findings: enter every Amber and Red result in the findings log with an owner and due date.
- Escalate: any red flag goes to the platform owner and security the same day. A metric Red for two consecutive quarters goes to the CISO; a finding that repeats three times goes to the risk register.
- Sign off: the platform owner and a security reviewer sign the completed check; keep it with the evidence for audit.
Cadence and sign-off
| Review | Frequency | Owner | Approver | Evidence kept |
|---|---|---|---|---|
| Connection inventory and age | Monthly | Data platform engineer | Platform owner | Connection export with owner, type, last rotated |
| Role and admin review | Quarterly | Platform owner | Security reviewer | Role membership export, approvals for changes |
| DAG repository and deployment path | Quarterly | Data engineering lead | Security reviewer | Branch protection settings, deployment identity, review stats |
| Full health check (all 12 metrics) | Quarterly | Platform owner | Security reviewer | Completed scorecard and findings log |
| Rotation drill | Annually | Platform owner | CISO delegate | Drill record with time to rotate |
| Event-driven review | After major upgrade, migration or incident | Platform owner | Security reviewer | Rescored metrics for affected areas |
Metrics
| ID | Metric | Formula | Data source type | Green | Amber | Red |
|---|---|---|---|---|---|---|
| WO-01 | Connections with a named owner | Connections with an owner recorded ÷ all connections | Connection export joined to inventory | 100% | 90% to 99% | Below 90% |
| WO-02 | Connections served from a secrets backend or federation | Connections resolved at runtime from a secrets manager or workload identity ÷ all production connections | Orchestrator configuration, connection export | Above 90% | 60% to 90% | Below 60% |
| WO-03 | Stale connection credentials | Static credentials older than your rotation period ÷ static credentials | Secrets manager metadata, target system key age | Below 5% | 5% to 20% | Above 20% |
| WO-04 | Over-privileged connections | Connections using admin, owner or superuser accounts on the target ÷ all connections | Target system role export | 0 | 1 to 2 with documented exception | Any without exception, or above 2 |
| WO-05 | Unused connections | Connections not referenced by any DAG or not used in 90 days ÷ all connections | Code search of DAG repository, task logs | Below 5% | 5% to 15% | Above 15% |
| WO-06 | Secrets in DAG code or variables | Secret scanner findings in the DAG repository and in plain variables | Secrets scanner, variable export | 0 | None (no amber band) | 1 or more |
| WO-07 | Reviewed DAG changes | Merged DAG changes with at least one approving reviewer other than the author ÷ all merged DAG changes | Source control audit data | 100% | 95% to 99% | Below 95% |
| WO-08 | Deployment path integrity | DAG files reaching the scheduler only through the approved pipeline (yes or no per instance) | Storage and file system permissions, deployment logs | Yes | None (no amber band) | No |
| WO-09 | Administrator count | Named users with the admin role | Role membership export | 3 or fewer | 4 to 5 | Above 5 or any shared admin |
| WO-10 | Long-lived API tokens and service accounts | Orchestrator API tokens or service accounts with no expiry or past rotation ÷ all | Orchestrator user and token export | 0 | Below 10% with owners | 10% or more, or any without owner |
| WO-11 | Worker credential exposure | Worker pools holding metadata database credentials or token signing keys | Worker configuration, deployment manifests | 0 | None (no amber band) | 1 or more |
| WO-12 | Audit log coverage | Instances forwarding orchestrator audit logs to the SIEM with a tested alert on connection changes ÷ instances | SIEM source inventory, alert test record | 100% | Forwarding but no tested alert | Any instance not forwarding |
How to collect the data
- Connections (WO-01 to WO-05): export the connection list through the orchestrator's API or CLI as metadata only (identifier, type, host, login, owner tag). Never export secret values. Join with your NHI inventory for owner and rotation date. For static credentials, take key age from the secrets manager or the target system rather than trusting the orchestrator.
- Privilege on targets (WO-04): for each connection login, ask the target system owner for the account's roles. Database superuser, cloud account owner and SaaS admin roles count as over-privileged.
- Secrets in code (WO-06): run your secrets scanner across the DAG repository history, plugin code and requirements files. Export variables and flag any whose names or values look like credentials. See the Securing the secrets scanning tool itself guide for scanner hygiene.
- Code review and deployment (WO-07, WO-08): take branch protection settings and merge statistics from source control. Check who can write to the DAG folder, bucket or image the scheduler reads; only the deployment pipeline identity should.
- Roles and tokens (WO-09, WO-10): export users, role membership and API tokens. Confirm sign-in goes through your identity provider with MFA and that development-only authentication managers are not in use in production.
- Workers (WO-11): review worker deployment manifests and environment for metadata database connection strings, token signing keys and cloud keys. Check network policy for worker egress.
- Logging (WO-12): confirm the SIEM receives orchestrator audit events and that a test connection change raised an alert within the expected time.
Red flags that need action now
- Any orchestrator UI or API reachable from the internet without SSO, or using a development-only authentication mode in production.
- A connection using a database superuser, cloud account owner or SaaS global admin with no documented exception.
- Any secret found in DAG code, plugin code or plain variables (rotate it, then remove it from history).
- DAG files can be written to the scheduler's source by people or systems outside the reviewed deployment path.
- Workers hold the metadata database password or the token signing key.
- A shared administrator account or an admin who has left the organisation.
- Audit logs are not forwarded, or have stopped arriving, for any production instance.
- Task logs showing credential values in clear text.
Findings log
| ID | Finding | Metric | Severity | Owner | Due date | Status |
|---|---|---|---|---|---|---|
| [F-001] | [e.g. 14 connections use static keys older than 180 days] | [WO-03] | [High] | [Name, team] | [Date] | [Open] |
| [F-002] | [e.g. warehouse connection uses an account admin role] | [WO-04] | [Critical] | [Name, team] | [Date] | [In progress] |
| [F-003] | [Finding] | [WO-xx] | [Severity] | [Owner] | [Date] | [Status] |
Severity guide: Critical for any red flag; High for a Red metric; Medium for Amber trending worse; Low for Amber that is stable with a plan.
Remediation map
| Finding type | What good looks like | Where to fix it |
|---|---|---|
| Connections stored in the orchestrator database | Connections resolved from a secrets backend at runtime | Securing the secrets manager itself |
| Static cloud keys in connections | Workload identity federation, short-lived tokens | Workload Identity Federation Guide |
| Over-privileged or unowned connections | One least-privilege account per purpose, owner recorded | Service Account Security Guide |
| Unreviewed DAG changes or open deployment path | Protected branches, required review, pipeline-only deployment | Securing the source control platform itself |
| Weak worker isolation | Per-team worker pools or per-task pods, restricted egress, no metadata database credentials | Apache Airflow Security Guide |
| Missing audit trail | Audit events in the SIEM with tested alerts | Securing the SIEM itself |
Implementation guidance
The orchestrator's security model explains why these metrics were chosen. In the Airflow security model, DAG authors can execute arbitrary code that is not sandboxed, read the credentials their tasks use and send them elsewhere, and there is no full task-level isolation between groups of users. The same pattern applies to most code-defined schedulers. Three consequences shape the check:
- Code review is access control: WO-07 and WO-08 are as important as role membership, because anyone who can merge DAG code can act with every connection the workers can reach. This is OWASP CI/CD risk CICD-SEC-4 (Poisoned Pipeline Execution) in a scheduler setting.
- Credential hygiene limits blast radius: WO-02 to WO-05 track OWASP CICD-SEC-6 (Insufficient Credential Hygiene). The CircleCI breach showed what happens when one platform holds many customers' long-lived secrets: every secret had to be treated as exposed and rotated.
- Workers should be untrusted by design: the Airflow model recommends that workers do not receive metadata database credentials, reach data only through a short-lived token API, and are limited by network policy. WO-11 checks that this held through upgrades.
First run: expect several Reds. Fix red flags first, then work through WO-04 and WO-03, which reduce exposure fastest. Move connections to a secrets backend one DAG group at a time, running old and new side by side for one schedule cycle before deleting the stored copy; rollback is restoring the stored connection, so keep it disabled for one cycle rather than deleting it.
Small teams: a single instance with SSO, three admins, protected branches, a secrets backend and SIEM forwarding will score Green on most metrics. Large estates: score per instance, add per-team worker isolation, and feed WO-01 to WO-05 from your NHI inventory automatically.
Framework mapping: connection and token metrics support NIST SP 800-53 IA-5 and AC-6 and CSF 2.0 PR.AA-01 and PR.AA-05; code review and deployment path support CM-3 and PR.PS-01; logging supports AU-6, AU-12 and PR.PS-04. ATT&CK T1053 (Scheduled Task/Job) and T1552.001 (Credentials In Files) describe the techniques these checks make harder.
Related guides
- Apache Airflow Security Guide: product configuration in depth.
- If your workflow orchestrator (Airflow-class schedulers) is compromised: response steps.
- Enterprise Job Scheduler Security: traditional batch schedulers.
- Argo Workflows Security Guide: Kubernetes-native workflows.
References
- Apache Airflow: Security Model
- OWASP: Top 10 CI/CD Security Risks
- NIST: SP 800-204D Strategies for the Integration of Software Supply Chain Security in DevSecOps CI/CD Pipelines
- NIST: SP 800-53 Rev. 5 Security and Privacy Controls
- NIST: Cybersecurity Framework 2.0
- MITRE ATT&CK: Scheduled Task/Job
Related NHI Mgmt Group resources: Apache Airflow Security Guide · If your workflow orchestrator (Airflow-class schedulers) is compromised · Securing the secrets manager itself · CI/CD server health check