Leondon9 opened a new pull request, #67059: URL: https://github.com/apache/airflow/pull/67059
Avoid passing the supplied Execution API Bearer credential into the JWT validation failure log event. This is a small defense-in-depth hardening change. The warning message, exception info, and HTTP 403 behavior are preserved; the raw credential is no longer attached as a structured `token` field. Tests: - `breeze run ruff format airflow-core/src/airflow/api_fastapi/execution_api/security.py airflow-core/tests/unit/api_fastapi/execution_api/test_security.py` - `breeze run ruff check --fix airflow-core/src/airflow/api_fastapi/execution_api/security.py airflow-core/tests/unit/api_fastapi/execution_api/test_security.py` - `breeze run pytest airflow-core/tests/unit/api_fastapi/execution_api/test_security.py::TestJWTBearerLogging -xvs` --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex (GPT-5) Generated-by: Codex (GPT-5) 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]
