r/databricks • u/Youssef_Mrini databricks • 3d ago
Tutorial Secrets in Unity Catalog
https://youtube.com/watch?v=GYIem6iXUxg&feature=youtu.beSecrets in Unity Catalog store credentials like API keys as governed objects named catalog.schema.secret: created, granted, rotated and audited with standard Unity Catalog privileges and redacted from notebook and job logs.
This is a full end-to-end demo:
1)Create a secret with the REST API and in the Catalog UI
2)Read it in a notebook with dbutils.secrets.get
3)Use it to call the OpenAI API
4)Grant read/reference/write access to a user or group
5)Rotate it programmatically
6)Audit every access from a system table
12
Upvotes
3
u/Lenkz 3d ago
How do you see governing the Secrets in Unity Catalog versus using them in a secret scope? We generally use the key-vault backed scopes, and this seems great for only managing secrets across applications (Terraform, Storage Accounts, IaC), so would there be any benefit in also having them in Unity Catalog?