Skip to content

[v3-4-test] Scope asset Dag and task references to readable Dags (#74836) - #75107

Merged
potiuk merged 1 commit into
v3-4-testfrom
backport-99f2b86-v3-4-test
Oct 19, 2026
Merged

potiuk merged 1 commit into
v3-4-testfrom
backport-99f2b86-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • Scope asset Dag and task references to readable Dags

The asset list and detail endpoints (public and UI) returned every
scheduled Dag, producing task and consuming task reference of an asset,
including ones that belong to Dags the requesting user cannot read.
Those nested references are now narrowed to the user's readable Dags.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

  • Rename newsfragment to the PR number

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

  • Require readable_dag_ids when building an asset response

With a None default, a caller that forgot the argument got every Dag and task reference back unfiltered. Without a default, each caller has to say whether the references are narrowed, so a new endpoint fails closed instead of leaking references to Dags the user cannot read.
(cherry picked from commit 99f2b86)

Co-authored-by: Jarek Potiuk jarek@potiuk.com
Generated-by: Claude Opus 5

)

* Scope asset Dag and task references to readable Dags

The asset list and detail endpoints (public and UI) returned every
scheduled Dag, producing task and consuming task reference of an asset,
including ones that belong to Dags the requesting user cannot read.
Those nested references are now narrowed to the user's readable Dags.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Rename newsfragment to the PR number

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Require readable_dag_ids when building an asset response

With a None default, a caller that forgot the argument got every Dag and task reference back unfiltered. Without a default, each caller has to say whether the references are narrowed, so a new endpoint fails closed instead of leaking references to Dags the user cannot read.
(cherry picked from commit 99f2b86)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Generated-by: Claude Opus 5
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Oct 19, 2026
@potiuk
potiuk marked this pull request as ready for review October 19, 2026 16:26
@potiuk
potiuk merged commit b623bc6 into v3-4-test Oct 19, 2026
72 of 73 checks passed
@potiuk
potiuk deleted the backport-99f2b86-v3-4-test branch October 19, 2026 16:26
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

vatsrahul1001 pushed a commit that referenced this pull request Oct 20, 2026
) (#75107)

* Scope asset Dag and task references to readable Dags

The asset list and detail endpoints (public and UI) returned every
scheduled Dag, producing task and consuming task reference of an asset,
including ones that belong to Dags the requesting user cannot read.
Those nested references are now narrowed to the user's readable Dags.

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Rename newsfragment to the PR number

Generated-by: Claude Opus 5 following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions

* Require readable_dag_ids when building an asset response

With a None default, a caller that forgot the argument got every Dag and task reference back unfiltered. Without a default, each caller has to say whether the references are narrowed, so a new endpoint fails closed instead of leaking references to Dags the user cannot read.
(cherry picked from commit 99f2b86)


Generated-by: Claude Opus 5

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants