Skip to content

Conversation

@pierrejeambrun
Copy link
Member

@pierrejeambrun pierrejeambrun commented Feb 3, 2026

part of #60948

Deprecate is_authorized_backfill and BackfillDetails in favor of DagAccessEntity.Run.

Basically this will allow dag access level control on backfills, a backfill is always attached to a Dag, and shouldn't probably have been a sub DagAccessEntity in the auth model. We chose to simply re-use the existing DagAccessEntity.Run instead of creating a new one because 'creating a backfill' is basically similar to creating multiple dag runs. (A user with Can create on Dag Runs can simulate a backfill by triggering as many dag runs as needed with the appropriate conf and data).

From now on permissions granted on DagRuns will also allow similar permissions on 'Backfills' of a specific dag id.

Note: I plan a follow up PR for the providers.

  • Did I used AI ? (no)

@pierrejeambrun pierrejeambrun added this to the Airflow 3.1.8 milestone Feb 3, 2026
@pierrejeambrun pierrejeambrun self-assigned this Feb 3, 2026
@pierrejeambrun pierrejeambrun added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Feb 3, 2026
@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API kind:documentation labels Feb 3, 2026
@@ -146,14 +148,19 @@ async def get_user(


def requires_access_dag(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you cover these changes in unit tests as well?

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 backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch kind:documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants