Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[v3-1-test] Remove dagReports API endpoint (#56609)#56621

Merged
potiuk merged 1 commit intoapache:v3-1-testfrom
potiuk:backport-828aaa0-v3-1-test
Oct 14, 2025
Merged

[v3-1-test] Remove dagReports API endpoint (#56609)#56621
potiuk merged 1 commit intoapache:v3-1-testfrom
potiuk:backport-828aaa0-v3-1-test

Conversation

Copy link
Member

potiuk commented Oct 14, 2025

The /api/v2/dagReports endpoint loaded user DAG files directly in the API server process via DagBag, violating Airflow's core architectural principle that the API server must never execute user code.

The endpoint was not used by the UI and had no known consumers. Users needing DAG loading reports should use the airflow dags report CLI command instead, which runs in an isolated process designed to safely execute user code.
(cherry picked from commit 828aaa0)


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

The `/api/v2/dagReports` endpoint loaded user DAG files directly in the
API server process via DagBag, violating Airflow's core architectural
principle that the API server must never execute user code.

The endpoint was not used by the UI and had no known consumers. Users
needing DAG loading reports should use the `airflow dags report` CLI
command instead, which runs in an isolated process designed to safely
execute user code.
(cherry picked from commit 828aaa0)

Co-authored-by: Kaxil Naik
boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Oct 14, 2025
potiuk mentioned this pull request Oct 14, 2025
jason810496 approved these changes Oct 14, 2025
potiuk merged commit 8cc0a4e into apache:v3-1-test Oct 14, 2025
80 checks passed
potiuk deleted the backport-828aaa0-v3-1-test branch October 14, 2025 14:50
potiuk mentioned this pull request Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

jason810496 jason810496 approved these changes

bbovenzi Awaiting requested review from bbovenzi bbovenzi is a code owner

pierrejeambrun Awaiting requested review from pierrejeambrun pierrejeambrun is a code owner

ryanahamilton Awaiting requested review from ryanahamilton ryanahamilton is a code owner

jscheffl Awaiting requested review from jscheffl jscheffl is a code owner

shubhamraj-git Awaiting requested review from shubhamraj-git shubhamraj-git is a code owner

ephraimbuddy Awaiting requested review from ephraimbuddy ephraimbuddy is a code owner

rawwar Awaiting requested review from rawwar rawwar is a code owner

bugraoz93 Awaiting requested review from bugraoz93 bugraoz93 is a code owner

Assignees

No one assigned

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants