Repository navigation
[2.1] Fixes 38451: Authorize can_create on DAGs as PUT so FAB admins reach health-auth and deploy (#38452) - #38460
Conversation
…reach health-auth and deploy FabAuthManager has no can_create on the DAGs resource (only read/edit/delete), so mapping can_create to POST denied every user, Admin included, on the health-auth and deploy routes. Every Helm deployment of 2.1.0 (the Airflow chart configures FabAuthManager) lost its pipeline service with 403s. (cherry picked from commit f34f5fe)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🔴 High riskMapping DAG can_create checks to PUT changes authorization, so roles with DAG edit permission could gain access to deploy and health-auth routes. Authorizes VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Cherry-pick of #38452 (
f34f5fe218b).FabAuthManagerhas nocan_createon the DAGs resource (only read/edit/delete), so mappingcan_createtoPOSTdenied every user, Admin included, on thehealth-authanddeployroutes. Every Helm deployment of 2.1.0 (the Airflow chart configuresFabAuthManager) lost its pipeline service with 403s. The fix authorizescan_createasPUT(which FAB grants ascan_edit) and adds unit tests inopenmetadata-airflow-apis/tests/unit/test_security_compat.py.Fixes #38451
🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable defects were found.Summary
Changes Airflow 3 authorization so
can_createonDAGsusesPUT, allowing FAB to check DAG edit permission.Reviews (1) · Last reviewed commit: "fix(airflow-apis): authorize can_create ..." · Reviewed by Greptile