Skip to content

Redact Connection extra fields that providers declare as secrets - #73797

Open
JelyFishhhhhh wants to merge 1 commit into
apache:mainfrom
JelyFishhhhhh:redact-provider-declared-secrets
Open

JelyFishhhhhh wants to merge 1 commit into
apache:mainfrom
JelyFishhhhhh:redact-provider-declared-secrets

Conversation

@JelyFishhhhhh

@JelyFishhhhhh JelyFishhhhhh commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Several providers declare connection extra fields as secrets (PasswordField), but their names were missing from the redaction allowlist, so their values were not redacted like other secret fields. This adds them (app_key, certificate, credential, keytab, kube_config, oauth, routing_key, thumbprint, write_key) as DEFAULT_SENSITIVE_FIELD_NAMES, matched against the whole field name, including its camelCase form (kubeConfig) and its extra__<conn_type>__<name> form. Matched as substrings, like DEFAULT_SENSITIVE_FIELDS, they would also hide non-secret fields such as kube_config_path or credential_config_file.

config is deliberately not added; apprise's config field is handled separately.

A regression test asserts that every field a provider declares sensitive is covered, so the allowlist and the providers do not drift apart again. apprise's config is the one documented exception.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5.5)

Generated-by: Claude Code (Opus 5.5) following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {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.

@JelyFishhhhhh
JelyFishhhhhh force-pushed the redact-provider-declared-secrets branch from 82f3a70 to bf2b95f Compare October 14, 2026 01:28
@potiuk potiuk added the backport-to-v3-4-test Backport to v3-4-test label Oct 16, 2026
@potiuk potiuk added this to the Airflow 3.4.0 milestone Oct 16, 2026
@potiuk

potiuk commented Oct 16, 2026

Copy link
Copy Markdown
Member

@kaxil All your review points are addressed and resolved. Could you take another look? It's targeted at 3.4.0 (cut 2026-10-19).

Providers declare these connection extra fields as secrets, but their names
were missing from the redaction allowlist, so their values were not redacted
like other secret fields. They are matched as whole names because, as
substrings, they would also hide non-secret fields such as kube_config_path
and credential_config_file.
@JelyFishhhhhh
JelyFishhhhhh force-pushed the redact-provider-declared-secrets branch from bf2b95f to 1cea50c Compare October 29, 2026 08:08
@JelyFishhhhhh
JelyFishhhhhh requested a review from kaxil November 6, 2026 01:36

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants