You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/28 02:10:57 UTC

[GitHub] [airflow] CaptainJ93 opened a new issue #17279: Logout airflow on Web UI does not work using OAuth2

CaptainJ93 opened a new issue #17279:
URL: https://github.com/apache/airflow/issues/17279


   **Apache Airflow version**: 2.0.0
   
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`): Client Version: Major:"1", Minor:"19", GitVersion:"v1.19.0",Server Version: Major:"1", Minor:"19",
   
   **Environment**:
   
   - **Cloud provider or hardware configuration**: 
   - **OS** (e.g. from /etc/os-release): Debian GNU/Linux 10 (buster)
   - **Kernel** (e.g. `uname -a`): Linux airflow-webserver-7bdf6db4f8-k9hkp 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 GNU/Linux
   - **Install tools**: ansible
   - **Others**:
   
   **What happened**:
   
   We are trying to implement OAuth2 on airflow using Keycloak. We have already set up Keycloak and configured airflow, now the login is success. But when clicking logout on airflow, the session still exists in Keycloak. Go to /pipelines page again, user logs in.
   
   **What you expected to happen**:
   
   If user logout airflow, when he try to access pipelines again should redirect to login page. Session should be invalid in Keycloak and user need to re-enter username&password.
   Maybe airflow should send a http request to Keycloak server to disable the session.
   
   **How to reproduce it**:
   1. set airflow to OAuth
   2. login user
   3. click logout
   4. go to pipelines page again, user is still logged in
   
   **Anything else we need to know**:
   When click logout, we checked Kecloak session, the session is still active.
   If we disable it manually, the user will need to log in again, which is correct.
   My guess is airflow need to send this request:
   http://auth-server/auth/realms/{realm-name}/protocol/openid-connect/logout?redirect_uri=encodedRedirectUri
   when user click logout.
   


-- 
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



[GitHub] [airflow] potiuk commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-991695475


   Constraints should update itself - now when our tests are far less flaky, thiis works out-of-the-box.


-- 
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



[GitHub] [airflow] jedcunningham commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-1029443560


   I just tested this and FAB does respect `LOGOUT_REDIRECT_URL` when logging out via the Airflow UI.


-- 
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



[GitHub] [airflow] potiuk commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-1011872225


   cc: @kaxil 


-- 
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



[GitHub] [airflow] blag commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
blag commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-991370837


   Now that dpgaspar/Flask-AppBuilder#1749 is merged, this is one step closer to being fixed.
   
   TODO as of now:
   
   * [ ] Wait for a new release of FAB that includes that fix
   * [ ] Update Airflow constraints files
   * [ ] Check if this bug is fixed in Airflow


-- 
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



[GitHub] [airflow] kaojunsong commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
kaojunsong commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-890802274


   https://github.com/dpgaspar/Flask-AppBuilder/pull/1160 could probably solve this issue.


-- 
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



[GitHub] [airflow] blag edited a comment on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
blag edited a comment on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-991370837


   Now that dpgaspar/Flask-AppBuilder#1749 is merged, this is one step closer to being fixed.
   
   TODO as of now:
   
   * [x] Wait for a new release of FAB that includes that fix - [3.4.1 on Dec 13th, 2021](https://github.com/dpgaspar/Flask-AppBuilder/pull/1759)
   * [x] Update Airflow constraints files
   * [ ] Check if this bug is fixed in Airflow


-- 
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



[GitHub] [airflow] boring-cyborg[bot] commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-887954968


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


-- 
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



[GitHub] [airflow] jedcunningham closed issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
jedcunningham closed issue #17279:
URL: https://github.com/apache/airflow/issues/17279


   


-- 
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



[GitHub] [airflow] blag commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
blag commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-991370837


   Now that dpgaspar/Flask-AppBuilder#1749 is merged, this is one step closer to being fixed.
   
   TODO as of now:
   
   * [ ] Wait for a new release of FAB that includes that fix
   * [ ] Update Airflow constraints files
   * [ ] Check if this bug is fixed in Airflow


-- 
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



[GitHub] [airflow] blag commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
blag commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-983127617


   Since dpgaspar/Flask-AppBuilder#1160 was closed by the stalebot and ignored after that, I opened PR dpgaspar/Flask-AppBuilder#1749 with the same changes. Hopefully that gets merged.


-- 
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



[GitHub] [airflow] potiuk commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-991695475


   Constraints should update itself - now when our tests are far less flaky, thiis works out-of-the-box.


-- 
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



[GitHub] [airflow] potiuk edited a comment on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
potiuk edited a comment on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-1011871954


   Flask App builder constraints are updated already  - both main and 2.2 branch. So we could fix it in main and cherry-pick to 2.2.4


-- 
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



[GitHub] [airflow] jedcunningham commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
jedcunningham commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-888522424


   This should probably be an issue over at https://github.com/dpgaspar/Flask-AppBuilder instead.


-- 
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



[GitHub] [airflow] potiuk commented on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
potiuk commented on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-1011871954


   Flask App builder constraints are updated already  - both main and 2.2 branch. So we could fix it in main and cherry-pick to 2.3.4


-- 
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



[GitHub] [airflow] blag edited a comment on issue #17279: Logout airflow on Web UI does not work using OAuth2

Posted by GitBox <gi...@apache.org>.
blag edited a comment on issue #17279:
URL: https://github.com/apache/airflow/issues/17279#issuecomment-991370837


   Now that dpgaspar/Flask-AppBuilder#1749 is merged, this is one step closer to being fixed.
   
   TODO as of now:
   
   * [x] Wait for a new release of FAB that includes that fix - [3.4.1 on Dec 13th, 2021](https://github.com/dpgaspar/Flask-AppBuilder/pull/1759)
   * [ ] Update Airflow constraints files
   * [ ] Check if this bug is fixed in Airflow


-- 
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