Skip to content

Conversation

@vincbeck
Copy link
Contributor

@vincbeck vincbeck commented Mar 5, 2025

Auth backends are non longer used in Airflow 3. We should remove them. This also help to remove Flask from core Airflow.


^ 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 the area:API Airflow's REST/HTTP API label Mar 5, 2025
@vincbeck vincbeck requested a review from jedcunningham March 5, 2025 16:40
@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch from eb33142 to 39914ba Compare March 5, 2025 16:41
@jedcunningham
Copy link
Member

Don't forget the config option too:

@bugraoz93
Copy link
Contributor

bugraoz93 commented Mar 5, 2025

Don't forget the config option too:

That also has a test. Just to point out :)

def test_auth_backends_adds_session(self):

While checking, I saw this one 😕 I will create a small PR for fixing the syntax (indentation).

def test_command_from_env(self):
test_cmdenv_config = """[testcmdenv]
itsacommand = NOT OK
notacommand = OK
"""

@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch from 39914ba to 062e1cb Compare March 6, 2025 18:40
@vincbeck vincbeck requested a review from potiuk as a code owner March 6, 2025 18:40
Copy link
Contributor Author

@vincbeck vincbeck left a comment

Choose a reason for hiding this comment

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

PR updated

@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch 2 times, most recently from a66d256 to 27a66f3 Compare March 6, 2025 20:19
@vincbeck vincbeck requested a review from ashb as a code owner March 6, 2025 20:19
@vincbeck
Copy link
Contributor Author

vincbeck commented Mar 6, 2025

We actually need to keep the config. APIs provided by the FAB auth manager (such as users, roles, ...) need the auth backends. These APIs have not been migrated to fastapi and are still using Flask. Therefore, they need the auth backends. I updated the config description to reflect that.

@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch from 27a66f3 to fdff271 Compare March 6, 2025 21:44
@vincbeck
Copy link
Contributor Author

vincbeck commented Mar 6, 2025

However, we probably should move the config to FAB provider then?

Edit: I moved it.

@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch 12 times, most recently from c670c7c to 676f387 Compare March 11, 2025 17:35
@vincbeck
Copy link
Contributor Author

Test failures are not related to this PR, finally all tests are passing! Reviews are welcome :)

@vincbeck vincbeck requested review from ashb and jedcunningham and removed request for ashb and jedcunningham March 11, 2025 19:30
@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch from 676f387 to 6b4ed42 Compare March 12, 2025 13:58
@vincbeck vincbeck force-pushed the vincbeck/auth_backends branch from 6b4ed42 to 7011715 Compare March 12, 2025 17:55
@vincbeck
Copy link
Contributor Author

Error unrelated to this PR. Merging

@vincbeck vincbeck merged commit ec39ba4 into apache:main Mar 12, 2025
88 of 89 checks passed
@vincbeck vincbeck deleted the vincbeck/auth_backends branch March 12, 2025 19:39
nailo2c pushed a commit to nailo2c/airflow that referenced this pull request Apr 4, 2025
potiuk added a commit to jason810496/airflow that referenced this pull request Apr 12, 2025
Some recent changes in main and documentation published in the
inventories, made the 2.10 doc building fail as references to
non-existing docs in the new inventories were still used in the
documentation for 2.10

This PR fixes it by changing the docs to not refer to those
changed docs any more.

The PRs that removed the links: apache#47320 and apache#47399

Co-authored-by: LIU ZHE YOU <zhu424.dev@gmail.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit to jason810496/airflow that referenced this pull request Apr 12, 2025
Some recent changes in main and documentation published in the
inventories, made the 2.10 doc building fail as references to
non-existing docs in the new inventories were still used in the
documentation for 2.10

This PR fixes it by changing the docs to not refer to those
changed docs any more.

The PRs that removed the links: apache#47320 and apache#47399

Co-authored-by: LIU ZHE YOU <zhu424.dev@gmail.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit to jason810496/airflow that referenced this pull request Apr 12, 2025
Some recent changes in main and documentation published in the
inventories, made the 2.10 doc building fail as references to
non-existing docs in the new inventories were still used in the
documentation for 2.10

This PR fixes it by changing the docs to not refer to those
changed docs any more.

The PRs that removed the links: apache#47320 and apache#47399

Co-authored-by: LIU ZHE YOU <zhu424.dev@gmail.com>
Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit that referenced this pull request Apr 12, 2025
Some recent changes in main and documentation published in the
inventories, made the 2.10 doc building fail as references to
non-existing docs in the new inventories were still used in the
documentation for 2.10

This PR fixes it by changing the docs to not refer to those
changed docs any more.

The PRs that removed the links: #47320 and #47399

Co-authored-by: Jarek Potiuk <jarek@potiuk.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants