Repository navigation
Ship the Dag bundle permission in Airflow 3.4.1 - #76474
Conversation
Airflow 3.4.0 has the menu item but not the view, and shows the bundles to anyone who can read a Dag in them. A provider released before 3.4.1 would otherwise hide the entry from roles that can still open the page.
08cb8d7 to
ddea9f6
Compare
potiuk
left a comment
There was a problem hiding this comment.
The fallback looks right: on 3.4.0 the FAB menu mapping and the Keycloak team menu entry go back to what they were before #76329, and both move to the bundle resource once AccessView.DAG_BUNDLES exists.
One thing to sort out for 3.4.1: the automatic backport of #76329 failed, v3-4-test still has no AccessView.DAG_BUNDLES, and I couldn't find a manual backport. This PR has no milestone or backport label either, so as it stands neither the change nor this newsfragment reaches 3.4.1.
This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The maintainer
approving this PR has read the findings and signed off. If
something feels off, please reply on the PR and a maintainer
will follow up.More on how Apache Airflow handles maintainer review:
Contributing guide.
|
Missing backports are intentional. We are in flight on releasing 3.4.0, so I do not want it to land in v3-4-test until its out. |
| @@ -0,0 +1,13 @@ | |||
| Dag bundles have their own read permission | |||
|
|
|||
| The Dag Bundles page and ``GET /api/v2/dagBundles`` used to show a bundle to anyone who could read a | |||
There was a problem hiding this comment.
nit: GET /api/v2/dagBundles/{bundle_name} and GET /api/v2/dagBundles/{bundle_name}/files change the same way. Maybe name them too, or say "the /api/v2/dagBundles endpoints".
Drafted-by: Kiro (claude-opus-5.5); reviewed by @o-nikolas before posting
| ``AdminView`` resource, so only ``SuperAdmin`` holds it. Multi-team deployments must upgrade this | ||
| provider together with Airflow 3.4.0: older releases check the view against ``View``, which every | ||
| provider together with Airflow 3.4.1: older releases check the view against ``View``, which every | ||
| team role can read. |
There was a problem hiding this comment.
Multi-team deployments on 3.4.0 get "Dag Bundles" in each team's MenuAccess- permission, both from 0.11.2 and from this PR. After upgrading to 3.4.1, team roles keep that menu entry and get a 403 on the page until create-team is re-run for each team, which rewrites the menu resource list. Worth adding a line to this note telling multi-team users to re-run create-team after upgrading?
Drafted-by: Kiro (claude-opus-5.5); reviewed by @o-nikolas before posting
#76329 will ship in Airflow 3.4.1 rather than 3.4.0. This updates the provider changelog notes and docs to say 3.4.1, and adds a significant newsfragment, since in a patch release users who can only read Dags lose the Dag Bundles page.
Providers release on their own schedule, so the FAB and Keycloak releases with #76329 will also run on Airflow 3.4.0. 3.4.0 has the bundles menu item but not the view, and shows bundles to anyone who can read a Dag in them. There the menu entry stays on Dag access, as it was before #76329, rather than disappearing for roles that can still open the page.
related: #76329
Verified locally: the FAB auth manager and Keycloak CLI test files pass in breeze on main and on Airflow 3.4.0rc2. CI's compat matrix has no 3.4.0 cell, so the 3.4.0 path is only covered by that manual run.
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5) following the guidelines