- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I am using databricks notebook and Azure key vault.
When I am using below function I am getting as output [REDACTED].
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Shreyash_Gupta
You can simply iterate over each letter of the secret and print it.
Something like this:
for letter in dbutils.secrets.get(scope_name,secret_name):
print(letter)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
In Databricks, secrets retrieved using dbutils.secrets.get(scope_name, secret_name)
are intentionally redacted and displayed as [REDACTED]
in notebook outputs to ensure sensitive information is not exposed. This behavior is a security feature to prevent accidental exposure of secrets.
If you need to verify the value of a secret, you should do so outside of the notebook environment, such as directly within the Azure Key Vault interface or using the Azure CLI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I completely understand the security perspective. Just wanted to know if there is any way to do it or not.
Thankyou for your response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@Shreyash_Gupta
You can simply iterate over each letter of the secret and print it.
Something like this:
for letter in dbutils.secrets.get(scope_name,secret_name):
print(letter)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for this solution @daniel_sahal. It is simple yet effective