Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
morz3d
Advocate I
Advocate I

Sparkmonitor and secure strings

Hi all,
I recently created pipeline where i send credentials stored as secure string from pipeline to notebook for further authentication.

When pipeline is running input paraemters are masked however what is exactly what i wanted however I was surprised when i open Sparkmonitor and in items snapshot i found all secure strings completly exposed. Is there a way not to display parameters here or to mask them?

 

morz3d_1-1723476125776.png

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @morz3d 

 

I can reproduce this, but not sure if this is by design. According to the following two old threads from six months ago, the behavior is different now. Back then, the SecureString type parameters passed from the pipeline were masked with asterisks in the SparkMonitor for the notebook activity. The actual values retrieved were also asterisks instead of the real values, causing the actual value transmission to fail. That looks like an issue. 

Passing SecureString Parameter Values in notebooks - Microsoft Fabric Community

pyspark - Passing SecureString Parameter Values in Fabric Notebooks - Stack Overflow

 

Now the behavior has changed. The SecureString type parameters pass the actual values but they are not masked in Sparkmonitor. This result does not seem secure enough. I haven't found documentation on what the scope of this SecureString works by now.

 

As a possible way to secure the credentials, you can use Azure Key Vault to store the secrets. Azure Key Vault is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys. In the data pipeline, create a Web activity to get the secret from Azure Key Vault and set the Secure Output option to true to prevent the secret value from being logged in plain text. Then use it in the notebook activity. This might be helpful. 

 

This is a blog that might be helpful:

How-To Access Azure Key Vault Secrets from Fabric Notebook - Syntera

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @morz3d 

 

I can reproduce this, but not sure if this is by design. According to the following two old threads from six months ago, the behavior is different now. Back then, the SecureString type parameters passed from the pipeline were masked with asterisks in the SparkMonitor for the notebook activity. The actual values retrieved were also asterisks instead of the real values, causing the actual value transmission to fail. That looks like an issue. 

Passing SecureString Parameter Values in notebooks - Microsoft Fabric Community

pyspark - Passing SecureString Parameter Values in Fabric Notebooks - Stack Overflow

 

Now the behavior has changed. The SecureString type parameters pass the actual values but they are not masked in Sparkmonitor. This result does not seem secure enough. I haven't found documentation on what the scope of this SecureString works by now.

 

As a possible way to secure the credentials, you can use Azure Key Vault to store the secrets. Azure Key Vault is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys. In the data pipeline, create a Web activity to get the secret from Azure Key Vault and set the Secure Output option to true to prevent the secret value from being logged in plain text. Then use it in the notebook activity. This might be helpful. 

 

This is a blog that might be helpful:

How-To Access Azure Key Vault Secrets from Fabric Notebook - Syntera

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.