potiuk opened a new pull request, #66502: URL: https://github.com/apache/airflow/pull/66502
The all-admins login response set `Secure` (conditional on HTTPS) and `HttpOnly` on the JWT cookie but omitted `SameSite`. `JWTRefreshMiddleware` already sets `samesite="lax"` on the cookie it issues. Bring the login response in line so both code paths produce cookies with the same attributes. Reported in apache/tooling-agents#23 (ASVS L1 finding F-011, partial — the audit's blanket "cookies lack Secure attribute" claim is incorrect; `secure` was already conditional on HTTPS). --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Opus 4.7 (1M context) Generated-by: Claude Opus 4.7 (1M context) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
