Repository navigation
[2.1.0] Fixes 38451: Authorize can_create on DAGs as PUT so FAB admins reach health-auth and deploy (#38452) + bump ingestion 2.1.0.2 - #38461
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 to PUT changes authorization for health-auth and deploy; DAG editors could gain unintended access to deployment operations. Maps 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
Also bumps the Python packages to
2.1.0.2so the fixedopenmetadata_managed_apiscan be published: bothpyproject.tomlfiles,RI_VERSIONin both ingestion Dockerfiles, and theopenmetadata-ingestionentry iningestion/uv.lock(same shape as #38314).🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issue was found in the changed authorization checks or package versions.Summary
Changes
can_createonDAGsto usePUTwhen asking the Airflow 3 auth manager for access.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Authenticated request] --> B{Resource is DAGs?} B -->|Yes| C{Action is can_create?} C -->|Yes| D[Ask is_authorized_dag with PUT] C -->|No| E[Keep existing DAG action mapping] B -->|No| F[Keep existing custom-view mapping] D --> G{Auth manager grants access?} E --> G F --> G G -->|Yes| H[Run handler] G -->|No| I[Return 403]Reviews (1) · Last reviewed commit: "bump ingestion 2.1.0.2" · Reviewed by Greptile