-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Hide team scoped values of options registered as sensitive #70755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vatsrahul1001
merged 5 commits into
apache:main
from
potiuk:hide-team-scoped-sensitive-config-values
Aug 4, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c0cb65c
Hide team scoped values of options registered as sensitive
potiuk e20e6cc
Add newsfragment for the team scoped sensitive option masking change
potiuk 9429d55
Keep one copy of the team scoped masking rationale, and record the un…
potiuk 258308f
Update shared/configuration/tests/configuration/test_parser.py
potiuk 7b78beb
Update airflow-core/tests/unit/api_fastapi/core_api/routes/public/tes…
potiuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| Team scoped values of options registered as sensitive are now hidden | ||
|
|
||
| Configuration options are registered as sensitive under their base section, so until now only the | ||
| base spelling of an option was masked. A team scoped override -- set in a ``[<team>=<section>]`` | ||
| config file section, or through an ``AIRFLOW__<TEAM>___<SECTION>__<KEY>`` environment variable -- | ||
| was not recognised as the same option and was returned in full. | ||
|
|
||
| Sensitivity is now decided after resolving the team scoped spelling back to the base option, so a | ||
| team scoped value is masked exactly as the base value already was. | ||
|
|
||
| **Behaviour changes:** | ||
|
|
||
| - ``AirflowConfigParser.as_dict(display_sensitive=False)``, ``GET /config``, | ||
| ``GET /config/section/{section}/option/{option}`` and ``airflow config list`` now return | ||
| ``< hidden >`` for a team scoped value of an option registered as sensitive. Deployments that | ||
| read a team's real value through any of these will now receive the mask; use | ||
| ``display_sensitive=True`` where a real value is required and appropriate. | ||
| - Team scoped ``_cmd`` and ``_secret`` entries are replaced with ``< hidden >`` in place, rather | ||
| than being resolved into their value and removed as they are in a base section. Resolving them | ||
| is not supported for a team, so the command string or secret path is no longer shown either. | ||
| - Non team configuration is unaffected, and ``display_sensitive=True`` continues to return real | ||
| values. | ||
|
|
||
| **New public helpers on the shared configuration parser** (additive; no signatures changed): | ||
|
|
||
| - ``team_section_name(team_name, section)`` builds the team scoped config file section name. | ||
| - ``base_section_name(section)`` recovers the base section from a possibly team scoped one. | ||
| - ``AirflowConfigParser.is_sensitive_option(section, key)`` reports whether an option is | ||
| registered as sensitive under any of its spellings. |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.