This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 7553a6f0562 Fix inverted docstring for config write hide_sensitive
option (#71623)
7553a6f0562 is described below
commit 7553a6f0562d4c8dcd08229ec91416a3be6d84f8
Author: Jyun-An Chen <[email protected]>
AuthorDate: Sat Aug 15 01:02:05 2026 +0800
Fix inverted docstring for config write hide_sensitive option (#71623)
AirflowConfigParser.write() documented the flag under a name it does not
have and
described it as including sensitive values, while the implementation
replaces them
with "< hidden >". Anyone reading the docstring to decide whether a
generated
config file is safe to share would conclude the opposite of what the code
does.
---
shared/configuration/src/airflow_shared/configuration/parser.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shared/configuration/src/airflow_shared/configuration/parser.py
b/shared/configuration/src/airflow_shared/configuration/parser.py
index 8c9e579bf99..7222c0212cc 100644
--- a/shared/configuration/src/airflow_shared/configuration/parser.py
+++ b/shared/configuration/src/airflow_shared/configuration/parser.py
@@ -2100,7 +2100,7 @@ class AirflowConfigParser(ConfigParser):
:param include_env_vars: Include environment variables corresponding
to each config option
:param include_providers: Include providers configuration
:param comment_out_everything: Comment out all values
- :param hide_sensitive_values: Include sensitive values in the output
+ :param hide_sensitive: Replace sensitive values in the output with "<
hidden >"
:param extra_spacing: Add extra spacing before examples and after
variables
:param only_defaults: Only include default values when writing the
config, not the actual values
"""