You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "vatsrahul1001 (via GitHub)" <gi...@apache.org> on 2026/03/04 09:04:44 UTC
[PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
vatsrahul1001 opened a new pull request, #62851:
URL: https://github.com/apache/airflow/pull/62851
Backport of https://github.com/apache/airflow/pull/62771
* Scope session token in cookie to base_url
* Make get_cookie_path import backwards compatible
(cherry picked from commit 43ee8c48c9bf6ec3de382052602a43afc4a0da34)
* Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
* For fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed.
* When adding dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
* For significant user-facing changes create newsfragment: `{pr_number}.significant.rst` or `{issue_number}.significant.rst`, in [airflow-core/newsfragments](https://github.com/apache/airflow/tree/main/airflow-core/newsfragments).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #62851:
URL: https://github.com/apache/airflow/pull/62851#discussion_r2882875246
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -46,6 +47,11 @@
app: Flask | None = None
+if AIRFLOW_V_3_1_8_PLUS:
+ from airflow.api_fastapi.app import get_cookie_path
+else:
+ get_cookie_path = lambda: "/"
+
# Initializes at the module level, so plugins can access it.
Review Comment:
Yeah we don't care about 'fab provider' backports, providers are released from main.
But indeed we are missing the 'simple auth manager' part. (even if this is not production ready, it's weird that some file there are missing)
##########
providers/amazon/src/airflow/providers/amazon/aws/auth_manager/routes/login.py:
##########
Review Comment:
same here, you can drop all the 'aws' providers change. It will make things simpler. Same for keycloak and fab provider.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "jason810496 (via GitHub)" <gi...@apache.org>.
jason810496 commented on code in PR #62851:
URL: https://github.com/apache/airflow/pull/62851#discussion_r2882781315
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -46,6 +47,11 @@
app: Flask | None = None
+if AIRFLOW_V_3_1_8_PLUS:
+ from airflow.api_fastapi.app import get_cookie_path
+else:
+ get_cookie_path = lambda: "/"
+
# Initializes at the module level, so plugins can access it.
Review Comment:
Missing backport here, but it _should_ be fine IMHO. Since the provider will be release in `main` branch.
`main`:
https://github.com/apache/airflow/blob/43ee8c4/providers/fab/src/airflow/providers/fab/www/views.py#L117-L132
whereas `v3-1-test`:
https://github.com/apache/airflow/blob/2f5cdff247b9edaad120b1dc18b864ab7509d772/providers/fab/src/airflow/providers/fab/www/views.py#L58-L83
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 commented on code in PR #62851:
URL: https://github.com/apache/airflow/pull/62851#discussion_r2883389020
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -46,6 +47,11 @@
app: Flask | None = None
+if AIRFLOW_V_3_1_8_PLUS:
+ from airflow.api_fastapi.app import get_cookie_path
+else:
+ get_cookie_path = lambda: "/"
+
# Initializes at the module level, so plugins can access it.
Review Comment:
Thanks removed provider changes. @jason810496 added UI changes in https://github.com/apache/airflow/pull/62859
##########
providers/amazon/src/airflow/providers/amazon/aws/auth_manager/routes/login.py:
##########
Review Comment:
Removed provider changes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 commented on PR #62851:
URL: https://github.com/apache/airflow/pull/62851#issuecomment-3997862450
> There are some conflicts and looks like a lot of commits ? Posibly something wrong when backportint?
Yeah branch had accumulated unrelated commits because it diverged from v3-1-test. I have fixed now
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #62851:
URL: https://github.com/apache/airflow/pull/62851#issuecomment-3997721509
There are some conflicts and looks like a lot of commits ? Posibly something wrong when backportint?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 merged PR #62851:
URL: https://github.com/apache/airflow/pull/62851
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 commented on code in PR #62851:
URL: https://github.com/apache/airflow/pull/62851#discussion_r2882823626
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -46,6 +47,11 @@
app: Flask | None = None
+if AIRFLOW_V_3_1_8_PLUS:
+ from airflow.api_fastapi.app import get_cookie_path
+else:
+ get_cookie_path = lambda: "/"
+
# Initializes at the module level, so plugins can access it.
Review Comment:
@pierrejeambrun do we need this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on PR #62851:
URL: https://github.com/apache/airflow/pull/62851#issuecomment-3998165911
Why do we split UI and backend changes from the same original PR when backporting? This makes things more complicated, and the two backport linked contains 150+ commits and are probably not in a good state.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "vatsrahul1001 (via GitHub)" <gi...@apache.org>.
vatsrahul1001 commented on PR #62851:
URL: https://github.com/apache/airflow/pull/62851#issuecomment-3998202638
> The two backport linked contains 150+ commits and are not in a reviewable state.
Yeah same issue as https://github.com/apache/airflow/pull/62851#issuecomment-3997862450. I have asked @jason810496 to rebase
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [v3-1- test] Scope session token in cookie to base_url (#62771) [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on code in PR #62851:
URL: https://github.com/apache/airflow/pull/62851#discussion_r2882875246
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -46,6 +47,11 @@
app: Flask | None = None
+if AIRFLOW_V_3_1_8_PLUS:
+ from airflow.api_fastapi.app import get_cookie_path
+else:
+ get_cookie_path = lambda: "/"
+
# Initializes at the module level, so plugins can access it.
Review Comment:
Yeah we don't care about 'fab provider' backports, providers are released from main.
##########
providers/fab/src/airflow/providers/fab/www/app.py:
##########
@@ -46,6 +47,11 @@
app: Flask | None = None
+if AIRFLOW_V_3_1_8_PLUS:
+ from airflow.api_fastapi.app import get_cookie_path
+else:
+ get_cookie_path = lambda: "/"
+
# Initializes at the module level, so plugins can access it.
Review Comment:
But indeed we are missing the 'simple auth manager' part. (even if this is not production ready, it's weird that some file there are missing)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org