You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "LipuFei (via GitHub)" <gi...@apache.org> on 2025/08/18 10:06:22 UTC

[PR] fix: Add more security options for the JWT token cookie [airflow]

LipuFei opened a new pull request, #54607:
URL: https://github.com/apache/airflow/pull/54607

   The JWT token cookie `_token` is short-lived and only for token exchange with the UI, according to the doc: https://github.com/apache/airflow/blob/2997d8b6dadc56053bb0e9a6ff4fb673caadaa24/airflow-core/docs/core-concepts/auth-manager/index.rst?plain=1#L151
   
   The secure flag is already set based on the configuration `[api] base_url`. It will be more secure with HttpOnly and an expiration set.
   
   This PR adds two things to this the `_token` cookie:
   
   1. Set `HttpOnly = true`
   2. Set an expiration of 5 minutes, which should be sufficient for the token exchange with the 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


Re: [PR] fix: Add more security options for the JWT token cookie [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on PR #54607:
URL: https://github.com/apache/airflow/pull/54607#issuecomment-3196049185

   We are discussing general token approach in the seecurity team and we will have more changes coming as a comprehensive JWT token approach. For now I will close the ticket and we will implement any changes resulting from our discussions separately.


-- 
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] fix: Add more security options for the JWT token cookie [airflow]

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed pull request #54607: fix: Add more security options for the JWT token cookie
URL: https://github.com/apache/airflow/pull/54607


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