Repository navigation
Add regression test for Connection extra redact safeguard - #71439
Merged
bbovenzi merged 1 commit intoAug 12, 2026
Merged
Conversation
apache#63883 added a fail-closed safeguard on ``ConnectionResponse.redact_extra``: if the ``extra`` column ever slips past ``Connection._validate_extra`` (direct SQL, buggy migration, legacy data) and reaches the response serializer as a non-JSON string, the validator raises rather than returning the raw value. The path is unreachable through normal ORM access 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 branch and pin the fail-closed behavior. closes: apache#63160
bbovenzi
approved these changes
Aug 12, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
pierrejeambrun
added a commit
that referenced
this pull request
Aug 13, 2026
…71537) #63883 added a fail-closed safeguard on ``ConnectionResponse.redact_extra``: if the ``extra`` column ever slips past ``Connection._validate_extra`` (direct SQL, buggy migration, legacy data) and reaches the response serializer as a non-JSON string, the validator raises rather than returning the raw value. The path is unreachable through normal ORM access 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 branch and pin the fail-closed behavior. closes: #63160 (cherry picked from commit 9ced296)
vatsrahul1001
pushed a commit
that referenced
this pull request
Sep 7, 2026
…71537) #63883 added a fail-closed safeguard on ``ConnectionResponse.redact_extra``: if the ``extra`` column ever slips past ``Connection._validate_extra`` (direct SQL, buggy migration, legacy data) and reaches the response serializer as a non-JSON string, the validator raises rather than returning the raw value. The path is unreachable through normal ORM access 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 branch and pin the fail-closed behavior. closes: #63160 (cherry picked from commit 9ced296)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#63883 added a fail-closed safeguard on
ConnectionResponse.redact_extra: ifextraever slips pastConnection._validate_extraand 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_extraalready 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?
Generated-by: Claude Code (Opus 4.7) following the guidelines