Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix authentication for cases where webserver.base_url is not defined and worker is not using localhost in 2.10. #45785

Conversation

jscheffl
Copy link
Contributor

While testing edge deployment with @cmarteepants we found one problem when running Edge Provider in Airflow 2.10.4 - The authentication required to set webserver.base_url parameter to cut the server name from the called URL. This leads to failures when the base_url is not set and you run edge worker not on localhost.

This PR changes authentication in 2.10 to be the same like in main and not using base_url but take only the authentication URL part after the API prefix.

@jscheffl jscheffl added type:bug-fix Changelog: Bug Fixes AIP-69 Edge Executor provider:edge Edge Executor / Worker (AIP-69) labels Jan 18, 2025
@jscheffl jscheffl force-pushed the bugfix/fix-edge-authentication-in-2-10-when-base-url-not-set branch from 169c2b1 to 9324cd1 Compare January 19, 2025 17:48
@jscheffl jscheffl force-pushed the bugfix/fix-edge-authentication-in-2-10-when-base-url-not-set branch from cb906f2 to 6302a35 Compare January 20, 2025 17:29
@jscheffl jscheffl merged commit 90af410 into apache:main Jan 20, 2025
61 checks passed
dauinh pushed a commit to dauinh/airflow that referenced this pull request Jan 24, 2025
…and worker is not using localhost in 2.10. (apache#45785)

* Fix authentication for cases where webserver.base_url is not defined and worker is not using localhost in 2.10.

* Move Edge to new provider structure
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
…and worker is not using localhost in 2.10. (apache#45785)

* Fix authentication for cases where webserver.base_url is not defined and worker is not using localhost in 2.10.

* Move Edge to new provider structure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AIP-69 Edge Executor area:providers provider:edge Edge Executor / Worker (AIP-69) type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants