Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2022 03:05 AM
Databricks redacts secret values that are read using
dbutils.secrets.get(). When displayed in notebook cell output, the secret values are replaced with
[REDACTED]
Although it is not recommended, there is a workaround to see actual value with a simple
for loop trick. So, you will get the value separated by spaces.
value = dbutils.secrets.get(scope="myScope", key="myKey")
for char in value:
print(char, end=" ")
Out:
y o u r _ v a l u e
Ajay Kumar Pandey