Repository navigation
[v3-4-test] Mask provider-declared sensitive connection extras on every connection type (#73794) - #75106
Merged
Conversation
…ry connection type (#73794) * 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) Co-authored-by: Jarek Potiuk <[email protected]> Generated-by: Claude Opus 5
potiuk
marked this pull request as ready for review
October 19, 2026 16:27
potiuk
requested review from
bugraoz93,
choo121600,
ephraimbuddy,
henry3260,
jason810496,
pierrejeambrun,
rawwar and
shubhamraj-git
as code owners
October 19, 2026 16:27
Contributor
Author
|
Hi maintainer, this PR was merged without a milestone set.
|
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]>
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 afield a provider declares as a secret (
format: passwordin itsconn-fields) is returned in cleartext when its name is too genericto be on the global list --
configis a secret for apprise andharmless 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
Generated-by: Claude Opus 5
Generated-by: Claude Opus 5
Generated-by: Claude Opus 5
Generated-by: Claude Opus 5
Generated-by: Claude Opus 5
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)
Co-authored-by: Jarek Potiuk [email protected]
Generated-by: Claude Opus 5