Skip to content

Conversation

@vatsrahul1001
Copy link
Contributor

related to #42360

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels Mar 7, 2025
@vatsrahul1001 vatsrahul1001 marked this pull request as draft March 7, 2025 06:22
@Lee-W Lee-W mentioned this pull request Mar 6, 2025
47 tasks
@pierrejeambrun
Copy link
Member

Let me know when this is ready for review.

@vatsrahul1001 vatsrahul1001 marked this pull request as ready for review March 7, 2025 11:28
@Lee-W Lee-W self-requested a review March 11, 2025 09:27
@Lee-W
Copy link
Member

Lee-W commented Mar 11, 2025

Let me know when this is ready for review.

@vatsrahul1001 has mark it for ready to review. I'll also take a look later today

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you rebase the branch and regenerate the openapi spec.

Some endpoints are missing the permissions (list_backfills, create_backfill, get_backfill etc.)

Also I think we might want an extra Entity for the AuthManager instead of going through dagrun every time. (That might be good for creating a backfill, to have both backfill + create dag run permission maybe, but for listing backfills, we need a dedicated entity I guess). You can take a look at this PR that also does that for AssetAliases:
#47241

@pierrejeambrun
Copy link
Member

cc: @vincbeck

@Lee-W Lee-W force-pushed the AIP84-auth-backfills branch from 3ceaf3d to c40a5ef Compare March 11, 2025 13:34
@vincbeck
Copy link
Contributor

Can you rebase the branch and regenerate the openapi spec.

Some endpoints are missing the permissions (list_backfills, create_backfill, get_backfill etc.)

Also I think we might want an extra Entity for the AuthManager instead of going through dagrun every time. (That might be good for creating a backfill, to have both backfill + create dag run permission maybe, but for listing backfills, we need a dedicated entity I guess). You can take a look at this PR that also does that for AssetAliases: #47241

I agree. I think #47241 is a great example, please follow it and tag me on the PR. I'll be happy to review it

@Lee-W Lee-W force-pushed the AIP84-auth-backfills branch from c40a5ef to 7151649 Compare March 11, 2025 14:14
@Lee-W Lee-W force-pushed the AIP84-auth-backfills branch from 2ccf6c0 to dce6fd5 Compare March 12, 2025 08:55
@Lee-W Lee-W force-pushed the AIP84-auth-backfills branch from dce6fd5 to de4ccdf Compare March 12, 2025 11:03
Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I'll let vincent double check.

@Lee-W Lee-W force-pushed the AIP84-auth-backfills branch from de4ccdf to 0119c4f Compare March 13, 2025 01:11
@Lee-W Lee-W merged commit 46759a3 into apache:main Mar 13, 2025
89 checks passed
@Lee-W Lee-W deleted the AIP84-auth-backfills branch March 13, 2025 06:52
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
* add auth to backfills endpoints

* feat(security): add is_authorized_backfill

* feat(api_fastapi): add required permision for backfills

* feat(AIP-84): add backfill operation permission to aws provider

* test(AIP-84): add test cases for backfill auth

* fixup! Merge branch 'main' into AIP84-auth-backfills

* fixup! Merge branch 'main' into AIP84-auth-backfills

* fixup! fixup! Merge branch 'main' into AIP84-auth-backfills

* fixup! Merge branch 'main' into AIP84-auth-backfills

* fixup! Merge branch 'main' into AIP84-auth-backfills

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants