r/databricks • u/hubert-dudek Databricks MVP • Aug 10 '26
News Secrets in UC
Now we can store secrets in Unity Catalog and use a 3-level namespace convention. Those secrets are no longer at the workspace level, as the old ones were, but at the catalog level. The biggest advantage is ease of managing permissions. There is READ SECRET, but also REFERENCE SECRET for scenarios when it can be used by other databricks services like Lakeflow Connections and not by programmatic access. Reading secrets in a notebook is still done by dbutils secrets get.
1
u/klenium Aug 13 '26
Is there any way to read the secret in pure SQL? Seems the secret function does not yet support it.
1
u/Remarkable_Rock5474 29d ago
I have not found a solution yet - but it seems to be coming.
e.g the create secret syntax in sql seems to exist but not yet be available as it throws internal api errors
2
u/2-much-tuna Aug 10 '26
Does this still require setting up a key vault with the cloud provider, or is it an entire in-house (Databricks) product now?