Skip to content

[Edge] Fix edge worker api support none default base api url#44732

Merged
jscheffl merged 4 commits intoapache:mainfrom
boschglobal:bugfix/fix-different-root-url-api-call-handling
Dec 9, 2024
Merged

[Edge] Fix edge worker api support none default base api url#44732
jscheffl merged 4 commits intoapache:mainfrom
boschglobal:bugfix/fix-different-root-url-api-call-handling

Conversation

@AutomationDev85
Copy link
Contributor

Description

If Airflow deployment runs on none default base url the Edge worker api auth fails. The Edge worker api auth compares the method names which include the url path. But auth does not know on which sub url it is running. Auth detects a mismatch and blocks the request.

Details about changes

  • Edge worker uses pure method name (url path without base url)
  • Edge worker api auth compares method name without using the url_prefix

@boring-cyborg boring-cyborg bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Dec 6, 2024
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Change is good in general but breaks Airflow 2.10 RPCAPI.

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Copy link
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

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

Thanks! After the fix it now works licke a charm!

@jscheffl jscheffl merged commit db14b8c into apache:main Dec 9, 2024
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
…44732)

* Fix method compare of api call

* Removed first slash from prue_method name

* Update providers/src/airflow/providers/edge/CHANGELOG.rst

* Update providers/src/airflow/providers/edge/worker_api/auth.py

Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>

---------

Co-authored-by: Marco Küttelwesch <marco.kuettelwesch@de.bosch.com>
Co-authored-by: Jens Scheffler <95105677+jscheffl@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants