Skip to content

[v3-4-test] Mask provider-declared sensitive connection extras on every connection type (#73794) - #75106

Merged
potiuk merged 1 commit into
v3-4-testfrom
backport-a1109f8-v3-4-test
Oct 19, 2026
Merged

potiuk merged 1 commit into
v3-4-testfrom
backport-a1109f8-v3-4-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor
  • 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

…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
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Oct 19, 2026
@potiuk
potiuk marked this pull request as ready for review October 19, 2026 16:27
@potiuk
potiuk merged commit a037e9f into v3-4-test Oct 19, 2026
72 of 73 checks passed
@potiuk
potiuk deleted the backport-a1109f8-v3-4-test branch October 19, 2026 16:27
@github-actions github-actions Bot added this to the Airflow 3.4.1 milestone Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

Hi maintainer, this PR was merged without a milestone set.
We've automatically set the milestone to Airflow 3.4.1 based on: merged to version branch
If this milestone is not correct, please update it to the appropriate milestone.

This comment was generated by Milestone Tag Assistant.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants