Skip to content

Conversation

@amoghrajesh
Copy link
Contributor

Realised in this run: https://github.com/apache/airflow/actions/runs/20651537490/job/59297235389?pr=59971 that the secrets masker uses airflow.configuration which was done as part of an effort to remove globals: #59875

I am following same pattern as #55259 and achieving this through an injection / initialisation pattern.

Also realised that this functionality didn't have a test case, so added that as well.

I will be pushing a follow up to have some checks in prek hook to ensure no such imports slip in.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@amoghrajesh amoghrajesh requested a review from jscheffl January 2, 2026 07:45
@amoghrajesh amoghrajesh merged commit a6fedee into apache:main Jan 2, 2026
69 checks passed
henry3260 pushed a commit to henry3260/airflow that referenced this pull request Jan 3, 2026
stegololz pushed a commit to stegololz/airflow that referenced this pull request Jan 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants