You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
airflow config update (dry-run, the default) prints unmasked secrets to stdout #73255
airflow config update with no flags, i.e. dry-run mode, which is the default, prints the
full contents of airflow.cfg to stdout unmasked, including sensitive values like sql_alchemy_conn (often has an embedded DB password), fernet_key, secret_key, and SMTP
credentials.
airflow config update is documented/intended as a preview tool for deprecated/renamed config
options ahead of an Airflow 3 upgrade, not as a config-dumping command, so this is a surprising
and easy-to-trigger credential leak, especially when run in CI logs or pasted into a bug report or
support channel.
Repro:
$ airflow config update
[blue]Dry-run mode enabled. No changes will be written to airflow.cfg.[/blue]
[core]
...
sql_alchemy_conn = postgresql+psycopg2://airflow:S3cr3tPassword@db:5432/airflow
...
fernet_key = <real fernet key>
What you think should happen instead?
airflow config update should mask sensitive values by default, consistent with config list:
Give update_config the same --show-values/--hide-sensitive handling as show_config,
masking sensitive options unless the user explicitly opts in to seeing real values.
write_custom_config() should support hiding sensitive values (or update_config should build
its preview output from the already-masked config_dict instead of re-reading raw self._sections).
Activity
Mask sensitive values in airflow config update dry-run output
Mask sensitive values in airflow config update dry-run output (apache…