Skip to content

[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

Merged
ulixius9 merged 2 commits into
2.1.0from
backport/2.1.0/38452-fab-can-create
Nov 23, 2026
Merged

ulixius9 merged 2 commits into
2.1.0from
backport/2.1.0/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

Also bumps the Python packages to 2.1.0.2 so the fixed openmetadata_managed_apis can be published: both pyproject.toml files, RI_VERSION in both ingestion Dockerfiles, and the openmetadata-ingestion entry in ingestion/uv.lock (same shape as #38314).

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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_create on DAGs to use PUT when asking the Airflow 3 auth manager for access.

  • DAG creation routes now check edit permission on Airflow.
  • The ingestion and managed API packages now share version 2.1.0.2.

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]
Loading

Reviews (1) · Last reviewed commit: "bump ingestion 2.1.0.2" · 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)
@ulixius9
ulixius9 requested a review from a team as a code owner November 23, 2026 09:26
@ulixius9
ulixius9 requested review from stout-yeoman and removed request for a team November 23, 2026 09:26
@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 to PUT changes authorization for health-auth and deploy; DAG editors could gain unintended access to deployment operations.

Maps can_create on DAGs to PUT instead of POST so FAB admins can reach the health-auth and deploy routes, fixing 403 errors that disabled the pipeline service in 2.1.0 Helm deployments. Adds unit tests in openmetadata-airflow-apis/tests/unit/test_security_compat.py and bumps ingestion packages to 2.1.0.2. 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 fbaf188 into 2.1.0 Nov 23, 2026
49 of 51 checks passed
@ulixius9
ulixius9 deleted the backport/2.1.0/38452-fab-can-create branch November 23, 2026 09:53
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.

2 participants