[v3-2-test] Fix bulk task instance rbac bypass (#64288)#65846
Merged
potiuk merged 1 commit intoApr 25, 2026
Merged
Conversation
* Fix bulk task instance RBAC checks across DAGs * Update tests * fix up tests * Fixup tests * Resolve comments (cherry picked from commit a1c45b9)
vatsrahul1001
pushed a commit
that referenced
this pull request
Apr 27, 2026
vatsrahul1001
pushed a commit
that referenced
this pull request
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #64288 to
v3-2-testso the bulk task-instance RBAC check ships in 3.2.2 as well as onmain.The cherry-pick had one trivial conflict in
airflow-core/tests/unit/api_fastapi/core_api/routes/public/test_task_instances.py— the original PR's three new tests (test_bulk_update_mapped_task_instance_state_is_persisted,test_bulk_task_instances_rejects_unauthorized_dag_ids_from_request_body,test_bulk_delete_rejects_unauthorized_dag_ids_from_request_body) inserted beforetest_should_respond_401, and v3-2-test's file structure at that location differs slightly. Resolved by accepting the incoming side; the new tests now sit before the existingtest_should_respond_401test.Auto-regenerated companion files (
_private_ui.yaml,schemas.gen.ts,types.gen.ts) included as produced by the pre-commit hooks.Local pytest collection fails on this v3-2-test working directory due to an unrelated provider-discovery glitch (
No module named 'airflow.providers.vespa.get_provider_info'); CI will run the full suite. The cherry-pick is syntactically clean (verified viapython -m ast) and the diff is identical to the original PR's diff modulo the conflict-resolution context.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Opus 4.7 (1M context) following the guidelines at https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions