pierrejeambrun opened a new pull request, #71439: URL: https://github.com/apache/airflow/pull/71439
#63883 added a fail-closed safeguard on `ConnectionResponse.redact_extra`: if `extra` ever slips past `Connection._validate_extra` and reaches the response serializer as a non-JSON string (direct SQL, buggy migration, legacy data), the validator raises rather than returning the raw value — closing the leak described in #63160. Through the normal ORM path that safeguard is unreachable because `Connection.get_extra` already fails on read, so the model-level guard is defense in depth. It had no test until now — this feeds the Pydantic model directly to exercise the JSONDecodeError branch and pin the fail-closed behavior against future refactors. closes: #63160 ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.7) Generated-by: Claude Code (Opus 4.7) 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]
