Skip to content

Conversation

@vincbeck
Copy link
Contributor

auth_manager.is_authorized_dag(method="GET", user=user) does NOT verify whether a user has permissions to read all DAGs, but whether a user is authorized to list DAGs.

We should rely on get_authorized_dag_ids to check which DAGs a user has access to.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

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

LGTM just one question.

@vincbeck vincbeck merged commit ac45d92 into apache:main Jan 21, 2026
245 of 246 checks passed
@vincbeck vincbeck deleted the vincbeck/import_errors branch January 21, 2026 15:37
vincbeck added a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jan 21, 2026
vincbeck added a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jan 21, 2026
vincbeck added a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jan 21, 2026
suii2210 pushed a commit to suii2210/airflow that referenced this pull request Jan 26, 2026
shreyas-dev pushed a commit to shreyas-dev/airflow that referenced this pull request Jan 29, 2026
ephraimbuddy pushed a commit that referenced this pull request Jan 29, 2026
Import error stopped showing on UI after #60801 which removed the early bypass for users with access to all DAGs.

When a DAG file has an import error, the DAG doesn't exist in DagModel (because it failed to import). The inner join with DagModel filters out these import errors because there's no matching row.

This was always broken for users without "read all" permissions but was masked by the early return path.
vatsrahul1001 added a commit to astronomer/airflow that referenced this pull request Jan 29, 2026
Import error stopped showing on UI after apache#60801 which removed the early bypass for users with access to all DAGs.

When a DAG file has an import error, the DAG doesn't exist in DagModel (because it failed to import). The inner join with DagModel filters out these import errors because there's no matching row.

This was always broken for users without "read all" permissions but was masked by the early return path.
vatsrahul1001 added a commit to astronomer/airflow that referenced this pull request Jan 29, 2026
Import error stopped showing on UI after apache#60801 which removed the early bypass for users with access to all DAGs.

When a DAG file has an import error, the DAG doesn't exist in DagModel (because it failed to import). The inner join with DagModel filters out these import errors because there's no matching row.

This was always broken for users without "read all" permissions but was masked by the early return path.
vatsrahul1001 added a commit to astronomer/airflow that referenced this pull request Jan 29, 2026
Import error stopped showing on UI after apache#60801 which removed the early bypass for users with access to all DAGs.

When a DAG file has an import error, the DAG doesn't exist in DagModel (because it failed to import). The inner join with DagModel filters out these import errors because there's no matching row.

This was always broken for users without "read all" permissions but was masked by the early return path.
vincbeck pushed a commit that referenced this pull request Jan 29, 2026
Import error stopped showing on UI after #60801 which removed the early bypass for users with access to all DAGs.

When a DAG file has an import error, the DAG doesn't exist in DagModel (because it failed to import). The inner join with DagModel filters out these import errors because there's no matching row.

This was always broken for users without "read all" permissions but was masked by the early return path.
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.

4 participants