Borehole · Project · free tier
apache/airflow
Free reading: not for reliance
7e02d46 · 42,408 commits · 15,092 files
Read 2026-10-23

apache/airflow: technical due diligence, read from its repository

What Borehole read in apache/airflow's code and history at 7e02d46: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenanceadequate
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturitystrong
Security & Reliability Postureadequate
Observability & Operationsadequate
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • .github/PULL_REQUEST_TEMPLATE.md:37: states a policy on AI-generated contributions
  • .github/SECURITY.md:28: names Apache Software Foundation

Architecture & Codebase — including AI provenance

adequate
01.6

airflow-core/src/airflow/jobs/scheduler_job_runner.py is 4,627 lines, 53× this codebase's median file

adequate

The median source file here is 86 lines. 129 files exceed 1,000 lines, the largest being 4,627. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

01.25

6 base images float: no version, or `latest`

adequate

6 of 28 `FROM` lines in product Dockerfiles name an image without a version, or with `latest`. Each build pulls whatever the registry serves that day, so the image that ships can change without a commit, and last month's build cannot be reproduced. Pin a version, or a digest.

Evidence
Dockerfile:1402 — base image without a version
Dockerfile:1407 — base image without a version
Dockerfile:1408 — base image without a version

Engineering Process & SDLC Maturity

strong
02.16

Tests are retried until they pass

adequate

The suite is configured to retry failing tests (airflow-core/src/airflow/ui/src/components/FlexibleForm/FieldMultiType.test.tsx); 8 tests are individually marked to retry. A retry turns a flaky test green without saying why it failed, so a green build means the tests passed eventually. Ask how many retries a typical run needs, and which tests need them.

Product & Engineering Maturity

strong
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, 3.3.2, is not on the branch this survey read; the newest release on it is 2.0.0. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag 3.3.2

Security & Reliability Posture

adequate
05.6

11 Dockerfiles run the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

05.13

20 outbound calls can wait forever

adequate

20 HTTP calls use a client with no timeout (Python `requests` without `timeout=`, or Go's default client). When a dependency slows down, each one holds a worker until the connection gives up, and enough of them take the service down with the dependency.

05.20

1 SQL statement built from strings

adequate

1 places in product code build SQL by formatting or joining strings rather than passing parameters. In each, what the code shows going in is a table or column name, a constant, or something the line does not show, not a request's value. Ask whether any value reaches these strings, rather than a parameter.

Evidence
airflow-core/src/airflow/utils/db_cleanup.py:385 — SQL built from a string
05.21

2 shell commands built from strings

adequate

2 places run a command through a shell (`shell=True`, `os.system`, `exec` with a template) rather than passing arguments. Where any part comes from outside, it is command injection. Ask where each one's input comes from.

05.22

4 deserialisers that can run code

adequate

4 places read data with a deserialiser that executes what it reads (pickle, `yaml.load` without a safe loader, Python `marshal`). That is safe on data the system wrote itself and remote code execution on anything else. Ask where each one's input comes from.

05.26

22 locked dependencies have published vulnerabilities, 32 high or critical in what ships

adequate

22 of 2,820 locked dependencies match 97 published advisories in OSV, 57 of them rated high or critical. A lockfile says which version is installed, not whether the flawed code is reachable from this product, so each needs a look. Most are fixed by an upgrade, and the advisory names the version.

Evidence
uv.lock — pillow 12.3.0: GHSA-332p-7hrc-92wf (critical), fixed in 13.0.0
airflow-core/src/airflow/ui/pnpm-lock.yaml — dompurify 3.4.16: GHSA-cg2g-xh64-v4q7 (critical), fixed in 3.4.17
uv.lock — kerberos 1.3.1: PYSEC-2017-49 (critical); an optional extra
05.48

7 places insert HTML from a variable without sanitising it

adequate

7 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.

05.65

114 advisories against this project in the last 24 months, 47 high or critical

adequate

The newest was published on 2026-10-20. A project that publishes advisories is telling its users about its fixes, and the count and pace say how much security work it carries. Whether 6 of them are fixed in the code you ship could not be told from this history: its version is only known to be at least 2.0.0. Answer lives in: the release you run, set against each fixed version. PYSEC-2026-3988 (moderate), PYSEC-2026-3989 (moderate), GHSA-5247-m8w9-2v4m (moderate) and 35 more are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 3 records name airflow with nothing tying them to this repository (CVE-2024-28423, CVE-2025-54415, CVE-2026-5667).

Evidence
2026-10-20: CVE-2026-86467 (unrated): Apache Airflow Amazon provider: the AWS auth manager's SAML login flow does not bind the authentication response to the browser that began it. The login handler
2026-10-15: CVE-2026-92228 (moderate): The Apache Airflow Keycloak provider's multi-team provisioning (`_attach_team_permissions`) granted every team role global read access to audit logs. Deployment
2026-10-15: CVE-2026-94134 (critical): The Apache Airflow SSH provider hook disables SSH host-key verification by default: unless `host_key` is configured or `no_host_key_check` is explicitly set to
2026-10-15: CVE-2026-94135 (moderate): The Apache Airflow SFTP provider's deferrable code paths (`SFTPTrigger`, `SFTPHookAsync`, `SFTPClientPool`) disable SSH host-key verification by default unless
2026-10-15: CVE-2026-96806 (moderate): The Apache Airflow Keycloak auth manager did not end the session on logout: the logout route revoked the presented token, but `KeycloakJWTMiddleware` then issue

Observability & Operations

adequate
06.18

3 of 5 deployed images carry no version, or `latest`

adequate

3 images in the deployment configuration are named without a version or as `latest`. A redeploy can change the software without a commit, a rollback has nothing to roll back to, and nobody can say from the repository what is running.

06.14

Readiness and liveness probes are identical in 3 of 5 workloads

adequate

Both probes call the same endpoint. When a dependency slows down, the liveness probe fails with the readiness probe, so the platform restarts pods that only needed taking out of rotation, and a partial outage becomes a full one. Liveness should ask whether the process is alive; readiness whether it can serve.

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on apache/airflow: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.