Skip to content

[2.1] Fixes 38451: Authorize can_create on DAGs as PUT so FAB admins reach health-auth and deploy (#38452) - #38460

Merged
ulixius9 merged 1 commit into
2.1from
backport/2.1/38452-fab-can-create
Nov 23, 2026
Merged

ulixius9 merged 1 commit into
2.1from
backport/2.1/38452-fab-can-create

Conversation

@ulixius9

@ulixius9 ulixius9 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Cherry-pick of #38452 (f34f5fe218b).

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. The fix authorizes can_create as PUT (which FAB grants as can_edit) and adds unit tests in openmetadata-airflow-apis/tests/unit/test_security_compat.py.

Fixes #38451

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable defects were found.

Summary

Changes Airflow 3 authorization so can_create on DAGs uses PUT, allowing FAB to check DAG edit permission.

  • Airflow DAG creation routes now use edit access.

Reviews (1) · Last reviewed commit: "fix(airflow-apis): authorize can_create ..." · Reviewed by Greptile

…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)
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@gitar-bot

gitar-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🔴 High risk

Mapping DAG can_create checks to PUT changes authorization, so roles with DAG edit permission could gain access to deploy and health-auth routes.

Authorizes can_create on DAGs as PUT instead of POST so FAB admins can reach the health-auth and deploy routes, restoring pipeline service on Helm deployments that were returning 403s. Unit tests are added in openmetadata-airflow-apis/tests/unit/test_security_compat.py. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@ulixius9
ulixius9 merged commit 8606607 into 2.1 Nov 23, 2026
42 of 44 checks passed
@ulixius9
ulixius9 deleted the backport/2.1/38452-fab-can-create branch November 23, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant