Repository navigation
Mask provider-declared sensitive connection extras on every connection type - #73794
Merged
potiuk merged 7 commits intoOct 19, 2026
Merged
Conversation
The connections API masks ``extra`` values by field name only, so a field a provider declares as a secret (``format: password`` in its ``conn-fields``) is returned in cleartext when its name is too generic to be on the global list -- ``config`` is a secret for apprise and harmless for other connection types. After the name-based masking, also mask the fields the connection type's own provider declares sensitive, read from provider metadata without importing hooks. Generated-by: Claude Opus 5
potiuk
requested review from
bugraoz93,
choo121600,
ephraimbuddy,
henry3260,
jason810496,
pierrejeambrun,
rawwar and
shubhamraj-git
as code owners
September 27, 2026 14:18
Generated-by: Claude Opus 5
Member
Author
|
@ashb @pierrejeambrun Could you take a look at this when you have a moment? It's targeted at 3.4.0 and needs a review to make the cut on 2026-10-19. CI is green. |
…ction Generated-by: Claude Opus 5
…changed Generated-by: Claude Opus 5
…e change Generated-by: Claude Opus 5
…ion types Generated-by: Claude Opus 5
vatsrahul1001
approved these changes
Oct 18, 2026
Contributor
There was a problem hiding this comment.
Looks good to me. Provider-declared secrets are masked on every connection type, the stored value is only restored when the connection type is unchanged, and the tests cover PATCH and test-connection. Could use reviews from @ashb @pierrejeambrun before merging.
Checking each key against every connection type's declared fields did the same work on every key of every response; building the plain and prefixed names once keeps the lookup a single membership test. Generated-by: Claude Opus 5
Contributor
Backport successfully created: v3-4-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
potiuk
added a commit
that referenced
this pull request
Oct 19, 2026
…ry connection type (#73794) (#75106) * Mask provider-declared sensitive connection extras by connection type The connections API masks ``extra`` values by field name only, so a field a provider declares as a secret (``format: password`` in its ``conn-fields``) is returned in cleartext when its name is too generic to be on the global list -- ``config`` is a secret for apprise and harmless for other connection types. After the name-based masking, also mask the fields the connection type's own provider declares sensitive, read from provider metadata without importing hooks. Generated-by: Claude Opus 5 * Add newsfragment Generated-by: Claude Opus 5 * Restore provider-declared sensitive extras when saving a masked connection Generated-by: Claude Opus 5 * Restore provider-sensitive extras only when the connection type is unchanged Generated-by: Claude Opus 5 * Keep provider-declared sensitive extras masked after a connection type change Generated-by: Claude Opus 5 * Describe masking of provider-declared sensitive extras across connection types Generated-by: Claude Opus 5 * Look up provider-declared sensitive extra keys in one set Checking each key against every connection type's declared fields did the same work on every key of every response; building the plain and prefixed names once keeps the lookup a single membership test. (cherry picked from commit a1109f8) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <[email protected]>
vatsrahul1001
pushed a commit
that referenced
this pull request
Oct 20, 2026
…ry connection type (#73794) (#75106) * Mask provider-declared sensitive connection extras by connection type The connections API masks ``extra`` values by field name only, so a field a provider declares as a secret (``format: password`` in its ``conn-fields``) is returned in cleartext when its name is too generic to be on the global list -- ``config`` is a secret for apprise and harmless for other connection types. After the name-based masking, also mask the fields the connection type's own provider declares sensitive, read from provider metadata without importing hooks. Generated-by: Claude Opus 5 * Add newsfragment Generated-by: Claude Opus 5 * Restore provider-declared sensitive extras when saving a masked connection Generated-by: Claude Opus 5 * Restore provider-sensitive extras only when the connection type is unchanged Generated-by: Claude Opus 5 * Keep provider-declared sensitive extras masked after a connection type change Generated-by: Claude Opus 5 * Describe masking of provider-declared sensitive extras across connection types Generated-by: Claude Opus 5 * Look up provider-declared sensitive extra keys in one set Checking each key against every connection type's declared fields did the same work on every key of every response; building the plain and prefixed names once keeps the lookup a single membership test. (cherry picked from commit a1109f8) Generated-by: Claude Opus 5 Co-authored-by: Jarek Potiuk <[email protected]>
1 task done
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.
The connections API masks
extravalues by field name only, so a field a provider declares as a secret (format: passwordin itsconn-fields) is returned in cleartext when its name is too generic to be on the global list;configis a secret for apprise, for example. After the name-based masking, this also masks every field that any installed provider declares sensitive, read from provider metadata without importing hooks. The check does not depend on the connection's current type, so a secret left inextraafter a connection type change stays masked.When a client sends a masked value back (as the UI does when another extra field is edited), the stored value is kept, but only while the connection type is unchanged, so a stored secret is never handed to a different connection type. This applies to PATCH, bulk update and the test-connection endpoint.
🤖 Generated with Claude Code