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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
