Repository navigation
[v3-3-test] Add regression test for Connection extra redact safeguard (#71439) - #71537
Merged
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 (cherry picked from commit 9ced296)
Contributor
|
Hi maintainer, this PR was merged without a milestone set.
|
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: if theextracolumn ever slips pastConnection._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 becauseConnection.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 branch and pin the fail-closed behavior.closes: #63160
(cherry picked from commit 9ced296)
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.