Skip to content

Conversation

@ashb
Copy link
Member

@ashb ashb commented Apr 11, 2025

A follow up to #49106, we don't actually need to specify the host, and in some
more complex routing circumstances with WAFs and multiple layers of (not
prefectly configured) proxies etc this can lead to a different hostname
between what the UA sent and what makes it to the Airflwo API server.

However we can simplify this, and just use the path property -- this will
always be right (defaults to a sane value, but uses the correct value from the
base URL config option.)


^ 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 airflow-core/newsfragments.

A follow up to #49106, we don't actually need to specify the host, and in some
more complex routing circumstances with WAFs and multiple layers of (not
prefectly configured) proxies etc this can lead to a different hostname
between what the UA sent and what makes it to the Airflwo API server.

However we can simplify this, and just use the `path` property -- this will
always be right (defaults to a sane value, but uses the correct value from the
base URL config option.)
@boring-cyborg boring-cyborg bot added the area:API Airflow's REST/HTTP API label Apr 11, 2025
@ashb ashb added this to the Airflow 3.0.0 milestone Apr 11, 2025
@ashb ashb merged commit 4805257 into main Apr 11, 2025
95 checks passed
@ashb ashb deleted the even-easier-reverse-proxy-path-only branch April 11, 2025 11:39
dheerajturaga added a commit to dheerajturaga/airflow that referenced this pull request Apr 14, 2025
Resolves apache#49229
Login with FabAuthManager fails when api.base_url is unset. Aligning with implementation with apache#49118
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