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
Microsoft Azure Connection: Service principal secret does not get masked when providing connection via URI environment variable #38144
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
@potiuk, I have had the ability to test this on Airflow 2.9.1, unfortunately, my secret is still not masked. I have 2 connection strings that are unmasked:
Not able to reproduce with apache-airflow==2.9.1 and apache-airflow-providers-microsoft-azure==9.0.0. I've tested URIs and JSON versions, and in both cases the client secret is being masked correctly.
What I did notice though is that if you run a env or set command within the bash operator, some secrets get exposed through the logs. Should this be of concern?
Activity
boring-cyborg commentedon Mar 14, 2024
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
zwelgbeer commentedon Mar 14, 2024
Please fix this issue
w0ut0 commentedon Mar 14, 2024
Probably same issue as #36688, I'll try to see if that fix solves this issue.
potiuk commentedon Mar 14, 2024
Looks like duplicate fixed in 2.8.2 @zwelgbeer - > Please upgrade your airflow to latest version and report back. Good idea is to upgrade to
w0ut0 commentedon May 17, 2024
@potiuk, I have had the ability to test this on Airflow 2.9.1, unfortunately, my secret is still not masked. I have 2 connection strings that are unmasked:
Let me change some (normal) characters in the password:
pO51Q~MLdXXu-H_sOMNECHANGECHARSldkIt shows up unmasked when doing eg.
printenvin a BashOperator.sonalshreya commentedon Nov 14, 2024
Hi @potiuk i would like to contribute in this issue and it is also marked as good first issue , so can I work on it?
potiuk commentedon Nov 14, 2024
Sure
aaron-y-chen commentedon May 17, 2025
Hi @w0ut0, does this issue still occur? I tried reproducing it with this DAG on Airflow 3.1.0 and couldn’t, so I suspect it’s been fixed.
geovalexis commentedon Nov 13, 2025
Not able to reproduce with
apache-airflow==2.9.1andapache-airflow-providers-microsoft-azure==9.0.0. I've tested URIs and JSON versions, and in both cases the client secret is being masked correctly.What I did notice though is that if you run a
envorsetcommand within the bash operator, some secrets get exposed through the logs. Should this be of concern?aaron-y-chen commentedon Oct 5, 2026
Hi @w0ut0, just a quick check: does this issue still exist? Otherwise I think this issue could be closed.